Accessing a process
I'm trying to use a php script to run mplayer (I'm playing audio from my server on a schedule determined by a mysql database). I can play files or playlists ok, but I want to interact with the running mplayer process as it's running. PHP will open the shell, but stops responding until the audio file is played and mplayer quits.
Right now, all I can do is send a kill command from another shell.
Is there a way to send input to a specific pid? (not specific to php)
Is there a way to send input to a specific shell? (not specific to php)
Thanks in advance!