Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi wise monks,

I have a lists of hosts. I need to log into each one, and while there, switch to root access before running crontab -l.

Any script suggestions. I was thinking about just having the hosts in an array, and iterating through each one, running the various commands.

The implementation however escapes me. Any tips appreciated.

  • Comment on getting lists of crontabs for multiple hosts.

Replies are listed 'Best First'.
Re: getting lists of crontabs for multiple hosts.
by AndyZaft (Hermit) on Jun 16, 2010 at 19:12 UTC