Re: MF Server rts32 does not run in AIX 5.3L batch queue
- From: "C C" <someone@xxxxxxxxxxxxxxx>
- Date: Mon, 03 Oct 2005 01:22:23 GMT
I can't redirect output to /dev/null as the program running under the
control of the queue daemon displays messages, and these messages
are captured to the backend output file specified in the device
configuration of the queue device for the job queue.
"Michael Wojcik" <mwojcik@xxxxxxxxxxx> wrote in message
news:dhk4ba030ir@xxxxxxxxxxxxxxxxxxxx
>
> In article <XbV_e.1418$cF6.323@xxxxxxxxxxxxxxxxxxxxxxxxxx>, "C C"
> <someone@xxxxxxxxxxxxxxx> writes:
>> Thanks. I think that's what's happening. Is there a variable
>> or Declaration we can include in our script so that when
>> submitting a job to the job queue, any rts32 process within
>> there will be forced NOT to query the tty on batch jobs?
>
> I don't believe so - this was a bug, not a feature - but why not just
> close the standard I/O descriptors when you start the program, as I
> suggested in my first reply?
>
> If your script has a command like
>
> cobrun foo
>
> just change it to
>
> cobrun foo <&- >&- 2>&-
>
> This assumes your script is a ksh script; the syntax for other
> shells may be different. (It might also suffice to redirect
> standard I/O to/from /dev/null.)
>
> In ksh, you can close or redirect standard I/O for the script
> itself and any programs it starts all at once by making the
> first command
>
> exec <&- >&- 2>&- # close standard I/O
>
> or
>
> exec < /dev/null > /dev/null 2> /dev/null # redirect standard I/O
>
> The latter is probably safer, as some programs assume that the
> first three descriptors will be open. You might also want to
> redirect stdout / stderr to a file to preserve any information
> the script or its children might try to display.
>
>> BTW, we submitted the same job to the background and
>> it is a stopped state. I had to kill it.
>
> Sounds like you have a version with this bug, then.
>
> --
> Michael Wojcik michael.wojcik@xxxxxxxxxxxxxx
>
> Pocket #16: A Ventriloquist's "Helper" -- Recordings for Divers Occasions,
> especially cries to put in the mouths of enemies -- "God Bless Captain
> Vere!" "Les jeux sont faits!" &c. -- Joe Green
.
- Follow-Ups:
- Re: MF Server rts32 does not run in AIX 5.3L batch queue
- From: Michael Wojcik
- Re: MF Server rts32 does not run in AIX 5.3L batch queue
- Prev by Date: Re: Initialize
- Next by Date: Re: Initialize
- Previous by thread: Re: Microfocus MFExpress Cobol listing
- Next by thread: Re: MF Server rts32 does not run in AIX 5.3L batch queue
- Index(es):
Relevant Pages
|