Re: exec question

Holger.VanKoll_at_SWISSCOM.COM
Date: 09/25/03

  • Next message: Chris Gregors: "Re: exec question"
    Date:         Thu, 25 Sep 2003 16:11:06 +0200
    To: aix-l@Princeton.EDU
    
    

    are you telling that a script redirects stdin and stdout,
    and after execution stdin+stdout keeps redirected??

    maybe try to close the filedescriptors ( 1>&- ) etc.

    -----Original Message-----
    From: Bill Verzal [mailto:BVerzal@KOMATSUNA.COM]
    Sent: Thursday, September 25, 2003 4:02 PM
    To: aix-l@Princeton.EDU
    Subject: exec question

    Probably a simple question, but I'm at a loss. Google has offered some
    suggestions, but nothing helps.

    I have a script that does an "exec 1>filename 2>fileerr".

    After the task finishes, how do I re-open stdout and stderr again so I
    can print stuff on the screen (such as end times and stuff) ?

    Thanks, Bill.
    --------------------------------------------------------

    Bill Verzal
    AIX Administrator, Komatsu America
    (847) 970-3726 - direct
    (847) 970-4184 - fax


  • Next message: Chris Gregors: "Re: exec question"