-
Notifications
You must be signed in to change notification settings - Fork 0
Writing and Running Scripts
Scott edited this page Feb 24, 2024
·
2 revisions
Why?
I implemented this feature because I find it useful to run cron jobs that need to do things and then alert me if they fail.
Hosts.csv
When adding in a script into the hosts csv file, it needs to be the full path or a relative path so perl scripts/myscript.pl
with scripts being in the easyping folder example: /opt/easyping/scripts/myscript.pl
or perl /path/to/script.pl
such as perl /home/user/scripts/myscript.pl
.
Exit Codes:
The script needs an exit code of 0 to be successful. This follows how Bash works and figured it should stay that way. If it fails to execute correctly have it exit a different number.