08-10-2014
If your system administrator has process accounting enabled (the way to do this varies from system to system), and the script is invoked by name (as in ./script or $HOME/bin/script); not by invoking a shell and giving the script as an operand (as in sh script, or bash ./script, or ksh -xv $HOME/bin/script) then you could search the process accounting database to see how many times the script was run, when it was run, and by whom.
If the script itself updates a log file that logs each time the script is run, you can search its log file.
Otherwise, you're probably not going to find what you want.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I want a script which will run in the background.
$ sh s.sh&
523
Then this script should provide input to the Login command.
$ login
login:
i.e instead of the user typing in the username and password, the script running in the background should provide the username and password assuming... (1 Reply)
Discussion started by: rahulrathod
1 Replies
2. Shell Programming and Scripting
Forgive me if this is a dumb question...I'm a Windows sys admin with little programming knowledge.
I have files containing anywhere from 3 to 200 lines. Using SED, I want to extract only lines containing a specific instance of "ISS." It is possible that "ISS" will occur several times in a... (10 Replies)
Discussion started by: thuston22
10 Replies
3. UNIX for Dummies Questions & Answers
Hi,
If in a shell script i write a command
ls > bla &
ls
The output is redirected to bla and the next ls starts as first one is going on in background.
I want to find the PID of the first command.
Thanks in advance (2 Replies)
Discussion started by: vibhor_agarwali
2 Replies
4. UNIX for Dummies Questions & Answers
Is any one who know a good tutorial for Unix bash script and Ms-Dos scipt??
if yes, if is possible to upload it or give me the link???
What is the difference betwwen uvix and ms-dos script?? (1 Reply)
Discussion started by: Tom2
1 Replies
5. AIX
Is there such location or command to know how many times did you reboot your server in that particular day?in AIX. (3 Replies)
Discussion started by: kenshinhimura
3 Replies
6. Shell Programming and Scripting
Hello,
I am a new programmer and currently having some difficulties writing a script. Your help will be very appreciated. In general, I have the below script running in one folder and and can get results from "OUPUT" file in the same folder. My question is I have several hundreds folder which all... (1 Reply)
Discussion started by: luhaiming
1 Replies
7. Shell Programming and Scripting
Hi, I am a beginner unix user. I would appreciate any help you guys can provide me with. What I am looking to do is the following. I have a log file that gets generated every morning.
Example: /home/me/folder/temp.log
temp.log will say "Socket connected" if the connection was successful,... (4 Replies)
Discussion started by: Jeffenri
4 Replies
8. UNIX for Advanced & Expert Users
Hi All,
when is run this manually it work's
i am UNable to get the proper .sql so that i can use this in my input file. I need to do this way only bcz of requirment.
Sample script
isql -Sxxx -Usa -Pyyyy -D master -o "abc_script.sql" << EOF
echo USE master >> "abc_script.sql"... (1 Reply)
Discussion started by: oracle_coorgi
1 Replies
9. Shell Programming and Scripting
I was wondering if someone could help me or atleast push me in the right direction.
All my users have a folder with their username (i.e. john.doe ) some of these folders contain a subdirectory with the first letter of there first name and there lastname (i.e. jdoe )
I'm trying to create a... (1 Reply)
Discussion started by: binary-ninja
1 Replies
10. Programming
Hello,
i'm trying to implement the times() function and i'm programming in C.
I'm using the "struct tms" structure which consists of the fields:
The tms_utime structure member is the CPU time charged for the execution of user instructions of the calling process.
The tms_stime structure... (1 Reply)
Discussion started by: g_p
1 Replies
AT(1) General Commands Manual AT(1)
NAME
at - execute commands at a later time
SYNOPSIS
at time [ day ] [ file ]
DESCRIPTION
At squirrels away a copy of the named file (standard input default) to be used as input to sh(1) at a specified later time. A cd(1) com-
mand to the current directory is inserted at the beginning, followed by assignments to all environment variables. When the script is run,
it uses the user and group ID of the creator of the copy file.
The time is 1 to 4 digits, with an optional following `A', `P', `N' or `M' for AM, PM, noon or midnight. One and two digit numbers are
taken to be hours, three and four digits to be hours and minutes. If no letters follow the digits, a 24 hour clock time is understood.
The optional day is either (1) a month name followed by a day number, or (2) a day of the week; if the word `week' follows invocation is
moved seven days further off. Names of months and days may be recognizably truncated. Examples of legitimate commands are
at 8am jan 24
at 1530 fr week
At programs are executed by periodic execution of the command /usr/lib/atrun from cron(8). The granularity of at depends upon how often
atrun is executed.
Standard output or error output is lost unless redirected.
FILES
/usr/spool/at/yy.ddd.hhhh.uu
activity to be performed at hour hhhh of year day ddd of year yy. uu is a unique number.
/usr/spool/at/lasttimedone contains hhhh for last hour of activity.
/usr/spool/at/past directory of activities now in progress
/usr/lib/atrun program that executes activities that are due
pwd(1)
SEE ALSO
calendar(1), cron(8)
DIAGNOSTICS
Complains about various syntax errors and times out of range.
BUGS
Due to the granularity of the execution of /usr/lib/atrun, there may be bugs in scheduling things almost exactly 24 hours into the future.
AT(1)