I''m stumped. I''m just trying to do something like: if [ `command a` -eq 0 ] || [ `command b` -eq 0]; then <do stuff>; fi And I just can''t seem to make it work. Thanks, Trevor _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
Luke Kanies
2007-Mar-02 20:19 UTC
Re: What characters do you have to ''\'' escape in exec?
On Mar 2, 2007, at 2:15 PM, Trevor Vaughan wrote:> I''m stumped. > > I''m just trying to do something like: > > if [ `command a` -eq 0 ] || [ `command b` -eq 0]; then <do stuff>; fi > > And I just can''t seem to make it work.You shouldn''t need to escape anything specially for exec vs. any other string. See if you can correctly get your string into a file via content => blah. Quoting should be your only issue, but it doesn''t look like you''ve got any complicated quotes here. -- Censorship, like charity, should begin at home; but, unlike charity, it should end there. --Clare Booth Luce --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com