[Tickets] Error in system/hostname.i
Jorge Peixoto de Morais Neto
please.no.spam.here at gmail.com
Thu Mar 22 23:52:24 CET 2007
In the file system/hostname.i, there is the line
/bin/rm /etc/env.d/01hostname 2>&1 >/dev/null
It seems like the script tries to suppress the output of rm. But it does not
work, and the output appears on the screen, like this:
system/hostname : /bin/rm: cannot remove `/etc/env.d/01hostname': No such
file or
system/hostname : directory
According to the site http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO-3.html,
the correct syntax to suppress the output of rm would be
/bin/rm /etc/env.d/01hostname &> /dev/null
This works.
--
Software is like sex: it is better when it is free.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jw.dyndns.org/pipermail/tickets/attachments/20070322/937436fd/attachment.htm
More information about the Tickets
mailing list