i am trying to write a script to log on to every server and cat the contents of a file.. and then print that to a log file on my starting point server.
is there anyway i can send the results of "cat /etc/sudoers" to a variable? so i can open a logfile.. and just say print $log or something of that sort?
is there anyway i can send the results of "cat /etc/sudoers" to a variable? so i can open a logfile.. and just say print $log or something of that sort?