Tag Info

New answers tagged

3

The reason this won't work is that the shell splits the command into two parts like this: screen -d -m /bin/cat /var/www/html/filter/unfiltered.txt awk '{print $1}' >/var/www/html/filter/first.txt The screen runs cat on a separate pty. There is then no output on stdout to pipe to awk. If you want the pipe to be run under screen, you need to group it ...


-1

Do a screen -ls. It's going to explicitly indicate Attached versus Detached status. Example attached: $ screen -ls | grep tached 3132.pts-0.esavo00 (Attached) Example detached: $ screen -ls |grep tached 3132.pts-0.esavo00 (Detached)



Top 50 recent answers are included