New answers tagged

2

One way would be to simply pipe it to a shell: ./script.sh | grep "device" | sh Simple example: $ cat input echo one echo two echo three $ grep t input | sh two three


3

Pardon for reviving a dead thread but in short, yes, it is possible! I think I figured out finally how to use xrandr. I used umc - universal modeline calculator to compute mode lines but the same can be achieved with cvt and gtf. It shouldn't really matter with LCD displays. Here are the steps to cut the top 100px of the display. Change the resolution ...


0

I generally use `command` to place it's output as argument to another command. For e.g., to find resource consumed by process foo on freebsd will be: procstat -r `pgrep -x foo` Here, pgrep is used to extract the PID of process foo which is passed to procstat command which expects PID of process as argument.


0

You may want to look at script(1) to log terminal output. Using it will create a typescript file that keeps original formatting of anything displayed on the terminal, including escape sequences, the command prompt and spacing among other things. It can be used by first calling the command script [file] as a standalone command before ssh'ing in. If you don't ...


Top 50 recent answers are included