specifically want have nodejs process running in background can spawn child processes (in case playing music files mplayer) , want control separate program doesn't run continuously. if run like:
$ my_music_player pause song i want my_music_player script send message background process signalling write 'p' stdin of it's mplayer child process , my_music_player script exits mplayer , nodejs process still running in background later unpause or adjust volume or something. know can use nodejs child_process communicate between background process , mplayer, , can use forever make background process can't see better way talk background process opening tcp server seems ton of unneccessary overhead.. have better recommendations? i'm not married using nodejs here. need way send messages , background process.
Comments
Post a Comment