Skip to main content

Run root shell script in background

Comments

4 comments

  • secureconfig
    hello you need create cronjabs ! run this command : crontab -e then crontab file should open and you need to add cronjabs codes. for example : 0 * * * * /usr/bin/myscript >> /root/myscript.log this cronjab run every hour and save output to /root/myscript.loh Good Luck.\
    0
  • triantech
    Hey, You can run your script in a screen. If it is not installed in your server, you can install it via SSH :
    yum install screen
    Once the installation is complete, you can check the screen man page for more details on setting up the screen.
    0
  • cPanelMichael
    Hello :) Yes, "screen" is a useful utility if you want to run a command in the background: [url=http://linux.die.net/man/1/screen]screen(1) - Linux man page Thank you.
    0
  • JanKrohn
    Thanks! Trying a cron job for now, since I'm familiar with those from the cPanel interface.
    0

Please sign in to leave a comment.