Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
commandline in pipe:stdin
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
syn0ptik
Apprentice
Apprentice


Joined: 09 Jan 2013
Posts: 246

PostPosted: Tue Mar 05, 2013 8:33 am    Post subject: commandline in pipe:stdin Reply with quote

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);'
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum