Solved

How to determine if a script ran in linux

Posted on 2014-12-17
9
101 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

 

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

Is Your DevOps Pipeline Leaking?

Is your CI/CD pipeline a hodge-podge of randomly connected tools? You’ve likely got a tool to fix one problem & then a different tool to fix another, resulting in a cluster of tools with overlapping functionality. Learn how to optimize your pipeline with Gartner's recommendations

Question has a verified solution.

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

Recently I have been answering a lot of questions like this in IT forums that I frequent. The question posed is usually something along the lines of "We have software X installed and need to uninstall it for reason Y" or some other variant of the sa…
In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

751 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