Results 1 to 2 of 2
hi,
I am a newbie in linux. I editted the /etc/inittab in order to open up port 8000,port 8001 & port 8002. Following are my codes:
Code:
wa1:345:respawn:/usr/local/bin/htsserver /usr/local/share/httrack/ path ...
- 09-17-2009 #1Just Joined!
- Join Date
- Feb 2008
- Posts
- 27
inittab
hi,
I am a newbie in linux. I editted the /etc/inittab in order to open up port 8000,port 8001 & port 8002. Following are my codes:
I want to write a simple script, so tht when port 8000 die, port 8001 or port 8002 will be invoke. Can this be done?Code:wa1:345:respawn:/usr/local/bin/htsserver /usr/local/share/httrack/ path /data/websites lang 1 --port 8000 >> /var/log/htsserver8000.log wa1:345:respawn:/usr/local/bin/htsserver /usr/local/share/httrack/ path /data/websites lang 1 --port 8001 >> /var/log/htsserver8001.log wa1:345:respawn:/usr/local/bin/htsserver /usr/local/share/httrack/ path /data/websites lang 1 --port 8002 >> /var/log/htsserver8002.log
Can you please guide me step by step to writting a simple script on this?
Appreciate your help and guidance. Thanks in advance
- 09-18-2009 #2Just Joined!
- Join Date
- Feb 2008
- Posts
- 27
hi, the script i plan to write is in perl. i am stl figuring how to do it. the scenario will be if either of the port die,another alternative port will be invoke. Say, port 8000 die, either port 8001 or port 8002 will be invoke. Can anyone guide me on this?
Appreciate your guidiance and help! thanks in advance.


Reply With Quote