What does >> and mean in a tcsh script and how does it translate to bash?

I'm converting a tcsh script to bash, hitting an error because I'm not entirely sure what -> & does

wget --output-document=/dev/null "http://somewebsite.org" >>& /root/wget.log

      

I have read the man page http://linux.die.net/man/1/tcsh but not sure what "diagnostic route" means, maybe stderr ...

so to be absolutely sure this is the same as doing:

wget --output-document=/dev/null "http://somewebsite.org" 2>>&1 /root/wget.log

      

in a bash script?

+3


source to share


1 answer


It adds both stdout and stderr to the file, which is equivalent to:



wget --output-document=/dev/null "http://somewebsite.org" >> /root/wget.log 2>&1

      

+7


source







All Articles