> [ here is what Ia m executing ] > /usr/local/bin/lftp -f lftp_script >/tmp/logfile
> [ i also tried many other things like ... ] > /usr/local/bin/lftp -f lftp_script 2>&1 >/tmp/logfile Have you tried "cmd > /tmp/logfile 2>&1" ? Do you also have the debug set to >=1 (or set it in the script)? On Tue, 17 Feb 2004, agro_lftp wrote: > I need to output a detailed log file of this transfer. Here is what I am > doing and my problem. > > [ here is the lftp_script file ] > set ftp:ssl-force no > open -d -u user,password 111.222.333.444 > put testfile > close > exit > > [ here is what Ia m executing ] > /usr/local/bin/lftp -f lftp_script >/tmp/logfile > > [ i also tried many other things like ... ] > /usr/local/bin/lftp -f lftp_script 2>&1 >/tmp/logfile > > It appears taht the ONLY thing that ever goes into the log file would be > stuff like if I had done a "ls". I would then see just the files in the > "/tmp/logfile". I want everything, like what I see below on std-out when I > run the program. > > [EMAIL PROTECTED] dir]# lftp -f test_lftp >/tmp/logfile > ---- Connecting to 111.222.333.44 (111.222.333.444) port 21 > <--- 220---------- Welcome to Pure-FTPd ---------- > <--- 220-You are user number 2 of 10 allowed. > <--- 220-Local time is now 06:32. Server port: 21. > <--- 220-This is a private system - No anonymous login > <--- 220 You will be disconnected after 5 minutes of inactivity. > ---> AUTH TLS > <--- 500 This security scheme is not implemented > ---> USER user > <--- 331 User user OK. Password required > ---> PASS password > <--- 230-User user has group access to: admin > <--- 230-This server supports FXP transfers > <--- 230 OK. Current directory is /home/user > ---> PWD > <--- 257 "/home/user" is your current location > ---> TYPE I > <--- 200 TYPE is now 8-bit binary > ---> PRET STOR testfile > <--- 500 Unknown command > ---> PASV > <--- 227 Entering Passive Mode (111,222,333,444,94,132) > ---- Connecting data socket to (111.222.333.444) port 24196 > ---> STOR testfile > ---- Closing data socket > <--- 150 Accepted data connection > <--- 226-17118.0 Mbytes free disk space > <--- 226-File successfully transferred > <--- 226 0.002 seconds (measured here), 2.46 Kbytes per second > ---> QUIT > ---- Closing control socket > > > > > > Thanks for your help! > >
