- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Newbie question: remote files via http?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2010 02:53 AM
06-01-2010 02:53 AM
Something like that:
more http://mydomain/test.txt
and ths contents of the external text.txt file would be displayed...
Thanks,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2010 03:22 AM
06-01-2010 03:22 AM
Solutionhttp://hpux.connect.org.uk/hppd/hpux/Networking/WWW/curl-7.20.1/
or a perl or tcl script.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2010 05:30 AM
06-01-2010 05:30 AM
Re: Newbie question: remote files via http?
> more http://mydomain/test.txt
the shell will just relay the string "http://mydomain/test.txt" as a parameter to /usr/bin/more.
Because HP-UX /usr/bin/more does not support HTTP, you will get an error message:
http://mydomain/test.txt: No such file or directory
Your desired functionality cannot be easily achieved by just adding features to Unix shell. To get what you want, you would need one of the following:
A) support for HTTP protocol added to all commands you wish to use with an external web server
or
B) a "HTTP filesystem" which would intercept all file requests within its mountpoint and download the appropriate file from the web server.
(e.g.:
mount -t httpfs dummy_parameter /web
more /web/mydomain/test.txt
or something like that.)
Unfortunately, as far as I know, B) is not available for HP-UX and A) would require replacing standard system commands with customized versions.
In Linux, a sub-system called FUSE allows developers an easy way to create pseudo-filesystems like this, so someone has already implemented it:
http://httpfs.sourceforge.net/
If someone would first implement a FUSE-like interface for HP-UX kernel, then it might be relatively simple to port this httpfs to HP-UX too.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2010 05:42 AM
06-01-2010 05:42 AM
Re: Newbie question: remote files via http?
And exactly what do you want to do with these files? You could obtain a textual representation with 'lynx' as for example:
# lynx -dump http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1432950
This utility is available for HP-uX from the HP-UX Porting Centre if you are interested.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2010 05:51 AM
06-01-2010 05:51 AM
Re: Newbie question: remote files via http?
Or you could use wget.
http://www.gnu.org/software/wget/
> [...] have access [...]
Details depend on exactly what "have access"
means.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2010 10:14 AM
06-02-2010 10:14 AM
Re: Newbie question: remote files via http?
I'm using a software called Adobe Output Designer to generate pdf's. This software has a built-in instruction called ^graph that receive as parameter the full path to an image file and render the image in the generated pdf. Like ^graph \abc\myimage.jpg
I was wondering if it was posible to use http stored images like option B (FUSE). :) I mean ACO software would still think the file is a local file but instead a wrapper would get the file via http.
Anyway because before an external process would need to retrieve the list of urls where the images exists, he can do the work of downloading and copying into a local file too (using wget or curl or whatever).