Hello.
I know there's at least 4 other threads related to this here.
Hi,
My shell script not getting called through cron job.
The same works fine when executed manually.
I tried to generate logs to find if the scripts has some errors related to path using following command- trying to execute .sh file every 5 mins:
Code:
*/5 * * * * /home/myfolder/abc.sh /home/myfolder/abc.log 2>&1
But even the logs are not getting generated at the mentioned pat
Hey, i have a script i am trying to run through a cronjob. the problem is, for some reason it cannot be done through cron even though the script runs fine when manually run.
Code:
/home/axe/hma/hma-start && sleep 20 && su axe /bin/jail &
exit 0;
hma-start and jail are both shell scripts.
Dear all,
i am executing the script.
with help of cron job but it is not executing in cron job.
i check owner and chmod and create the file and execute manually it is working fine but in cron job i set below
Crontab -e
8 14 * * * /home/tplinux/webapp/tpadminhost/collect_ejxml/ejrename.sh
wq!
HI I am new to unix .
I wanted to create a cron job that runs a script every 10 min .So when I enter
Code:
vi /etc/crontab
I get the following output
Code:
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root
I'm curious if anyone has ideas what may be causing this. I have a PGP script that for whatever reason if I let linux's cron run it automatically, it sends out the final email with attachment with a blank file. If I come in and run in manually everything works fine and the file is populated in the file.
Hi....
I am not understanding something....I run this cronjob
Code:
0 17 * * * /home/tim/bin/sunsetscript.sh
....This runs a bash script with this code
Code:
#!/bin/bash
/usr/local/bin/ffmpeg -r 25 -f video4linux2 -s 640x480 -i /dev/video2 -qscale 3 /home/tim/bin/sunset_cron.mpeg
....This code grabs and records a video feed from my sunset cam at /dev/video/2,,and writes it to my hard
Solaris 2.5.1
I have written a shell script that creates a tar file and then ftp's the file to an other box. The shell script perfectly executes when run manually through terminal. But when i schedule it through cron, its not executing and showing exit code RC =1 in cron log.
I have added the 2 lines cd / and . .
I have a simple shell script that runs fine when opened in terminal, but will not run at all as a cron job!
The script is as follows:
#!/bin/sh
/usr/bin/sshfs example.com: /mnt
/usr/bin/rsync -az -v --progress -h --delete /mnt/html/ /home/user/html/
/bin/fusermount -u /mnt
Any reasons why this shouldn't work?
I'm new to Ubuntu and Cron so it might be something simple.
Thanks!
(I added the job