Solved

How to determine if a script ran in linux

Posted on 2014-12-17
9
96 Views
Last Modified: 2015-01-02
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
Comment
Question by:bje
  • 5
  • 4
9 Comments
 
LVL 84

Expert Comment

by:ozo
ID: 40505820
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
 

Author Comment

by:bje
ID: 40505823
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
 
LVL 84

Assisted Solution

by:ozo
ozo earned 500 total points
ID: 40505825
ls -lu path/to/script
0
 

Author Comment

by:bje
ID: 40505867
Thanks.

Is there a limit to the number of times a shell script can be called or running at one time?
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
LVL 84

Assisted Solution

by:ozo
ozo earned 500 total points
ID: 40505882
ulimit -u
0
 

Author Comment

by:bje
ID: 40509761
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
 

Author Comment

by:bje
ID: 40524182
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
 
LVL 84

Accepted Solution

by:
ozo earned 500 total points
ID: 40524309
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
 

Author Closing Comment

by:bje
ID: 40527826
Thanks
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this tutorial I will focus on how to use WhizBase as a tool for sending ICQ messages to ICQ. Here I will use a new technology in WhizBase, published in WhizBase 5.1 version. In this tutorial I will use 3 files, pager.wbsp for the processing, e…
This tutorial will discuss fancy secure registration forms, with AJAX technology support. In this article I assume you already know HTML and some JS. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you mig…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now