Re: problem with sftp exit code
From: all mail refused (elvis_at_notatla.org.uk)
Date: 12/24/03
- Next message: Ken: "sftp connection problem"
- Previous message: apm: "cvs serverning error message"
- In reply to: Alexandre Bossot: "problem with sftp exit code"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 24 Dec 2003 10:59:50 GMT
In article <3fe88b06$0$1180$636a55ce@news.free.fr>, Alexandre Bossot wrote:
> hi allUsing sftp to transfer files, i'd like to get a return code > 0 as
> seen in the man page if for example i cant transfer a file using the put
> ... in batch mode ... abort if one of the commands ... fails.
>Any idea to solve my problem ??
I'd do a new client+server in Perl that runs a protocol you want -
with 2xx, 5xx messages etc, file names and sizes. Then you call this with ssh.
I've done this at work and got over 400 hosts no longer using FTP to hand
in regular results.
-- Elvis Notargiacomo http://www.sendacow.org.uk/homepage.html
- Next message: Ken: "sftp connection problem"
- Previous message: apm: "cvs serverning error message"
- In reply to: Alexandre Bossot: "problem with sftp exit code"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]