Solved

How to determine if a script ran in linux

Posted on 2014-12-17
9
97 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
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 

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
 
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

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.

Question has a verified solution.

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

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…
It is becoming increasingly popular to have a front-page slider on a web site. Nearly every TV website,  magazine or online news has one on their site, and even some e-commerce sites have one. Today you can use sliders with Joomla, WordPress or …
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

772 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