Assuming command is the command you want to run, you can pipe it's output into the output.txt using:
$ command > output.txt
or
$ command | tee output.txt
If this doesn't hell it may be because the output is not printed on stdout but on stderr. The pipe > is implicit writing for 1> which means "pipe stdout to ...".
If you want to pipe stderr into the file too, you can use
$ command 2>&1 >output.txt
This first pipes all the output of stderr to the file-descriptor 1 (=stdout) which in tu is piped into the text file.
Recent Questions...
ما را در سایت Recent Questions دنبال میکنید
برچسب:
نویسنده: استخدام کار
بازدید: 168
تاريخ: شنبه
15 خرداد
1395 ساعت: 14:16