debian:cron

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
debian:cron [2020/04/15 10:51] erreur32debian:cron [2022/11/08 16:43] (Version actuelle) – modification externe 127.0.0.1
Ligne 1: Ligne 1:
-====== Check ALL cron on Debian ====== +====== SCRIPT: list  ALL cron on Debian ======
- +
    
 +====== all_ban.sh ======
 +
 +
   #!/bin/bash   #!/bin/bash
   # System-wide crontab file and cron job directory. Change these for your system.   # System-wide crontab file and cron job directory. Change these for your system.
Ligne 25: Ligne 27:
     while read line ; do     while read line ; do
         match=$(echo "${line}" | egrep -o 'run-parts (-{1,2}\S+ )*\S+')         match=$(echo "${line}" | egrep -o 'run-parts (-{1,2}\S+ )*\S+')
- 
         if [[ -z "${match}" ]] ; then         if [[ -z "${match}" ]] ; then
             echo "${line}"             echo "${line}"
Ligne 31: Ligne 32:
             cron_fields=$(echo "${line}" | cut -f1-6 -d' ')             cron_fields=$(echo "${line}" | cut -f1-6 -d' ')
             cron_job_dir=$(echo  "${match}" | awk '{print $NF}')             cron_job_dir=$(echo  "${match}" | awk '{print $NF}')
- 
             if [[ -d "${cron_job_dir}" ]] ; then             if [[ -d "${cron_job_dir}" ]] ; then
                 for cron_job_file in "${cron_job_dir}"/* ; do  # */ <not a comment>                 for cron_job_file in "${cron_job_dir}"/* ; do  # */ <not a comment>
Ligne 64: Ligne 64:
  
    
 +{{tag>tips cron script}}
  • debian/cron.1586940710.txt
  • Dernière modification : 2020/04/15 10:51
  • de erreur32