The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Help Required: Command to find IP address and command executed of a user loggedout Security 2 08-06-2008 05:12 PM
how to? launch command with string of command line options TinCanFury Shell Programming and Scripting 5 04-28-2008 03:06 PM
inconsistent ls command display at the command prompt & running as a cron job rajranibl Linux 5 07-30-2007 05:26 AM
How to use more than one MPE command STREAM with Unix command in a single shell? bosskr HP-UX 1 10-16-2006 01:16 PM
How to use more than one MPE command STREAM with Unix command in a single shell? bosskr Shell Programming and Scripting 0 09-19-2006 06:44 PM

Closed Thread
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 11-21-2003
Registered User
 

Join Date: Nov 2003
Posts: 2
Cool at Command

if i start a shell script with the at command,
how it is possible to see exactly which shell script is started
instead of 12345678.a
Forum Sponsor
  #2  
Old 11-21-2003
kduffin's Avatar
UN1X
 

Join Date: Nov 2003
Location: Virginia
Posts: 441
The 12345678.a is the filename of the spool file (/var/spool/cron/atjobs/12345678.a) - You could cat that file.

Cheers,

Keith
  #3  
Old 11-21-2003
Registered User
 

Join Date: Nov 2003
Posts: 2
Hi Keith,
thanks but the question was`nt correct.
After the at command i can see with at -l all scripts are submitted.

So, is it possible to see which shell script is meaning.
I start with " at now + 2 hours < test.sh"

With at -l
the result is 12345678.a
In this case i would like to see it like
test.sh hh:mm
if you try by yourself you can see the problem.

Because it is possible that the script is started two times,
and this could be a big problem.

regards
wolli
  #4  
Old 11-21-2003
kduffin's Avatar
UN1X
 

Join Date: Nov 2003
Location: Virginia
Posts: 441
I think you are confusing the purposes of at versus cron. Cron schedules 'scripts' while at schedules 'commands'. If you want to see reference to an actual 'script' instead of the contents of that scriptfile, you'd have to input a script that calls a script (ie)

realscriptfile.sh

# real script
for i in /tmp/*.iso
do
etc...
done

scriptfile.sh:
/path/to/script/realscriptfile.sh

at now +2 hours < /path/to/scriptfile.sh

You would then be able to see the /path/to/realscriptfile.sh in the file I spoke of. It will still have the environment information as well.

Cheers,

Keith
Google The UNIX and Linux Forums
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 02:10 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0