The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Viewing files dsimpg1 UNIX for Dummies Questions & Answers 2 07-07-2005 01:21 PM
viewing are .tar.gz file lawadm1 UNIX for Dummies Questions & Answers 2 08-23-2004 12:57 PM
pdf viewing antalexi UNIX for Dummies Questions & Answers 3 05-10-2004 12:43 PM
viewing tables itldp UNIX for Dummies Questions & Answers 2 12-17-2003 09:19 AM
Viewing Tar files mapping UNIX for Dummies Questions & Answers 1 11-12-2002 10:51 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-21-2002
qanda qanda is offline
Registered User
  
 

Join Date: Aug 2002
Posts: 12
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 (permalink)  
Old 08-23-2002
RTM's Avatar
RTM RTM is offline Forum Advisor  
Hog Hunter
  
 

Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
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
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:08 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0