help-cfengine
[Top][All Lists]
Advanced

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

Re: Problem with shellcommand and background job


From: Manon Goo
Subject: Re: Problem with shellcommand and background job
Date: Thu, 17 Feb 2005 23:56:46 +0100

Yes, that's what I'm doing now .... but how do I'd like to see the output because sometimes it says something meaning full to me :)




--On 17. Februar 2005 22:39:15 +0100 Mark Burgess <address@hidden> wrote:

Try

shellcommand < /dev/null > /dev/null

M

Quoting David Douthitt <address@hidden>:

Manon Goo wrote:
> I  have tried to restart BigBrother from cfengine (2.1.13 )  the
> BigBrother restart script starts some other processes in background
> but these to not close the STDIN and STDERR. Now cfengine habs
> infinite unless I redirect the output of The restart script.

I don't know if there is a way around it, but I believe that is expected
behavior, though incorrect behavior.  The programs should close STDIN
and STDERR, but if they do not then things hang.

I ran into this trying to get some programs to run during system startup
in initialization scripts.

The real question is: can cfengine work around this?  I believe you can
use a shell script to "hold" the process which doesn't close STDIN and
STDERR properly.

--
David Douthitt
UNIX System Administrator
Linux+, LPIC-1, RHCE
HP-UX, Unixware, Linux, FreeBSD, OpenBSD
Member: ACM, USENIX/SAGE


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



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272            Email:  address@hidden
Fax : +47 22453205            WWW  :  http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


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



Attachment: pgpWSUWQDWTHQ.pgp
Description: PGP signature


reply via email to

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