[SOLVED] File descriptor inside screen
Hi,
I'm using a program called "Plowshare". It can download file automatically from megaupload, rapidshare and more. I would like to print the progress of the download in the shell but also save it in a file. "Plowshare" print all information in stderr and it's why this command doesn't work: Code:
plowdown -o /directory/ http://www.megaupload.com/?d=XXXXX > file.log Code:
plowdown -o /directory/ http://www.megaupload.com/?d=XXXXX 2>&1 | tee file.log Code:
screen -dmS test plowdown -o /directory/ http://www.megaupload.com/?d=XXXXX 2>&1 | tee file.log I search a solution to redirect stderr to a file and also print it in the screen. A "tee" program but for stderr, not stdout. Maybe someone know how to redirect stderr to a file without the file descriptor? Thank's in advance for your help |
You can try the logging capability of screen itself. Tell screen to do a log of its activity: it will save the standard output and the standard error to a file, the same accomplished by tee with 2>&1 redirection. To follow the advancing of the job on the terminal, just re-attach the screen session in the usual way using
Code:
screen -r xxxxx.test Code:
screen -dmLS test plowdown -o /directory/ http://www.megaupload.com/?d=XXXXX Code:
logfile file.log |
Thank you very much !!! That's exactly what I was looking for !
|
All times are GMT -5. The time now is 04:24 PM. |