cyer1:~-> echo $SHELL /usr/bin/bash cyer1:~-> bash --version GNU bash, version 2.05.0(1)-release (sparc-sun-solaris2.9) Copyright 2000 Free Software Foundation, Inc.
Nikos Balkanas Billing and Provisioning Services/IT Tel.+302106703982 Vodafone Panafon S.A. Registered Office: 1-3 Tzavella Str., 15231, Halandri, Greece Registered in Greece No 26089/01AT/B/92/276/04 -----Original Message----- From: Justin Piszcz [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 31, 2006 1:21 PM To: Valkanas, Nikos, VF-GR Consultant Cc: [email protected] Subject: RE: lftp Exit codes - Urgent! Are you using bash? What shell? On Wed, 31 May 2006, Valkanas, Nikos, VF-GR Consultant wrote: > I tried exactly the same thing: > > cyer1:-> lftp ftp://df.f.f.f > lftp: df.f.f.f: host/servname not known > cyer1:-> echo $? > 0 > cyer1:-> lftp --version > LFTP | Version 3.4.7 | Copyright (c) 1996-2006 Alexander V. Lukyanov > > LFTP is free software, covered by the GNU General Public License, and you are > welcome to change it and/or distribute copies of it under certain conditions. > There is absolutely no warranty for LFTP. See COPYING for details. > > Send bug reports and questions to <[email protected]>. > > Libraries used: Readline 4.3, libiconv 1.8 > > Probably smt wrong with my configuration. What is it though? > > Nikos Balkanas > Billing and Provisioning Services/IT > Tel.+302106703982 > > Vodafone Panafon S.A. > Registered Office: 1-3 Tzavella Str., 15231, Halandri, Greece > Registered in Greece No 26089/01AT/B/92/276/04 > > -----Original Message----- > From: Justin Piszcz [mailto:[EMAIL PROTECTED] > Sent: Wednesday, May 31, 2006 1:12 PM > To: Valkanas, Nikos, VF-GR Consultant > Cc: [email protected] > Subject: Re: lftp Exit codes - Urgent! > > $ lftp ftp://df.f.f. > lftp: df.f.f.: Name or service not known > $ echo $? > 1 > > $ lftp --version > LFTP | Version 3.4.6 > > Seems to work here? > > On Wed, 31 May 2006, Valkanas, Nikos, VF-GR Consultant wrote: > >> Hi, >> >> I have a major problem trying to implement an automated ftp process to >> transfer billing cdrs. It is extremely important to know of success/failure >> of the process so that the software can mitigate. >> >> I have downloaded and compiled lftp-3.4.7 for Solaris 8. I am using lftp >> like this: >> >> lftp -u $user,xxx -e "put -O VodaLive $file -o tmp.$file;exit" sftp://$host >> res="$?" >> if [ "$res" == "0" ]; then >> [...] >> >> Problem is that it always returns with exit code 0. I have tried wrong >> address, wrong user, wrong file, but to no avail. >> ~/.lftprc: >> >> set cmd:at-exit >> set net:max-retries 4 >> set net:reconnect-interval-base 5 >> set net:reconnect-interval-multiplier 1 >> >> I have also tried the -c option: >> >> -> lftp -u $user,xxx -c "ls" sftp://$host >> >> lftp: invalid option -- c >> Try `lftp --help' for more information >> -> lftp -c "ls" -u $user,xxx sftp://$host >> ls: Not connected >> >> I would appreciate any help. >> >> Regards, >> _____________________________________ >> Nikos Balkanas >> Billing and Provisioning Services/IT >> Tel.+302106703982 >> >> Vodafone Panafon S.A. >> Registered Office: 1-3 Tzavella Str., 15231, Halandri, Greece >> Registered in Greece No 26089/01AT/B/92/276/04 >> ___________________________________________________________ >> >> >
