In a bash script, I need to download a file from the web, for doing it i use wget command. I would log the output of wget command, and at "the same time" having the output prompting on terminal.
I searched in the
man wget without find the way to achieve that.
it seems that if you turn on the log with
-a parameter, then the prompt output is automatically 'redirected' to the log file, and nothing is showed on terminal while executing the script, until it have done to download.
wget -a wget_log --no-check-certificate --auth-no-challenge --http-user=$jen_uname --http-password=$jen_psswd link_to_the_file
Is it possible to do both? output on prompt and writing on log file?
every hint is appreciated