Originally Posted by jaipsharma
I need a shell script using expect to login to couple of remote servers and read "crontab -l -u <username>" & "cat /etc/rc.local" & "df -h" and able to create output into a file saved locally with hostname.crontab & hostname.rc.local & disk.status. I can supply a file as list of hostname or IP address. it should also create a summary at the end with the status if any server unable to login with error.
Help with WHAT?? You haven't posted a problem/question...you've only told us that you want a shell script to do something. If that's the case, then YOU need to write one. We will be glad to HELP you if you have a specific problem...so post your code, sample input/output files, and what happens when you run it/where you're stuck, and we'll assist. But we are NOT going to write your scripts for you.
Otherwise, you can easily find THOUSANDS of bash scripting tutorials on Google...there's even one in my post signature. Read/follow them.