[bf1942] Web Script
Paul Bowsher
paul.bowsher at gmail.com
Mon Jul 11 16:05:36 EDT 2005
boffbowsh at phobos$ USER=`whoami`; SCREENNAME=test1; SPID=`ls
/tmp/screens/S-$USER | grep ${SCREENNAME}$ | awk -F '.' '{print $1}'`;
PID=`ps -o ppid,pid | awk '{print $1,$2}' | grep ^$SPID | awk '{print
$2}'`; echo $PID
88491
Obviously replace test1 with your screen's name
On 7/11/05, ScratchMonkey <ScratchMonkey at matureasskickers.net> wrote:
> --On Monday, July 11, 2005 1:38 PM -0500 Tim Cooper
> <tim at myinternetservices.com> wrote:
>
> > what 1 line command would I run to kill the "screen rental1"?
> > I know as the user I ssh in and exit ... but I want the webmin to kill the
> > process
>
> Not one line, but look at my scripts here:
>
> <http://matureasskickers.net/ftp/BF2/bf2_linux_boot_scripts.tar.gz>
>
> I inject the "quit" command into the program to tell bf2_v to shut down
> gracefully, wait a second, then try to kill the screen session if that
> didn't work.
>
>
>
--
Paul Bowsher
IT Systems Developer
Simply Stuck Ltd
More information about the Bf1942
mailing list