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:
plowdown -o /directory/ http://www.megaupload.com/?d=XXXXX > file.log
But with this command, all working fine:
plowdown -o /directory/ http://www.megaupload.com/?d=XXXXX 2>&1 | tee file.log
But my intention is to use it with the "screen" program like this:
screen -dmS test plowdown -o /directory/ http://www.megaupload.com/?d=XXXXX 2>&1 | tee file.log
But it doesn't work and I read on internet that "screen cleans up the file descriptors" (source
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