[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
The most robust way to tell if a script is run by a job schedular like c
From: |
Peng Yu |
Subject: |
The most robust way to tell if a script is run by a job schedular like cron |
Date: |
Fri, 25 Feb 2022 03:09:03 -0600 |
I see the following discussion on how to tell a script is run by corn.
https://unix.stackexchange.com/questions/46789/check-if-script-is-started-by-cron-rather-than-invoked-manually
But there are several approaches, not all of them are necessarily reliable.
Could anybody let me know what is the most robust way to tell in a
script whether it is run from a regular command line, or is run by a
job scheduler?
--
Regards,
Peng
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- The most robust way to tell if a script is run by a job schedular like cron,
Peng Yu <=