domingo, enero 01, 2017

Sending command from one terminal to another

to get the terminals open:

$ who

to get current terminal:
$ tty

to send command to terminal /dev/pts/11

$ echo test >& /dev/pts/11

No hay comentarios.:

Kill process in one console command line

example:   $ sleep 3600 & [ 1 ] 2225 $ sleep 3600 & [ 2 ] 2226 $ sleep 3600 & [ 3 ] 2227 $ sleep 3600 & ...