Comments (3)
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 [email protected]
on 21 May 2012 at 11:14
from cronnix.
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 [email protected]
on 21 May 2012 at 12:41
from cronnix.
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 [email protected]
on 21 May 2012 at 12:47
from cronnix.
Related Issues (20)
- System crontab drag & drop issue
- Invalid characters cause misleading permission error
- Importing into system crontab overwrites user crontab
- Insufficient privileges to write crontab. HOT 11
- edit system crontab in 10.6 HOT 3
- Schedule task not working HOT 14
- Stopped working HOT 2
- Where are the data files stores HOT 1
- Status Window does not close when output redirected HOT 2
- Cronnix task (opening another app) not executing properly HOT 1
- Editing of the Root-User (maybe any other user) Crontab not possible under Lion HOT 10
- Cronnix incompatible with Mac OS X 10.7 (Lion) HOT 1
- cronnix not running on schedule HOT 4
- selectRow:byExtendingSelection: in class MyTableView is deprecated HOT 2
- Scheduling a mysql backup HOT 3
- default text in command field HOT 2
- How does it work ? HOT 3
- Crashes when you try to open root's cron HOT 1
- Move this project to another hosting platform
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cronnix.