Hi guys,
I got my whole environment up and running, I can manually create backups with ghettoVCBg2.pl and it works perfectly.
Only thing I want to do now, is make it a cronjob.
I tested the cron feature with adding a simple task in /etc/crontab:
*/1 * * * * root wall test
this works fine, every minute I get the message "test" in my console.
I can also add this to /etc/crontab:
*/1 * * * * root /home/vi-admin/test.sh
I made the file test.sh, this is what's in the file:
wall test
again, I get the message "test" in my console.
Now the problem...
When I edit /etc/crontab with this:
*/1 * * * * root /home/vi-admin/ghettoVCBg2.pl --vmlist nag001 --dryrun 1
nothing executes, I als tried to put the command ./ghettoVCBg2.pl --vmlist nag001 --dryrun 1 in a file called test.sh... after that I edited /etc/crontab with:
*/1 * * * * root /home/vi-admin/test.sh
again, nothing executes.
When I look at "sudo nano /etc/crontab" I see:
crond[12611]: module:pam_lsass (root) CMD (/home/vi-admin/test/sh)
crond[12611]: module:pam_lsass pam_sm_acct_mgmt failed login:rooterror code:2
crond[12611]: module:pam_lsass pam_sm_close_session error error code:2
btw: I also tried to edit /etc/crontab with:
*/1 * * * * vi-admin /home/vi-admin/test.sh
and
*/1 * * * * vi-admin /home/vi-admin/ghettoVCBg2.sh --vmlist nag001 --dryrun 1
I'm out of knowledge here...
Tnx in advance
Jim