#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2006
    Posts
    3
    Rep Power
    0

    Perl script at startup


    Anyone know how to run a perl script after a reboot on unix? I've tried placing an S99xxx file in /etc/rc2.d/ or /etc/rc3.d/, but I don't think it likes perl scripts.....
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2006
    Posts
    3
    Rep Power
    0
    did you also create an /etc/init.d/xxx script with a "start" section? The "start" section would call your perl script.



    Originally Posted by lozz
    Anyone know how to run a perl script after a reboot on unix? I've tried placing an S99xxx file in /etc/rc2.d/ or /etc/rc3.d/, but I don't think it likes perl scripts.....
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2006
    Posts
    3
    Rep Power
    0
    I tried that as well. I created a sym link in rc3.d to pint to init.d for a "start". The perl script is interactive, & it seems when I do it this way, all the questions from the perl script appear (in a never ending loop) in the rc3.d logfile (/var/svc/log/milestone-multi-user-server:default.log), but not on the actual screen.

IMN logo majestic logo threadwatch logo seochat tools logo