- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Use the file in remote server
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
Discussions
Discussions
Forums
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
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
тАО04-03-2011 04:59 PM
тАО04-03-2011 04:59 PM
Use the file in remote server
for file in /tmp/my_file.txt ; do
...
...
done
Now , if the file ( /tmp/my_file.txt ) is in remote server , can advise what can i do ? thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2011 08:31 PM
тАО04-03-2011 08:31 PM
Re: Use the file in remote server
If the file is available over NFS, you can just use the name.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2011 09:13 PM
тАО04-03-2011 09:13 PM
Re: Use the file in remote server
I perfer the second method you suggested.
can you please advise how to do it ? thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2011 10:02 PM
тАО04-03-2011 10:02 PM
Re: Use the file in remote server
What HP-UX version do you have:
You have to enable NFS server, then export those filesystems.
On the client you have to enable NFS client and you need mount those NFS filesystems or set up automounter to only mount them when required.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2011 10:22 PM
тАО04-03-2011 10:22 PM
Re: Use the file in remote server
I have considered to use mount , but it seems not good in my case as I do not read the file frequenly , so I not perfer use muont , can advise is there other method ? thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2011 10:50 PM
тАО04-03-2011 10:50 PM
Re: Use the file in remote server
After you set up NFS, you can use the automounter to mount filesystems as needed.
>I do not read the file frequently
You may just run your script on the remote machine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-05-2011 06:05 PM
тАО04-05-2011 06:05 PM
Re: Use the file in remote server
I checked automount is work , but the server is in remote office and connect via VPN , the speed is slow , and I found that sometimes it can not be umount , so that the server have many mounted volumn , so I prefer to use script to do that .
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-06-2011 12:09 AM
тАО04-06-2011 12:09 AM
Re: Use the file in remote server
easier would be if you would add a part to the beginning of your script which copies that file temporary to the local system. Just as in Dennis' first post.
Unix operates with beer.