view · edit · sidebar · attach · print · history

Tips from Michal

<< Tricks | Index | SettingEnvVariables >>

# pipe all output into a file
user@localhost ~/currency $ /usr/local/bin/ruby bin/currencyd &> | tee stdout_with_stderr.log
# tee all output into a file (as usual, tee output to console may lag, due to (not) flushing inside the program)
user@localhost ~/currency $ /usr/local/bin/ruby bin/currencyd 2>&1 | tee stdout_with_stderr.log
# pipe stdout (unix file descriptor 1) and stderr (unix file descriptor 2) into separate files
user@localhost ~/currency $ /usr/local/bin/ruby bin/currencyd 1>stdout.log 2>stderr.log
view · edit · sidebar · attach · print · history
Page last modified on January 13, 2012, at 01:37 PM