*New 11.4 series Release:
2020-07-03: XigmaNAS 11.4.0.4.7633 - released!

*New 12.1 series Release:
2020-04-17: XigmaNAS 12.1.0.4.7542 - released


We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

Email Report Custom Script

XigmaNAS Scripts and shell tips
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
piwwo
Starter
Starter
Posts: 27
Joined: 21 Mar 2013 15:30
Status: Offline

Email Report Custom Script

#1

Post by piwwo »

Hi

On the settings for the email reporting there is an option for a custom script. How does this script have to look like to have certain custom logs of cronjobs emailed to me?

piwwo
Starter
Starter
Posts: 27
Joined: 21 Mar 2013 15:30
Status: Offline

Re: Email Report Custom Script

#2

Post by piwwo »

nvm I found it out, just a list of bash-commands that give plain-text output does it

Code: Select all

vi customlog.sh

Code: Select all

cat /var/log/mycronjob.log
tail /var/log/mywaytoobigfile.log

Code: Select all

chmod 750 customlog.sh
Then activate custom script and type in the textfield: /root/customlog.sh

Post Reply

Return to “Scripts and shell tips”