grub.conf

Luciano Rocha strange at nsk.no-ip.org
Wed Jul 11 16:54:54 UTC 2007


On Wed, Jul 11, 2007 at 09:48:51PM +0530, Vivek J. Patankar wrote:
>  Luciano Rocha wrote:
> > Is the program graphical? If not, then a line with:
> > su - -s /bin/sh user -c "program" < /dev/null &> /var/log/program.log &
> > in /etc/rc.local will take care of it.
> 
>  What is the role played by /dev/null here? I tried the command with 
>  /dev/null and without. The behavior was the same.

Sets /dev/null as the standard input of the program. So, if it tries to
read from stantard input, it gets EOF. Otherwise, it would block in
/dev/console and could confuse any other program reading from the active
terminal.

-- 
lfr
0/0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20070711/d722a6df/attachment-0001.sig>


More information about the fedora-list mailing list