Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Backgroud Jobs from init.d

    Hello everyone.

    I am starting a background job from a startup script in init.d
    I'm using "sudo -u" to start the job as a non pivilaged user as opposed to root.
    Something like so:
    sudo -u testuser /usr/local/bin/command parameters &

    The background job works fine. But I would like to bring the process back to the terminal as I would usually do using "fg".

    But the "jobs" command does not show my process. I have tried running "jobs" as root and as "testuser", but it does not list anything.

    So... how do I show this job (or any others like it)?
    And how do I return it to the foreground\console?

    THANK YOU!!!

  2. #2
    You have to somehow make input/output i/O of the program to a tty device. That's quite difficult.

Posting Permissions

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