[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: shellcommands returns 256, not 0
From: |
David Kewley |
Subject: |
Re: shellcommands returns 256, not 0 |
Date: |
Mon, 19 Apr 2004 14:44:56 -0700 |
User-agent: |
KMail/1.5 |
Christian Pearce wrote on Monday 19 April 2004 13:30:
> I would suggest using groups
>
> IsDir(f)
> True if the named file object is a directory.
Thanks, that's a good suggestion, and I'll do it instead of the first
shellcommand.
In the process of trying that out, I discovered that I had a bug in a variable
definition (for host_keys_master_dir), which seems to have caused the 256
return. I guess the bug caused 'test' to return 1, not 0, and it is shifted
left 8 bits when cfengine reports the return code...
David
- shellcommands returns 256, not 0, David Kewley, 2004/04/19
- Re: shellcommands returns 256, not 0, Christian Pearce, 2004/04/19
- Re: shellcommands returns 256, not 0,
David Kewley <=
- Re: shellcommands returns 256, not 0, David Kewley, 2004/04/19
- Re: shellcommands returns 256, not 0, Marion Hakanson, 2004/04/19
- Re: shellcommands returns 256, not 0, Brendan Strejcek, 2004/04/19
- Re: shellcommands returns 256, not 0, Chris Edillon, 2004/04/19
- Re: shellcommands returns 256, not 0, Mark . Burgess, 2004/04/20