Tracking the script(.sh) files triggered on daily or monthly basis from source


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Tracking the script(.sh) files triggered on daily or monthly basis from source
# 1  
Old 07-17-2013
Tracking the script(.sh) files triggered on daily or monthly basis from source

Hi Gurus,

Is there any solution for tracking the script(.sh) files triggered on daily or monthly basis from source - Datastage (Routines)

Needs to find out if this scripts are running on daily

just want to know that is there anything to track

Thanks in Advance

Last edited by SeenuGuddu; 07-17-2013 at 04:35 PM..
# 2  
Old 07-18-2013
Quote:
Originally Posted by SeenuGuddu
Hi Gurus,

Is there any solution for tracking the script(.sh) files triggered on daily or monthly basis from source - Datastage (Routines)

Needs to find out if this scripts are running on daily

just want to know that is there anything to track

Thanks in Advance
What do you mean by Datastage (Routines)?

Let me see if I get this straight. You want to keep a log of all the scripts that are run every day? --> If a script is run automatically on a periodic basis, it is most likely scheduled to do so using cron. If you're root, you can access the list of the files that are executed, how (which arguments, and so on) and when.

If I misunderstood you, feel free to write back and clarify. Please share other details such as OS, what shell you're using, etc.
# 3  
Old 07-18-2013
It would be trivial to have them all log one line to a common log right after they start.
Code:
#!/usr/bin/sh
 
date "+%Y-%m-%d %H:%M:%S ($$) $0 $*" >>/var/tmp/DS_exec_log.`date '+%Y-%m-%d'`
....

Datastage may already be tracking this. Look here, under Job Runs: http://www.ibm.com/developerworks/da...ationsconsole/
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script to count files on daily basis

Hi all I need to count files on a daily basis and send the output via email, what I am currently doing its simply running the following:ls -lrt *.cdr | awk '{if(($6 == "Jul") && ($7 == "13")) print $0}' | wc -l, which in this case it will count all files with extension "cdr" from the month of... (13 Replies)
Discussion started by: fretagi
13 Replies

2. Shell Programming and Scripting

Archiving a log file on monthly basis

OS : RedHat Linux 6.2 Shell : Bash Our application write messages, warnings,..etc to the following log file . /app/cms/diagnostics/logs/cms_messages.log This file has become huge now. I want this file to be archived on monthly basis using a small shell script. ie. On the 1st day of... (1 Reply)
Discussion started by: omega3
1 Replies

3. Shell Programming and Scripting

Script to move file on a daily basis

Hi! Please I need help on the a script that would pick one file in a directory, change its name, them change its permissions, them move to a different directory, but has to be done on a daily basis, and the file that is being moved to its final destination has to have the following format:... (7 Replies)
Discussion started by: fretagi
7 Replies

4. Shell Programming and Scripting

Creating directory daily basis...

Need help on this script. the month is not changing to February... #!/bin/bash for X in `seq 1 100` do DATE=`date +%Y-%m-%d "--date=${X} day ago"` Y=`date +%Y` M=`date +%m` D=`date +%d "--date=${X} day ago"` DIR=/home/LogBackup for i in `seq 1 ` do if ;then # ... (1 Reply)
Discussion started by: alelee
1 Replies

5. UNIX for Advanced & Expert Users

Autosys JOB on monthly basis

Dear All, Can someone tell me how do I setup autosys job where it needs to execute on monthly basis that too on 1st day of the month. Thanks. (3 Replies)
Discussion started by: shahnazurs
3 Replies

6. Shell Programming and Scripting

split monthly logfiles into daily logfiles

Hi, I have a lot of logfiles like fooYYYYMM.log (foo200301.log, foo200810.log) with lines like YYYY-MM-DD TIMESTAMP,text1,text2,text3... but I need (for postprocessing) the form fooYYYYMMDD.log (so foo200402.log becomes foo20040201.log, foo20040202.log...) with unmodified content of lines. ... (1 Reply)
Discussion started by: clzupp
1 Replies

7. Shell Programming and Scripting

Zip all the files within a directory on a daily basis

I need to zip all the files within a directory on a daily basis and store them as a zip file within that directory with the date in its naming convention I have file extentions .log .lst and .out's within that directory How do i do this task zip -mqj mydir/allzip$YYMMDDDD.zip mydir/*.* ... (5 Replies)
Discussion started by: ramky79
5 Replies

8. HP-UX

HPUX printers & plotters disable on a daily basis

HI all, I've been having issues with printers and plotters disabling with no reason at all...It could happen to the same workstation once a day or once a week..There is nothing consistant..I stop and restart the spooler, only then can I re-enable the disabled printer.... If anyone is... (0 Replies)
Discussion started by: Shutdown
0 Replies
Login or Register to Ask a Question