16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Options<br />

creation mask, and so on that are set up when you run the at command; however,<br />

at does not usually preserve open file descriptors, traps, or priority inherited from<br />

the working environment.<br />

Usually, you redirect the standard output (stdout) from these commands to files so<br />

you can read the files after the system runs the commands. at mails the standard<br />

output (stdout) and standard error output (stderr) to you if you do not redirect<br />

them.<br />

The at command displays an at-job identifier when you submit commands, along<br />

with the time that the system is to run the commands.<br />

at, batch, and crontab submit jobs to cron; the data in these jobs may contain<br />

doublebyte characters. When the jobs are run, the data in the jobs are interpreted<br />

in the locale that cron is using. Since it is strongly recommended that cron be<br />

started in the P<strong>OS</strong>IX locale, doublebyte characters in the job may not be interpreted<br />

correctly. You can get around this by calling setlocale() in the job itself.<br />

–f file Reads commands from file rather than from standard input (stdin).<br />

–l Reports on standard output (stdout) all jobs you have scheduled and when<br />

the system is to run them if you do not specify at_job. If you specify<br />

at_jobs, this option reports information on only those jobs.<br />

–m Sends you mail after your job has finished running. If you did not redirect<br />

the stdout and stderr, at also mails these to you. If stdout or stderr is<br />

non-null, at mails this output to you even if you do not specify –m.<br />

–q queue<br />

Specifies the queue your at job is to be recorded in or removed from.<br />

queue can be any singlebyte character except a space, a tab, a null<br />

character, or a number sign (#). By default, at stores all its jobs in a queue<br />

called a, and batch stores all its jobs in a queue called b. If used with this<br />

option, –l reports information only on at jobs in queue.<br />

–r at_job<br />

Removes previously scheduled at jobs. The at_job arguments must be the<br />

identifiers assigned to the jobs when you set them up with at.<br />

–t time<br />

Specifies the time for the system to run the job. You specify time in the<br />

same format as the time argument for touch.<br />

When you do not use the –t option, you can use a timespec argument to specify<br />

the time. A timespec argument consists of three parts: a time, a date, and an<br />

increment (in that order). You must always specify the time, but you can omit the<br />

date, the increment, or both. Following are possible time formats:<br />

Format Meaning<br />

hhmm hh hours, mm minutes, 24-hour clock<br />

hh:mm hh hours, mm minutes, 24-hour clock<br />

h:mm h hours, mm minutes, 24-hour clock<br />

h:m h hours, m minutes, 24-hour clock<br />

hh:mm zone zone is time zone<br />

at<br />

Chapter 2. Shell command descriptions 23

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!