Re: MF Server rts32 does not run in AIX 5.3L batch queue




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
.