[olug] BASH shell programming question.

Jay Swackhamer Jay at RebootTheUser.com
Tue Jul 29 14:56:05 UTC 2003



to get rid of all output

MYCOMMAND > /dev/null 2>&1 &

to capture screen output, and disconnect the process from your
terminal(just in case the ssh session drops) put a nohup infront

i.e.
nohup wget
ftp://ftp.webtrek.com/pub/mirrors/knoppix/KNOPPIX_V3.2-2003-06-06-EN.iso &
> wget_knoppix.log



> I have been trying to redirect standard out and error to /dev/null.  I
> believe that I should be using &> /dev/null, but the output still echo's
> to
> the screen.  Even when running my command from the command line, I still
> get the output echoing to the screen.  Anyone have any idea's?
>
> Thanks
>
> Daryl Rose
> Scantron Service Group
> Unix Support Specialist
> drose at scantron.com
> 1-800-228-3628 x3061
>
>
> _______________________________________________
> OLUG mailing list
> OLUG at olug.org
> http://lists.olug.org/mailman/listinfo/olug
>


-- 
Jay Swackhamer
Reboot The User
15791 West Dodge Road
Suite 135
Omaha, NE 68118
(402) 933-6449
(402) 933-6456 Fax
http://www.RebootTheUser.com


More information about the OLUG mailing list