help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: How to detach a long-run processes from cfengine???


From: Guolin Cheng
Subject: RE: How to detach a long-run processes from cfengine???
Date: Mon, 20 Sep 2004 17:45:44 -0700

Christian,

 I'll try the "cfengine-die" statement.

 "</dev/null" means input from /dev/null, that is, no input to the
program at all.

 Thanks.
 

-----Original Message-----
From: Christian Pearce [mailto:pearcec@perfectorder.com] 
Sent: Monday, September 20, 2004 4:52 PM
To: Guolin Cheng; help-cfengine@gnu.org
Subject: Re:How to detach a long-run processes from cfengine???

Take a look at this thread.  See if this helps...

http://lists.gnu.org/archive/html/help-cfengine/2004-09/msg00096.html

I am not certain I understand "</dev/null" part of the command.

Try this

       '/bin/process > /dev/null 2>&1 &'
            useshell=true

Make sure you have useshell=true.

You can also trying adding echo "cfengine-die" after the &.

--
Christian Pearce
http://www.commnav.com
http://www.perfectorder.com

---------Original Message----------



Hi,

  Just got a problem: How to detach a programfrom cfengine? 
Theprogram iscalled from"shellcommands" section and will run as 
long as one hour, I would like it tobedetached from the main 
cfagentprocess just after it iscalled? If it possible?

  I tried the following rules but it failed, cfagent still wait 
there until thecalled program to die.

.....

  Shellcommands:

       Linux::

               "/someAbsoluteDir/Long_run_jobs.sh  
</dev/null>/dev/null 2>&1&"

 ......


Any suggestions?

 Thanks a lot.

 --Guolin
_______________________________________________
Help-cfengine mailing list
Help-cfengine@gnu.org
http://lists.gnu.org/mailman/listinfo/help-cfengine






reply via email to

[Prev in Thread] Current Thread [Next in Thread]