![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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
|
||||
|
||||
|
The 12345678.a is the filename of the spool file (/var/spool/cron/atjobs/12345678.a) - You could cat that file.
Cheers, Keith |
|
#3
|
|||
|
|||
|
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
|
||||
|
||||
|
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 |