- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- name pipe
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
04-27-2007 07:18 AM
04-27-2007 07:18 AM
name pipe
-bala
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2007 07:31 AM
04-27-2007 07:31 AM
Re: name pipe
On hostA:
mkfifo /tmp/fifo
chmod 664 /tmp/fifo
# Now let't output some command to the named pipe:
ls -l /etc > /tmp/fifo # This command will block because there is no reader process for the named pipe, yet
On hostB:
remsh hostA cat /tmp/fifo > myfile
# This will read the /tmp/fifo on the remote hostA and direct the output to the local file, myfile.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2007 07:43 AM
04-27-2007 07:43 AM
Re: name pipe
but if you are trying to tar somthing remote copy it and untar it you can try this
tar â cf â file.txt | remsh server2 'cd /src_2/dir2 ; tar â xpf â '
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2007 07:46 AM
04-27-2007 07:46 AM
Re: name pipe
the command was
tar -cf - file.txt | remsh server2 'cd /src_2/dir2 ; tar -xpf -'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2007 08:22 AM
04-27-2007 08:22 AM
Re: name pipe
1) host-A is HP tru64
2) host-B is HP ia64
I tried to use SSH as shown below using named pipe but I could not establish SSH from host A to host B.
ssh -C user@targethost 'cat > host-B/inpipe.dmp' < host-A/outpipe &
So Iam looking for using named pipe with some other command. Please advice.
-bala
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2007 08:36 AM
04-27-2007 08:36 AM
Re: name pipe
In any event, on most flavors of UNIX, the HP-UX command "remsh" is "rsh" but the functionality is the same so choose the one applicable to your system. The example I gave above should suffice but I would get your .rhosts file setup with a trivial command such as "remsh (or rsh) hostB ls -l /etc" before trying to do your real transfer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2007 08:39 AM
04-27-2007 08:39 AM
Re: name pipe
is ssh on the 2 systems
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2007 10:46 AM
04-27-2007 10:46 AM
Re: name pipe
often more helpful specify the actual problem
than it is to ask how to implement some
sub-optimal solution to that problem. Hint:
rcp and named pipes are implementation items,
not parts of the actual problem.
> I tried to use SSH [...]
Assuming that ssh will actually be part of
the solution to your problem, before trying
to use ssh to do something exotic, see if you
can get ssh to do something simple, like
"ssh other_host". Debugging a simple problem
is often easier than debugging a complex
problem.