Problem running a script in cronjob
Posted: Tue Mar 20, 2018 10:31 pm
IM GOING CRAZY!!!!!!!!!
Hi how its going. If u can help me a little bit i will apreciated.
I am in centos 7 with vestacp.
I am using a script, but only works when i use the command in ssh.
When i put a cronjob it runs the command but nothing happens.
I checked "nano /var/log/cron" and it ran the command
And in "/var/log/v-sync-backups-to-mega.log" nothing happens in this time. (but if i enter the command manually it works perfect)
I try the command in vesta with "/usr/local/vesta/bin/v-sync-backups-to-mega 25 200000"
and in /etc/crontab "20 10 * * * /usr/local/vesta/bin/v-sync-backups-to-mega 25 200000" and "20 10 * * * root /usr/local/vesta/bin/v-sync-backups-to-mega 25 200000" but nothing happens.
Thx !
Hi how its going. If u can help me a little bit i will apreciated.
I am in centos 7 with vestacp.
I am using a script, but only works when i use the command in ssh.
When i put a cronjob it runs the command but nothing happens.
I checked "nano /var/log/cron" and it ran the command
And in "/var/log/v-sync-backups-to-mega.log" nothing happens in this time. (but if i enter the command manually it works perfect)
I try the command in vesta with "/usr/local/vesta/bin/v-sync-backups-to-mega 25 200000"
and in /etc/crontab "20 10 * * * /usr/local/vesta/bin/v-sync-backups-to-mega 25 200000" and "20 10 * * * root /usr/local/vesta/bin/v-sync-backups-to-mega 25 200000" but nothing happens.
Thx !