File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Linux / UNIX and the fly likes cronss job Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "cronss job" Watch "cronss job" New topic

cronss job

charmy jain

Joined: Dec 17, 2005
Posts: 19
how i set ejb client which is simple java class is call a ejb method from
jboss server into cronstab script shall ?

Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923

Can you show what you like to do without crontab from the shell?

I don't have JBoss, but calling a script from shell or from crontab is pretty similar, but:

- most environment variables don't exist in the crontab; even $PATH is usually unknown, so you have to use full pathnames or set the PATH inside the crontab.

A second popular pitfall with cron: The crontab needs a newline at the end of the file.
[ May 15, 2006: Message edited by: Stefan Wagner ]
I agree. Here's the link:
subject: cronss job
It's not a secret anymore!