syn0ptik Apprentice
Joined: 09 Jan 2013 Posts: 267
|
Posted: Tue Mar 05, 2013 8:33 am Post subject: commandline in pipe:stdin |
|
|
I need execute command in stdin pipe launched app. For instance I play a movie with ffplay and need stop it by sending "q" to stdin this application.
Code: | lsof -p 19961 | grep pipe
ffplay 19961 syn 7r FIFO 0,8 0t0 346766 pipe
ffplay 19961 syn 8w FIFO 0,8 0t0 346766 pipe
localhost mnt # perl -e 'my $fd=346766; open($fd); print $fd "q"; close($fd);'
|
|
|