[Gllug] Changing destination of shell output

Rhys Hopkins rhys.hopkins at culver-tec.com
Wed Oct 23 12:08:27 UTC 2002


Does anyone know if it is possible to change redirected output from a
background or stopped job to another file descriptor ?

I envisage doing something like the following:

bash # ./myscript.sh
Output from script
Output from script
...
Output from script
Output from script
^Z
bash # <redirect output of job 1 to /dev/null>
bash # bg 1
bash #

This has been puzzling me for a while now and I can't find anything in the
man pages to suggest
it can be done, but at least I could rest easier if I knew it was definitely
impossible.

Cheers,

Rhys.


***********************************************************************************************************
Visit us at http://www.culver-tec.com

DISCLAIMER & CONFIDENTIALITY NOTICE

This email and any files transmitted with it are confidential and intended solely for the use
of the individual or entity to whom they are addressed.  This communication may contain
privileged material.  If you are not the intended recipient or the person responsible for 
delivering the email to the intended recipient, please be advised that you have received
this email in error and that any use, dissemination, forwarding, printing or copying of this
email is strictly prohibited.

The content of this email and any files transmitted with it may not reflect the views and
opinions of the originating company.  If you have received this email in error, please 
telephone +44 (020) 7456 1300 immediately.
The contents of this email are subject to the terms and conditions of use of our Websites.
No inappropriate content of any sort in this email is approved by us.
If you have any queries or complaints, please forward this email to complaints at culver-tec.com
***********************************************************************************************************


-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list