Skip to main content
Formatting
Source Link
AdminBee
  • 23.6k
  • 25
  • 55
  • 77

I have a .sh.sh script that runs a python script that runs a jarfile. I want to run it from crontabcrontab. I created a log for the crontabcrontab and I get this error: Error: Unable to access jarfile ArhivareProd.jar This

Error: Unable to access jarfile ArhivareProd.jar

This is the line that runs the jar file: os.system("java -jar ArhivareProd.jar &")

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

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

Thanks

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 ?

Thanks

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 ?

Bumped by Community user
Source Link
SECI
  • 1
  • 1
  • 1

Error: unable to access jarfile when running script from crontab linux

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 ?

Thanks