LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 06-28-2010, 08:20 PM   #1
ZAMO
Member
 
Registered: Mar 2007
Distribution: Redhat &CentOS
Posts: 598

Rep: Reputation: 30
how to list the exact Job in at


Hi all,

Am using "atq" to list a scheduled job using "at" already configured in a Linux box. How can I know , which script/executable is configured in that particular Job?

Code:
bash-3.00# atq
 Rank     Execution Date     Owner      Job            Queue   Job Name
  1st   Jun 25, 2010 00:00   root       1277856000.a     a     stdin
  2nd   Jun 25, 2010 00:00   root       1277856001.a     a     stdin
How can I know , the script/executable to be executed by 1277856000.a?

Thanks
 
Old 06-29-2010, 04:21 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
As long as the job isn't completed the at script resides somewhere in /var/spool/at so you can 'at -c' or 'cat' the job file as long as you have access rights. BTW your 'at -l' or 'atq' returning a "Rank Execution Date Owner Job Queue Job Name" header makes me think this is not a Linux Server question, correct?
 
Old 06-29-2010, 08:41 AM   #3
ZAMO
Member
 
Registered: Mar 2007
Distribution: Redhat &CentOS
Posts: 598

Original Poster
Rep: Reputation: 30
Yes , this is in a solaris box.
 
Old 06-29-2010, 10:27 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Then next time please post in the Solaris/OpenSolaris forum, TIA.
 
Old 07-01-2010, 07:40 PM   #5
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
This thread has been moved to the Solaris forum so that it may get the exposure it deserves.

Sasha
 
Old 07-02-2010, 07:29 AM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by ZAMO View Post
Code:
bash-3.00# atq
 Rank     Execution Date     Owner      Job            Queue   Job Name
  1st   Jun 25, 2010 00:00   root       1277856000.a     a     stdin
  2nd   Jun 25, 2010 00:00   root       1277856001.a     a     stdin
How can I know , the script/executable to be executed by 1277856000.a?
On Solaris, that would be /var/spool/cron/atjobs/1277856000.a. Only the last line(s) are the commands you scheduled. Before that is a lot of initialization stuff.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Has this job have future growth ? Is this job good for linux fresher? meandsushil General 24 05-18-2010 07:27 AM
I need a list of good books for a daily "Linux Administrator" job latinmusic74 Linux - General 2 01-01-2010 07:17 PM
CUPS job list AcerKev Linux - Networking 0 06-18-2004 06:09 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 04:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration