From supersasho, 7 Months ago, written in Bash.
  1. #!/bin/bash
  2.  
  3.  
  4. linux_list_dir=$HOME/servers/
  5. linux_list=co_others
  6.  
  7. for server in $( < $linux_list_dir$linux_list )
  8.  
  9. do ssh -q -o StrictHostKeyChecking=no -o BatchMode=yes -o ConnectTimeout=10 $server '
  10. if [ ! -d "/var/spool/cron/tabs" ]
  11. then
  12.        echo -e $(hostname)" "$(sudo ls -1 /var/spool/cron/ | sed 's/root//' )
  13. else
  14.        echo -e $(hostname)" "$(sudo ls -1 /var/spool/cron/tabs/ | sed 's/root//' )
  15. fi ' | tee -a $HOME/crontabs/$linux_list.cron.list
  16.  
  17.  
  18. done

Replies to cron on suse and rhel rss

Title Name Language When
Re: cron on suse and rhel supersasho bash 7 Months ago.
captcha