[NTLUG:Discuss] run a program without ./
m m
llliiilll at hotmail.com
Fri Jul 21 11:31:47 CDT 2000
>From: Steve Baker <sjbaker1 at airmail.net>
>HOWEVER - Are you sure you *REALLY* want to do that. I suspect
>you do not.
>
>99% of the time when new Linux users ask this, they *REALLY* want
>the program to run when they log in - NOT during a reboot.
>
Yes, I guess I do. because I am install qmail, and I follow the qmail-HOWTO:
-------------------------------------------------------------
The next thing we need to do is make it so that svscan starts every time the
system starts. On my system, I accomplish this with a simple rc script:
#!/bin/sh -e
# /etc/init.d/svscan : start or stop svscan.
# borrowed from http://Web.InfoAve.Net/~dsill/lwq.html#start-qmail
# modified by Adam McKenna <adam at flounder.net>
case "$1" in
start)
echo -n "Starting djb services: svscan "
...
*)
echo 'Usage: /etc/init.d/svscan {start|stop|restart}'
exit 1
esac
exit 0
If you correctly add this script to init, svscan will start each time you
boot your system. Please see the documentation for your particular system or
distribution to find out how to add things to init.
------------------------------------------------------------------
That is what I want to do.
I am running RH 6.2, I need to know how
>If that's what you *really* want, then if you use 'tcsh' or some
>other csh derivitive then there are two possible places:
>
> /etc/csh.login
> /etc/csh.cshrc
> ~/.login
> ~/.cshrc
These does not make the script run at system booting.
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
More information about the Discuss
mailing list