Re: Using crontab to end a process
Steven Manos wrote: something like... kill `ps aux | grep mplayer | head -n 1 | awk {'print $2'}` see pkill(1)
Re: Using crontab to end a process
On Jul 19, 2005, at 1:23 AM, Kent Kostuk wrote: I would like to schedule mplayer to record a radio station's online feed but can't figure out how to stop process. In Linux I was able to use killall mplayer. But that doesn't appear to be an option under OpenBSD. What do I need to do? man (1) pkill To kill all mplayer processes: pkill mplayer To match on the full command line: pkill -f "mplayer someURL" pkill/pgrep are good stuff. -- bda cyberpunk is dead. long live cyberpunk.
Re: Using crontab to end a process
Try man pkill Next time before posting (and possible getting your ass flamed ) to this list try man -k KEYWORD In your example KEYWORD would be "kill" and magic: man -k kill baudrate, erasechar, has_ic, has_il, killchar, longname, termattrs, termname (3) - curses environment query routines kill (1) - terminate or signal a process kill (2) - send signal to a process killpg (3) - send signal to a process group pgrep, pkill (1) - find or signal processes by name pthread_kill (3) - send a signal to a specified thread rotatelogs (8) - rotate Apache logs without having to kill the server XSetCloseDownMode, XKillClient (3X11) - control clients texteroids (1) - test your mousing skills on spinning text xkill (1) - kill a client by its X resource > I am an OpenBSD neophyte and couldn't track this down in the archives. > If this has been covered before please let me know how to track this > information down. > > I would like to schedule mplayer to record a radio station's online feed > but can't figure out how to stop process. In Linux I was able to use > killall mplayer. But that doesn't appear to be an option under OpenBSD. > What do I need to do? > > Kent Kostuk
Re: Using crontab to end a process
something like... kill `ps aux | grep mplayer | head -n 1 | awk {'print $2'}` On Mon, Jul 18, 2005 at 11:23:01PM -0600, Kent Kostuk wrote: > I am an OpenBSD neophyte and couldn't track this down in the archives. > If this has been covered before please let me know how to track this > information down. > > I would like to schedule mplayer to record a radio station's online feed > but can't figure out how to stop process. In Linux I was able to use > killall mplayer. But that doesn't appear to be an option under OpenBSD. > What do I need to do? > > Kent Kostuk
Using crontab to end a process
I am an OpenBSD neophyte and couldn't track this down in the archives. If this has been covered before please let me know how to track this information down. I would like to schedule mplayer to record a radio station's online feed but can't figure out how to stop process. In Linux I was able to use killall mplayer. But that doesn't appear to be an option under OpenBSD. What do I need to do? Kent Kostuk