Re: capture screen

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi. I'm sorry to be dense, but I don't understand the 2&1 syntax. I thought the & put a process in the background but I've seen examples of using a double && to separate commands. Is this shell-specific?

At 11:53 PM 3/4/2006, you wrote:
Option 2: You have a command whose output you want to save. You can do this by using the > symbol to redirect standard output. Example:

ls >filelist.txt

Note that this only captures standard output. If you need standard error as well, you'll need to do something like this:

make >output.txt 2>&1

This method is only of any use with programs which aren't interactive.

_______________________________________________

Blinux-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/blinux-list

[Index of Archives]     [Linux Speakup]     [Fedora]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]