Open GoogleCodeExporter opened 8 years ago
Tony,
judging by the output, your java command is incorrect (it's printing the
usage). My guess is that either you've got a line break in there somewhere or
maybe quotes which are swallowed. What does your command look like?
You get the best results with cron if you stick the command in a script, make
sure it runs even with PATH unset and schedule that script to run from cron.
Hope that helps!
Sven
Original comment by sven.a.s...@gmail.com
on 21 May 2012 at 11:14
Thanks, would I simply copy/paste my command into a text doc and name it
script.sh ? and have cron run that or is there something else that needs to be
done?
Original comment by Tony.Bar...@gmail.com
on 21 May 2012 at 12:41
Tony, you copy your command in a script and make it executable (chmod +x
script.sh). Make sure that all commands are executed with their full path. This
is critical, because the daemon running this script will have a different
environment than your user account and therefore may not be able to find the
commands in your script. For example, you'd write /usr/bin/java instead of just
java. Similarly for any other commands or paths. Always use full paths, that
saves you lots of headaches with cron ;)
Original comment by sven.a.s...@gmail.com
on 21 May 2012 at 12:47
Original issue reported on code.google.com by
Tony.Bar...@gmail.com
on 18 May 2012 at 7:59