Hi,
I am completely new to shell scripting. I have to bring down some my linux servers every Friday night and bring them up Monday. I would like to automate this process, at least the first part. i.e. I would like to write a crontab that reads the DNS resolable hostnames from a file and shuts them down at 7pm on every Friday. For any reason if the script couldn't do so( example: couldn't ping), it should be logged into some error log. Can you please help me?
I am completely new to shell scripting. I have to bring down some my linux servers every Friday night and bring them up Monday. I would like to automate this process, at least the first part. i.e. I would like to write a crontab that reads the DNS resolable hostnames from a file and shuts them down at 7pm on every Friday. For any reason if the script couldn't do so( example: couldn't ping), it should be logged into some error log. Can you please help me?