Is there a possibility so see from some unix log file what process have invoked a bash/ksh shell script or is this shell script invoked manually from command line? So is there some log file which stores this kind of history automatically?

  • Is the process still running? You could check its parent PID – Michael Mrozek Aug 19 '13 at 18:26
  • No, process is not running. – jrara Aug 19 '13 at 18:36
  • You may want ask the users that were logged in at the time (see the output of last) or check their shell history files. – Stéphane Chazelas Aug 19 '13 at 20:29
  • I don't know about AIX specifically, but this would be far more detailed logging than is typical. If you could modify the script, it would be easy. – Gilles Aug 19 '13 at 23:42

Unless you have audit logging enabled there isn't typically any way to see a log of what scripts were executed postmortem.

If it was a script that was executed from a a scheduler such as cron and/or at then these will show up in various log files under /var/log, in different log files depending on which Linux distro you're using.


  • Linux's audit facilities won't help under aix. – Gilles Aug 19 '13 at 23:41
  • The details about "audit logging" are invalid since, as @Gilles pointed out, the question is about aix not linux – Max Vernon Nov 30 '17 at 18:35
  • 1
    @MaxVernon - correct, I'll delete this. – slm Nov 30 '17 at 18:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.