LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Adding a startup script to be run at bootup - no root rights (https://www.linuxquestions.org/questions/linux-newbie-8/adding-a-startup-script-to-be-run-at-bootup-no-root-rights-756169/)

matar73 09-18-2009 07:43 AM

Adding a startup script to be run at bootup - no root rights
 
Hi,

Is there a way to start a custom script (my own script) when linux starts.
I know I may use the /etc/init.d/ trick but the problem is that I have no root rights to modify the /etc/init.d/ directory.
any idea?

Thanks

rayfordj 09-18-2009 09:07 AM

if you have the ability to schedule a cron job for your particular user you may want to review man 5 crontab for a possible solution.

Code:

      These  special  time  specification  "nicknames"  are  supported, which
      replace the 5 initial time and date fields, and are prefixed by the ’@’
      character:
      @reboot    :    Run once, at startup.


:study:

rizwanrafique 09-18-2009 10:14 AM

Also, can you clarify if you want to run it before you load desktop environment (KDE/gnome) or after? If you want to run it after KDE/gnome are loaded then you can use put it in their settings.


All times are GMT -5. The time now is 02:03 PM.