new cron job is not working
new cron job is not working
Added cron job in admin console cron tab.
*/1 * * * *
and in command text box
sudo /home/test.sh
Note: test.sh chmod is 755
Not working :(
*/1 * * * *
and in command text box
sudo /home/test.sh
Note: test.sh chmod is 755
Not working :(
Re: new cron job is not working
Hi,
from console
Try to run script from console: work or not?
from console
Code: Select all
chmod +x /home/test.sh
-
- Collaborator
- Posts: 783
- Joined: Mon May 11, 2015 8:43 am
- Contact:
- Os: CentOS 6x
- Web: apache + nginx
Re: new cron job is not working
Try: bash /home/test.sh
Re: new cron job is not working
Script runs fine from console. it doesn't run when added to cron job.
Tried : chmod +x /home/test.sh (still not working)
Tried : bash /home/test.sh (still not working(works when i directly run this cmd in console))
is there any service which needs to be restarted?
Tried : chmod +x /home/test.sh (still not working)
Tried : bash /home/test.sh (still not working(works when i directly run this cmd in console))
is there any service which needs to be restarted?
Re: new cron job is not working
initedit wrote:Script runs fine from console. it doesn't run when added to cron job.
Tried : chmod +x /home/test.sh (still not working)
Tried : bash /home/test.sh (still not working(works when i directly run this cmd in console))
is there any service which needs to be restarted?
Try
Code: Select all
sudo bash /home/test.sh
Re: new cron job is not working
joem wrote:initedit wrote:Script runs fine from console. it doesn't run when added to cron job.
Tried : chmod +x /home/test.sh (still not working)
Tried : bash /home/test.sh (still not working(works when i directly run this cmd in console))
is there any service which needs to be restarted?
TryCode: Select all
sudo bash /home/test.sh
Code: Select all
sudo bash /home/test.sh
Re: new cron job is not working
Used crontab -e and added
Working now :)
But does not work from vestacp admin cron job console. :(
Code: Select all
*/1 * * * * /home/test.sh
But does not work from vestacp admin cron job console. :(
Re: new cron job is not working
Login as user admin and check sudo.
It's not rigth behavior.
It's not rigth behavior.
Re: new cron job is not working
sudo is working with admin user.skurudo wrote:Login as user admin and check sudo.
It's not rigth behavior.
other default vesta cron job is running.
Re: new cron job is not working
Don't forget in sh-file:
Code: Select all
#!/bin/bash