On 2010-03-21 18:47, Dotan Cohen wrote:
Sigh. What exactly are you trying to *accomplish*????
Just an example:
I want to move a tarball to the machine, unpack it there then edit a
file it in. I then want to make that file executable, run it, and
transfer the output file back to my localhost.
Always starting from machine_a, where machine_b is the "original"
remote host.
METHOD A.
1. ssh u...@machine_b
2. scp -v u...@machine_a:/some/tar/ball .
3. untar ...
4. chmod u+x
5. ./whatever
6. scp -v output.txt u...@machine_a:/home/user/.
7. exit
METHOD B.
1. scp -v /some/tar/ball u...@machine_b:/home/user/.
2. ssh u...@machine_b
3. untar ...
4. chmod u+x
5. ./whatever
6. exit
7. scp -v u...@machine_b:/home/user/output.txt .
--
"History does not long entrust the care of freedom to the weak
or the timid." Dwight Eisenhower
--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4ba6b3d6.6070...@cox.net