- Thread Starter
- #26
I will. When i start mplayer, I get it's pid.
I save it in lock file.
Next time, I want to do something, i read lock file and get mplayers pid.
Then I run `pgrep mplayer` and get pids of all running mplayers.
If one pid match pid stored in lock file, that it's our mplayer, and it's running.
If not, we should
(well, That's how i planned it)
P.S.
I'm starting to redesign command line arguments. I want to be able to select multiple files/dirs at time
I save it in lock file.
Next time, I want to do something, i read lock file and get mplayers pid.
Then I run `pgrep mplayer` and get pids of all running mplayers.
If one pid match pid stored in lock file, that it's our mplayer, and it's running.
If not, we should
$ playd restart
(well, That's how i planned it)
P.S.
I'm starting to redesign command line arguments. I want to be able to select multiple files/dirs at time