Results 1 to 2 of 2

Thread: How can I use init.d (or some other method) to run a screen script on boot up?

  1. #1
    Join Date
    Feb 2013
    Beans
    5

    Question How can I use init.d (or some other method) to run a screen script on boot up?

    I have a shell script that runs inside of a screen session and loops the script continuously every 10 minutes (never ends). I was wondering how I might initiate the screen session, run the shell script, then detach from it on boot.

    I like being able to attach to the screen session to see the output of the script from time to time.

    Right now I run this:

    Code:
    screen
    sh /var/www/scripts/screen.sh
    ctrl+ad (to detach)

  2. #2
    Join Date
    Feb 2013
    Beans
    5

    Re: How can I use init.d (or some other method) to run a screen script on boot up?

    I still have not had any luck figuring this out. Can anyone in the community help me out?

Tags for this Thread

Bookmarks

Posting Permissions

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