Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script last executed

Status
Not open for further replies.

craig322

MIS
Apr 19, 2001
108
US
Is there a command that I can run which will show me the last time a script was executed?

I know I can run different flavors of ls to see certain times, but I didn't see anything that told me when the script was executed.

I thought that I had found something at one time that gave me this ability (I am running HP-UX if it makes a difference).

TIA
 
I don't know of anything, but I'm no HP expert - have you tried posting in the HP-UX forum - Forum51
 
You can build a log into your script, i.e.
#myscript
.
.
.
echo "myscript run on "`date` >> scriptlog
.
.
end of script
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top