Quelle est la date de la dernière exécution d'un script ?
Bonjour,
La question du titre, a-t-elle une réponse ?
J'ai essayé d'obtenir une réponse avec la commande ls avec ce ...
Code:
~/projets/github_BEBSHELL$ ls --time=use --sort=time -l ./*/p*.sh
J'obtiens :
Citation:
-rwxr--r-- 1 simone simone 14851 janv. 28 12:31 ./BEB_SHELL_TC_PEA/p00.sh
-rwxrw-r-- 1 simone simone 3217 janv. 28 12:31 ./BEB_SHELL_TC_PEA/ps0allplus.sh
-rwxrw-r-- 1 simone simone 6265 janv. 28 12:31 ./BEB_SHELL_TC_PEA/ps0all.sh
-rwxr--r-- 1 simone simone 3228 janv. 28 12:06 ./BEB_SHELL_XX_NEW/ps0new.sh
-rwxrw-r-- 1 simone simone 5960 janv. 28 12:06 ./BEB_SHELL_XX_NEW/p8a.sh
-rwxr--r-- 1 simone simone 2004 janv. 28 12:06 ./BEB_SHELL_XX_NEW/p2.sh
-rwxr--r-- 1 simone simone 8511 janv. 28 12:06 ./BEB_SHELL_XX_NEW/p3.sh
-rwxr--r-- 1 simone simone 5273 janv. 28 12:06 ./BEB_SHELL_XX_NEW/p4.sh
-rwxr--r-- 1 simone simone 4237 janv. 28 12:06 ./BEB_SHELL_XX_NEW/p6.sh
-rwxr--r-- 1 simone simone 4657 janv. 28 12:06 ./BEB_SHELL_XX_NEW/p7.sh
. . .
J'obtiens une liste ordonnée de scripts, du plus récent au plus vieux, apparemment par date d'accès, mais pas par date d'exécution comme j'aurais voulu.
Y a-t-il une solution?