Solved

How to determine if a script ran in linux

Posted on 2014-12-17
9
95 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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

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 article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…

758 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

20 Experts available now in Live!

Get 1:1 Help Now