2
votes
3answers
2k views

redirect temporarily STDOUT to another file descriptor, but still to screen

I'm making a script that executes some commands inside, and these commands show some output on STDOUT (and STDERR as well, but that's no problem). I need that my script generates a .tar.gz file to ...
0
votes
2answers
3k views

How to tell wget to use the name of the target file behind the HTTP redirect?

Let's a consider link such as htttp://www.mysite.net/download.php?id=267 that redirects to htttp://www.mysite.net/downloads/myfile.tar.gz If I execute 'wget ...
2
votes
4answers
267 views

How to write to a file and, while the file is still being written, read and parse its contents using a shell script?

I'm actually trying to write a shell script that logs the output of a command to a file, but since the command takes a long time to complete (about 15 minutes), I would like to start parsing the ...