Rajarshi Guha wrote: > > On Thursday 14 November 2002 15:17, Dhruv wrote: > > > ~/.bash_profile and/or ~/.bashrc (for bash) > > > > so does that mean i have to login and then the execution happens or is it > > just on server restart ? > > Thanks, > > Those two files are for starting stuff after or at login (it was for ulimit > command) > > I dont think .bashrc or .bash_profile would be a good place for server restart > (unless you want servers to be running/restarting only when the user is > logged in)
To do things on server startup, the best place to put stuff in is the file /etc/rc.d/rc.local (if you're using Red Hat or Slackware or a traditional Unix system; things could be a little different for some of the other Linux distributions). Commands in this file will be executed at every reboot. If you put echo statements before and/or after your commands, you can "see" your commands being executed at boot time. - Manas Laha -- To unsubscribe, send mail to [EMAIL PROTECTED] with the body "unsubscribe ilug-cal" and an empty subject line. FAQ: http://www.ilug-cal.org/node.php?id=3
