Re: Check return value of scp
From: all mail refused (elvis_at_notatla.org.uk)
Date: 01/30/05
- Next message: Darren Tucker: "Re: can't prevent root lockout under Tru64/C2 security"
- Previous message: Kimmo Koivisto: "Re: Check return value of scp"
- In reply to: h.wulff: "Check return value of scp"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 30 Jan 2005 19:55:59 GMT
In article <MPG.1c66cd29d71b2caf989698@news.t-online.de>, h.wulff wrote:
>if ( ! scp <options> )
>then
>But unfortunately it returns everything ok when the connection fails and
>How can I check whether the connection was established and all the data
>were successful copied?
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 http://www.notatla.org.uk/goen/ Elections must be close. Simon Hughes MP (LibDem) (well, an assistant) has replied to my letter from 9 months ago.
- Next message: Darren Tucker: "Re: can't prevent root lockout under Tru64/C2 security"
- Previous message: Kimmo Koivisto: "Re: Check return value of scp"
- In reply to: h.wulff: "Check return value of scp"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|