Find the answer to your Linux question:
Results 1 to 4 of 4
I have a script on machine A which has an infinite loop. This script has to be a daemon. I need to start this daemon from machine B. There shouldnt ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2009
    Posts
    12

    How do i start a daemon process using ssh?


    I have a script on machine A which has an infinite loop. This script has to be a daemon.
    I need to start this daemon from machine B.
    There shouldnt be any stdout,stderr associations between two machines..
    how do i achieve it?

  2. #2
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    so ssh from machine B to machine A, start the script with a nohup <cmd> & and then logout

  3. #3
    Just Joined!
    Join Date
    May 2006
    Posts
    8

    why?

    Quote Originally Posted by balki View Post
    I have a script on machine A which has an infinite loop. This script has to be a daemon.
    I need to start this daemon from machine B.
    There shouldnt be any stdout,stderr associations between two machines..
    how do i achieve it?
    some of this seems unnecessary.
    why do you need to start it from another machine, can't you cron it or have it start with the system?

  4. #4
    Just Joined!
    Join Date
    Sep 2009
    Posts
    12
    regular service i'll cron..
    I need to start in lot of machines, so i need to script it.

Posting Permissions

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