[olug] .bash_profile and runlevels
William E. Kempf
wekempf at cox.net
Wed May 21 15:09:52 UTC 2003
Ryan ORourke said:
>
> 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
Maybe you shouldn't be using .bash_profile to start this program? Maybe
it should be installed as a service?
--
William E. Kempf
More information about the OLUG
mailing list