calvinlyp has asked for the wisdom of the Perl Monks concerning the following question:

hi all,

i am retively new to linux platform. i have two pc each beinginstalled with ubuntu 8.10 and xubuntu 8.10.

i required to create a bash file in order to run a perl script automatically after it boot up.

may i know how about to create one?

below is some how i did a little research but not quite sure how to turn into a bash file and where to store it.

#!/bin/bash . /etc/Schedg/SCHEDG_CONFIGS #<some commented stuff deleted here> export PORT=`basename $PWD` sleep 60 exec setuidgid $USER $HOME/Schedg/bin/schedg_client.pl --configfile $C +LIENT/$HUB-$PORT >> /tmp/$HUB-$PORT.out 2>&1

Replies are listed 'Best First'.
Re: auto run of perl script
by nagalenoj (Friar) on Jun 02, 2009 at 03:55 UTC
    Dear monk,

    This is not a perl question. I hope this can help you.

Re: auto run of perl script
by Anonymous Monk on Jun 02, 2009 at 01:36 UTC
    That is a pure linux question ... use init
Re: auto run of perl script
by hpavc (Acolyte) on Jun 02, 2009 at 16:50 UTC
    For non-root/system stuff I use the crontab @reboot directive available with many crons.