Git Product home page Git Product logo

Comments (3)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 18, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 18, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 18, 2024
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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.