[Xastir] Strange question....
Jerry Chamberlin
jerryc at netlab.org
Mon Mar 7 11:34:11 EST 2005
So just cron a job 'killall xastir'
On Mon, 7 Mar 2005, Jason Winningham wrote:
> #!/bin/bash
> # kill xastir
> ps -ef | egrep "xastir" | grep -v grep | grep -v "$0" | awk
> '{printf("kill %s\n",$2)}' | bash
> sleep 3
> ps -ef | egrep "xastir" | grep -v grep | grep -v "$0" | awk
> '{printf("kill -9 %s\n",$2)}' | bash
> nohup xastir&
>
>
> Note: ps flags may differ from system to system; these suite solaris.
> You'd need -auxw on Mac OS X, for example; maybe -aux for some linux
> flavors.
>
> If it gets noisy (too many emails from cron with the output of the
> commands), add "exec >/dev/null 2>&1" after the second line.
>
> You would probably want some sort of check to see if the user was
> logged in, and probably other sanity checks. YMMV.
>
> -Jason
> kg4wsv
>
> _______________________________________________
> Xastir mailing list
> Xastir at xastir.org
> https://lists.xastir.org/mailman/listinfo/xastir
>
The Net Lab year 2000 and beyond Internet Education is Science
http://www.netlab.org
WA0JRJ - Jerry
used to be ICQ 6408731
used to be AIM PappyJerry
More information about the Xastir
mailing list