Thanks, I tried script, and it does just what I want, just one other thing, I call lftp via a script and it runs in the Background, with no output to terminal. Can I somehow call it Via script, say something like "script lftp....." to still get The output to a file? But also have it running in the background. Do you know what the syntax would be to do this?
-----Original Message----- From: Steven W. Orr [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 26, 2002 3:56 PM To: [EMAIL PROTECTED] Subject: RE: STDOUT Question On Thu, 26 Sep 2002 [EMAIL PROTECTED] wrote: =>Thanks for the reply. => =>Which script command? =>I tried 'lftp 2>&1 | tee logFile' but it does not produce what =>Iam looking for. =>I need to see the stats for the specific file lftp is busy with exactly what =>you would =>See on the screen (STDOUT) when you run lftp. When I run it with 'lftp 2>&1 =>| tee logFile' =>I get the same output in the file as I do in my log. =>Any other ideas? The script command is part of the expect package. rpm -ql expect It captures *everything* that appears on the screen. The trick of teeing should also be close to what you want. The problem is that the display is using curses to the screen, but when you pipe you're no longer writing to a console. Try script and tell me if that's better. => =>-----Original Message----- =>From: Steven W. Orr [mailto:[EMAIL PROTECTED]] =>Sent: Thursday, September 26, 2002 3:28 PM =>To: [EMAIL PROTECTED] =>Cc: [EMAIL PROTECTED] =>Subject: Re: STDOUT Question => => =>On Thu, 26 Sep 2002 [EMAIL PROTECTED] wrote: => =>=>Hello, =>=> =>=>I would like to somehow get the output that comes from lftp, eg: the =>current =>=>file being down/uploaded =>=>Estimated completion time, percent and bandwidth to be outputed to a file =>=>for me to open in another =>=>program to see the status of the current job. =>=>Is it possible to output something like the changing percent completed =>value =>=>to a file? How else could =>=>I do something like this? =>=> =>=>Regards =>=>Giuseppe => =>* How about using the script command? => =>* How about => =>lftp 2>&1 | tee logFile => =>Does this help? => => -- -Time flies like the wind. Fruit flies like a banana. Stranger things have - -happened but none stranger than this. Does your driver's license say Organ -Donor?Black holes are where God divided by zero. Listen to me! We are all- -individuals! What if this weren't a hypothetical question? [EMAIL PROTECTED]
