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



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


.



Relevant Pages

  • Re: redirecting printing
    ... One method is to set up a print filter type script as a front end print ... The script itself could determine the time and then redirect the ... print job to the appropriate printer queue. ... We're currently printing using streaming printing from our patient care ...
    (AIX-L)
  • Re: LDAP query information
    ... a "Dim" statement. ... script is run. ... Microsoft MVP Scripting and ADSI ... to redirect the output to a text file: ...
    (microsoft.public.windows.server.scripting)
  • Re: Page_Load method issues with Back Button
    ... startup script if it should run or not. ... redirect set the hidden field to a different value. ... Instead the client receives the response.redirect and still ... I have created a webform. ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: dealing with lengthy (time) query sets
    ... I would put the 'x' records into a QUEUE table. ... My last resort which i know works is to make another script that makes ... its own database connection does its work and dies. ... sender of the delivery error by replying to this message, or notify us by ...
    (perl.dbi.users)
  • Re: PHP file download counter
    ... This will log the request to a flat file then redirect the ... // Class SimpleRedirectLog ... $err = false; ... Write a script that supplies the file download with the correct mime type ...
    (comp.lang.php)