Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update addVsanCrontab.sh #128

Merged
merged 1 commit into from
May 23, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update addVsanCrontab.sh
This cronjob will cause a lot of email spam, adding ">/dev/null 2>&1" to it in order to keep spam to minimum
  • Loading branch information
acederlund authored Sep 14, 2017
commit 0ec2e409006c1d5c98796195247a57ba2cbbf3e2
2 changes: 1 addition & 1 deletion var/www/scripts/addVsanCrontab.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
sessionFile="/tmp/vpx_$(sed s/\\./_/g <<<$1).dat"
crontabFile="/etc/cron.d/vsan_$(sed s/\\./_/g <<<$1)"
echo "* * * * * root /usr/bin/perl /root/VsanPullStatistics.pl --credstore /var/www/.vmware/credstore/vicredentials.xml --server $1 --sessionfile $sessionFile" >> $crontabFile
echo "* * * * * root /usr/bin/perl /root/VsanPullStatistics.pl --credstore /var/www/.vmware/credstore/vicredentials.xml --server $1 --sessionfile $sessionFile >/dev/null 2>&1" >> $crontabFile
service cron reload