Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Check return value of scp
January 30, 2005, 9:54 am
rate this thread
I have a script that copies data and on successful copying it burns the
My return value check looks like this:
if ( ! scp <options> )
But unfortunately it returns everything ok when the connection fails and
no data was copied.
I use scp that comes with this version:
OpenSSH_3.4p1 Debian 1:3.4p1-1.woody.3, SSH protocols 1.5/2.0, OpenSSL
How can I check whether the connection was established and all the data
were successful copied?
Thank you for your efforts!
[dont send me an email]
Re: Check return value of scp
I suggest not using scp (nor sftp). If you do
ssh foo@bar some/xfer_script
you can get what you want. You can arrange a script
to do file transfer and return meaningful results in
a simple text protocol between the 2 ends.
Elvis Notargiacomo master AT barefaced DOT cheek
Elections must be close. Simon Hughes MP (LibDem) (well, an assistant)
has replied to my letter from 9 months ago.
- » putty fails with "server's host key did not match the signature supplied"
- — Next thread in » Secure Shell Forum
- » can't prevent root lockout under Tru64/C2 security
- — Previous thread in » Secure Shell Forum
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — Newest thread in » Secure Shell Forum