On Wed, 6 Dec 2000, Tim Smolen wrote:
> How do I have Linux execute a program when it boots? Basically I want to
> turn the pc on, have linux boot, and then run my program until it's
> shutdown. I'd like not to have to log in or anything. Is this possible?
>
That really depends on the program and what it is supposed to do. If it's
a server-type program that doesn't need interaction, starting it from
/etc/rc.d/rc.local should work fine.
If it is something that needs interaction, there are a couple of ways to
go.
One way is to use open (included with Redhat, but typically not installed
by default). Read the man page, but basically you can do this:
open -c 11 -- top -s
to open top in secure mode (-s) on /dev/tty11 (virtual console 11).
I usually stick that command in /etc/rc.d/rc.local on my server machines
so I can get to top in a hurry when alarms start going off. :)
HTH,
Bill Carlson
--
Systems Programmer [EMAIL PROTECTED] | Opinions are mine,
Virtual Hospital http://www.vh.org/ | not my employer's.
University of Iowa Hospitals and Clinics |
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list