Re: ssh and compress problem
From: Barry Margolin (barmar_at_alum.mit.edu)
Date: 05/24/04
- Next message: milan: "Re: Kernel panic"
- Previous message: Dave Hinz: "Re: samba communication"
- In reply to: Max: "ssh and compress problem"
- Next in thread: Max: "Re: ssh and compress problem"
- Reply: Max: "Re: ssh and compress problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 24 May 2004 10:54:52 -0400
In article <aea3ce71.0405232117.21d0b9c0@posting.google.com>,
xiangminyao@yahoo.com (Max) wrote:
> Hi, everyone!
>
> Can anyone please help me to resolve the following "ksh:
> /tmp/CSHM2_P3: cannot open" problem?
>
> I have no problem to create empty data file and named pipe on the
> remote database server by using ssh.
>
> /usr/local/bin/ssh -l myao billdev2 /bin/touch
> /tmp/infranet_cimf_extracts.dat1.Z
> /usr/local/bin/ssh -l myao billdev2 /bin/chmod 777
> /tmp/infranet_cimf_extracts.dat1.Z
>
>
> /usr/local/bin/ssh -l myao billdev2 mknod /tmp/CSHM2_P3 p
> /usr/local/bin/ssh -l myao billdev2 /bin/chmod 777 /tmp/CSHM2_P3
>
> But when I try to run a background job as the following, I get "ksh:
> /tmp/CSHM2_P3: cannot open" error message.
>
> /usr/local/bin/ssh -l myao billdev2 compress < /tmp/CSHM2_P3 >
> /tmp/infranet_cimf_extracts.dat1.Z &
>
> Is there any sytax error? It is OK if I run "compress </tmp/CSHM2_P3>
> /tmp/infranet_cimf_extracts.dat1.Z &" on the database server.
The I/O redirection operators are being processed by the local shell,
not the remote one. You need to quote or escape them if you want those
characters sent to the remote system.
-- Barry Margolin, barmar@alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me ***
- Next message: milan: "Re: Kernel panic"
- Previous message: Dave Hinz: "Re: samba communication"
- In reply to: Max: "ssh and compress problem"
- Next in thread: Max: "Re: ssh and compress problem"
- Reply: Max: "Re: ssh and compress problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|