!! (bang bang) should be ||, the logical OR operator

Bill Watson wrote:
> I pasted the command below on one line where it goes "....pid ] !!
> /sbin/ser....." in the middle.
> 
> I get a cron email that says
> Cron <[EMAIL PROTECTED]> [ -f /var/named/chroot/var/run/named/named.pid ] !!
> /sbin/service named restart
> 
> /bin/sh: line 0: [: missing `]'
> 
> Is there something more or different needed for an older AS4.0 system that I
> am practicing on? My named.pid is in the listed path and I don't see why it
> is whining.
> 
> Thanks,
> Bill Watson
> [EMAIL PROTECTED]
> 
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> On Behalf Of John Summerfield
> An entry like so in root's crontab is a handy workaround:
> <snip>
> */5 * * * * [ -f /var/named/chroot/var/run/named/named.pid ] !! 
> /sbin/service named restart
> 
> Note: one line
> 
> Note, Each five minutes might not be your choice, but chances are that 
> by the time anyone notices it's fixed.
> 
> 
> 
> 
> 

-- 
Jeff Macfarland ([EMAIL PROTECTED])
Nexa Technologies - 972.747.8879
Systems Administrator
GPG Key ID: 0x5F1CA61B
GPG Key Server: hkp://wwwkeys.pgp.net

_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list

Reply via email to