command line question

Kevin Fries kevin at fries-biro.com
Tue Jan 29 15:50:27 MST 2013


I am surprised nobody gave this answer, at least as far as I saw:

   $ /path/to/command &> /dev/null

Kevin
 On Jan 29, 2013 3:27 PM, "Matt Graham" <danceswithcrows at usa.net> wrote:

> From: joe at actionline.com
> > I still can't get either to work.
> > James: gwenview filename.jpg > /dev/null 2>&1 &
> > Hans:  gwenview filename.jpg 2>/dev/null &
> >
> > Both examples work to cause gwenview to open filename.jpg without
> > any error messages. However, when I close the terminal window,
> > gwenview also closes.  What am I doing wrong?
>
> To stop a process from dying when its parent tty dies, you probably want
> nohup.  "nohup gwenview filename.jpg > /dev/null 2>&1 &" .  The
> xterm/konsole
> will still be there, though you can then manually close it.
>
> If this approach *did* automagically close the xterm, it'd be functionally
> equivalent to just starting gwenview from the mini-commandline....
>
> --
> Matt G / Dances With Crows
> The Crow202 Blog:  http://crow202.org/wordpress/
> There is no Darkness in Eternity/But only Light too dim for us to see
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.phxlinux.org/pipermail/plug-discuss/attachments/20130129/21d287f7/attachment.html>


More information about the PLUG-discuss mailing list