Hello All,
I have a execuatble shell program that I need to run upon startup:
Code:
prompt$ cat program.sh
echo 1 > /proc/sys/net/ipv4/ip_forward
/prod/sbin/snmpd -c /prod/etc/snmpd.conf -s -l /dev/null -P /prod/var/run/snmpd -a
/sbin/route add -net 192.168.30.0 netmask 255.255.255.0 gw 192.168.2.3
/sbin/route add -net 192.168.110.0 netmask 255.255.255.0 gw 192.168.2.3
/sbin/route add -net 192.168.80.0 netmask 255.255.255.0 gw 192.168.2.3
/sbin/route add -net 192.168.100.0 netmask 255.255.255.0 gw 192.168.2.3
I tried adding the lines to the rc.local file in /etc .. but the script never runs. Can some tell me how I can get these lines to execute upon start up so my netork can be properly configured???
Also .. I am using Red Hat 9(for various reasons). I know that in Fedora Core 6, I could just simply add the program thru, preferences->more prefernces->session->starup programs. However on this particular machine, I have no gui, so I must figure out a way to maually add it(ie. thru the commmand line).
Thanks again and Take Care