On Fri, Jan 14, 2000 at 08:55:13AM -0600, Guillermo Belli wrote:
-> Hi:
->
-> Is there a way to run some commands at startup automatically, like autoexec.bat
-> in dos? thanks
Depends on what you want to do.
Autoexec.bat sets up fundamental, global stuff on boot. In Linux, a lot of
rather fundamental stuff, like activating swap space, is set up in
/etc/rc.d/rc.sysinit. Activating daemons like inetd or httpd is done in
the mess of files below /etc/rc.d/rc.init. After those all run,
/etc/rc.d/rc.local is run. You can place commands that have global effect
in any of those. E.g: I use rc.local to install the driver for a ZIP disk
and tell the IDE drive to spin down after 20 minutes.
However, autoexec.bat also sets up user preferences like the
environment. In Linux, that is also more distributed. Any individual user
has a shell specified (in /etc/passwd, I believe), and that shell will run
one or more startup scripts, like ~/bashrc. Some are run at login, others
are run each time a shell is launched. Those are the places to put
individual user preferences.
--
-- C^2
No windows were crashed in the making of this email.
Looking for fine software and/or web pages?
http://w3.trib.com/~ccurley