1753872 Members
7306 Online
108809 Solutions
New Discussion юеВ

Migration MPE to HP-UX

 
Jesus Gonzalez_1
Occasional Contributor

Migration MPE to HP-UX

In MPE he could know that spool file it had generated a process batch with the command:
SHOWOUT JOB=#Jnnnn.
If in HP-UX I execute
at - f now
obtains:
job 1039447301.b at Mon Dec...
If this batch generates a spool file as I can know which is the one that corresponds with my process batch of those that there is in the output queues?.
Thank you.
2 REPLIES 2
Simon Hargrave
Honored Contributor

Re: Migration MPE to HP-UX

The standard output and Standard Error streams from the script will, by default be sent via e-mail to the user who executes the at command.

If you want it storing in a separate spool file, you'll have to redirect the output to a specific file, of which you'll choose the filename yourself.
Simon Hargrave
Honored Contributor

Re: Migration MPE to HP-UX

Forgot to say, if you want to redirect everything to a specified file, you can put the following in the top of your script file: -

exec > /tmp/logfile 2>&1

If you want the file to be named based on the process ID of the job (so you have unique filenames), then you could use: -

exec > /tmp/logfile.$$ 2>&1