[olug] .bash_profile and runlevels
Vincent
vincentr at cox.net
Wed May 21 21:24:35 UTC 2003
Something like this?
[ ! `pidof OutnAbout` ] || [`runlevel | awk '{print $NF}'` -eq 5 ] && nohup OutnAbout &
----- Original Message -----
From: "Ryan O'Rourke" <ryano at ch-gifts.com>
To: <olug at olug.org>
Sent: Wednesday, May 21, 2003 9:19 AM
Subject: [olug] .bash_profile and runlevels
>
> Right now I have a command in .bash_profile that starts up a Wine
> session for an electronic In/Out board called "OutnAbout". The problem
> is that .bash_profile tries to start multiple instances of the program
> every time I log in remotely.
> Basically, I want .bash_profile to look and see if the program is
> running already and if so, not attempt to start it again.
> Also, I'd like to tell .bash_profile to only attempt to start the
> program if I'm in runlevel 5. Is that possible if I default to a text
> login?
> Using RedHat 8.0
>
> Thank you.
>
> -- Ryan
>
>
>
> _______________________________________________
> OLUG mailing list
> OLUG at olug.org
> http://lists.olug.org/mailman/listinfo/olug
More information about the OLUG
mailing list