Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

atq command: script name instead job info

Status
Not open for further replies.

municipal

Programmer
Jan 1, 2001
62
0
0
IL
Hi all
In atq command we get job information like
root.635670000.a
I want to get the script name
How can I?
TIA.
 
In /var/spool/cron/atjobs you'll find a file by the name shown in the atq output. It contains environmental definitions, followed by the command to be executed.

for your example:

cat /var/spool/cron/atjobs/root.635670000.a



Rod Knowlton
IBM Certified Advanced Technical Expert pSeries and AIX 5L

 
cat /usr/local/bin/atv

[tt]#!/bin/ksh

cat /var/spool/cron/atjobs/${1}[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top