0

I have a .sh script that runs a python script that runs a jarfile. I want to run it from crontab. I created a log for the crontab and I get this error:

Error: Unable to access jarfile ArhivareProd.jar

This is the line that runs the jar file:

os.system("java -jar ArhivareProd.jar &")

What can I do to run it from crontab without error ?

1
  • Have you tried java -jar /absolute/path/to/archive.jar ? Commented Sep 30, 2019 at 12:50

1 Answer 1

-1

Check the permission for the jar file It needs read and executable permission to the crontab user

Sometimes permission not needed when running manually, but needed for Cron.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.