Find the answer to your Linux question:
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 ...
  1. #1
    Just 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:
    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
    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?
    Can you please guide me step by step to writting a simple script on this?
    Appreciate your help and guidance. Thanks in advance

  2. #2
    Just 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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...