sending data to log file - shell script -


can please explain these expressions me:

cd - 1>> $log   // q -  1 represent ?  ./build_we2s 1>> $log 2>> $log // q -  2 represent ? 

1    stdout  standard output 2    stderr  standard error  cmd 1>> $log append stdout (only) $log cmd 1>> $log 2>>$log append stdout , stderr $log 

you do

cmd >> $log 2>&1  

or

cmd &>>$log 

too


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -