viewing at job commands


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting viewing at job commands
# 1  
Old 08-21-2002
viewing at job commands

How can I see what at jobs are scheduled. I don't mean using atq or at -l for the jobs, but rather what actual commands are scheduled? For example with at 1940 < at_script, once the job is submitted how do I match the job id to the actual command, ie at_script?
# 2  
Old 08-23-2002
You can view the job by looking at the file it builds when you submit the at job. The job name is actually a file in /var/spool/cron/atjobs/. It sets up the job in the file so it's a bit more than just what you put in your input file.

This was what I submitted % at 0800am Aug 26 < myatjob
The file myatjob contains:
#!/bin/csh -f
# This is myatjob script
date


The job file contains:

more 1030363200.a
: at job
: jobname: stdin
: notify by mail: no
: project: 3
export MANPATH; MANPATH='/usr/share/man:/opt/OV/man'
PATH='/bin:/usr/dt/bin:/usr/bin:/usr/sbin:/usr/ucb:/usr/local/bin:/
opt/SUNWcluster/bin:/usr/ccs/bin:/u/pkgs/gcc-2.8.1/bin'
export PATH;
export PWD; PWD='/home/test'
$SHELL << '...the rest of this file is shell input'
#ident "@(#).proto 1.3 89/12/12 SMI" /* SVr4.0 1.2 */
cd /home/test
umask 22
#!/bin/csh -f
# This is myatjob script
date
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Tips and Tutorials

Viewing changes in directory

Hi, I have a directory, and there is a job running and constantly writes and removes files from and to this directory. I would like to see somehow these changes without pressing `ls` every second. Kind of `tail -f` command, but for a directory list and not for file content. I thought maybe kind... (5 Replies)
Discussion started by: ilya_dv
5 Replies

2. Shell Programming and Scripting

autosys job configuration for job failure.

We need to configure autosys that when a job fails continously for 3 times, we need to call another job. Is this possible in Autosys, or can anyone advice on the alternative. (2 Replies)
Discussion started by: sangea
2 Replies

3. Shell Programming and Scripting

Script to Start a Job after finding the Old job completed

Hi Experts, I need a script advice to schedule 12 jobs ( SAS Codes execute back ground ). Algorithem: 1. Script checks first job. 2. Finds first job is done; invoke second job. 3. finds second job is done; invoke third job. .. Request you to please assist. (3 Replies)
Discussion started by: Jerald Nathan
3 Replies

4. Shell Programming and Scripting

viewing lines

Hey, I know the head and tail function is to view like the top or bottom lines for each file. But lets say I want to view the top/bottom 100 or top/bottom 1000 for a file. whats the command that I use to do this? thanks (2 Replies)
Discussion started by: kylle345
2 Replies

5. Shell Programming and Scripting

Viewing the commands executed

Hi, I have executed a set of commands on the linux server and later rebooted the server. Is it possible to get the details of the commands I executed prior to the reboot? If yes please let me know how? Thanks. (1 Reply)
Discussion started by: yoursdavinder
1 Replies

6. UNIX for Advanced & Expert Users

can some one give me some link about process and job control commands

can some one give me some link about process and job control commands (2 Replies)
Discussion started by: alokjyotibal
2 Replies

7. UNIX for Dummies Questions & Answers

How to insert child job under a box job?

I have this box job and it contains only one job under it which is to load a file. I want to insert a "File Watcher", "Copy File" to it? Have no clue how to do that...any help plzzz... (4 Replies)
Discussion started by: xejatt
4 Replies

8. Solaris

killing a unix job after the job process gets completed

Hi, Thanks in advance. i need to kill a unix background running job after that job process completes. i can kill a job by giving the following unix command kill -9 processid how to kill the job after the current process run gets completed ? Appreciate your valuable help. Thanks... (7 Replies)
Discussion started by: dtazv
7 Replies

9. Shell Programming and Scripting

killing unix job after the job process completes

Hi, Thanks in advance. i need to kill a unix background running job after that job process completes. i can kill a job by giving the following unix command kill -9 processid how to kill the job after the current process run gets completed ? Appreciate your valuable help. ... (1 Reply)
Discussion started by: dtazv
1 Replies

10. UNIX for Dummies Questions & Answers

pdf viewing

How do I view pdf files on a Solaris 9 environment? Links and such would be grateful. "AAAAHHH!! They're everywhere!!!" - Halo Grunt (3 Replies)
Discussion started by: antalexi
3 Replies
Login or Register to Ask a Question