in reply to Error checking on system SCP
i tried this way and the code runs as expected
Maybe you are not making the correct call to the scp, i mean that maybe you are calling the scp like this: scp test.pl turo@somewhere.bla.bla without specifying the directory on which it must save the file (colon and the remote directory), it will exits correctly and will create a file 'turo@somewere.bla.bla' on your current directory.perl -e 'die "oops\n" unless(system("scp","test.pl","turo\@somewhere.o +ver.the.rainbow:/tldk/") == 0); print "ok\n";'
perl -e '$site="turo\@somewhere.org"; die "oops\n" unless(system("scp" +,"test.pl",$site) == 0); print "ok\n";'
Good luck!
turo.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Error checking on system SCP
by rashley (Scribe) on Dec 14, 2005 at 20:20 UTC | |
by turo (Friar) on Dec 14, 2005 at 20:38 UTC |