Ravi  K M
Ravi K M

Reputation: 87

How to know the last time a script was run?

The command ls -lu script_name.sh only gives last access time of script. Is there any way to determine.

Upvotes: 0

Views: 3051

Answers (1)

Maxim Egorushkin
Maxim Egorushkin

Reputation: 136237

Processes in Linux do not normally leave traces after they terminate, unless they create or modify files, write syslog messages, or audit subsystem is on and it keeps track of exec* calls.

Upvotes: 4

Related Questions