Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 105
  • Last Modified:

How to determine if a script ran in linux

General question on how to determine if a script ran in on a linux server.

The script is not running on a schedule.  It is called from another application.  How can I tell if it ran on the linux server.
0
bje
Asked:
bje
  • 5
  • 4
3 Solutions
 
ozoCommented:
Does the script do anything?  If so, that activity may leave a trace.
Does the application that called it record anything when it is called?
You can look at the last access time of the script, but it can be accessed without being called or running.
0
 
bjeAuthor Commented:
Yes the script does some checks.   However,  I can see in my application log that it should have called the script and I do not have an entry in the script log.

how do i see the last access time of the script.
0
 
ozoCommented:
ls -lu path/to/script
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
bjeAuthor Commented:
Thanks.

Is there a limit to the number of times a shell script can be called or running at one time?
0
 
ozoCommented:
ulimit -u
0
 
bjeAuthor Commented:
Thanks for the answer.

One more question,  If a | is passed as one of the values to a script.  Does the script run or does it not run?

XXXX|CCCCCC  

Thanks
0
 
bjeAuthor Commented:
I am trying to mark the two open questions complete, however it is not saving this information.  how to I close these tickets.  I have marked the solution accepted and award points and clicked on submit.

Thanks
0
 
ozoCommented:
Normally one would have to quote a | character in order to pass it as an argument to a script, otherwise it is interpreted by the shell as sending the output of the XXXX command into the input of the CCCCCC  command.

Depending on what resources the processes consume, and what resources are available, there may be other limiting factors besides ulimit -u
0
 
bjeAuthor Commented:
Thanks
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now