Steps For Job Details Script
Steps For Job Details Script
#!/bin/bash
# Email details
recipient_email="[email protected]"
sender_email="[email protected]"
email_subject="Log File CSV Report"
email_body="Attached is the CSV report generated from the log
file."
8. Check the file by running below command to confirm that the file is present or not
Ls –lrt
9. Now to make script.sh executable we will set permissions by running below command:
Chmod +x script.sh
10. Set the script in cron in each server by running below command:
Crontab –e and then enter i to get into insert mode, then copy and paste following lines: