$ 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
___________________________________________________________

Reply via email to