how to start my shell-script,should i write all words of hte script direkt to /etc/rc.d/rc.local , and it will work after reboot?
at first i open this file /etc/rc.d/rc.local , there are some words :
#!/bin/sh
touch /var/lock/subsys/local
then i write my words after the second row ? such as:
iptables -A INPUT -t filter -p tcp --dport 22 -j ACCEPT
..............................................
then save and quit?
wo bu zhi dao ni zai wen shen me, wo bu hui ying yu, zhi neng shuo pin yin le.
ha ha ha, this is the same for all over the world!
test it:
chmod a+x [your_program]
for example
#vi lsn
ls -n -a
:wq
#chmod a+x lsn
#./lsn