Crontab timed run jar not executed

Source: Internet
Author: User
Crontab regularly runs jar without executing-Linux general technology-Linux technology and application information. The following is a detailed description. I wrote a test. jar application and used java-jar test. jar in the command line to run normally. However, I used a shell script to run it regularly through crond without executing test. jar.
The script is written as follows:
#! /Bin/bash
Cd/usr/local
./Etc/profile
Java-jar test. jar

Crontab is defined as follows:
0 11 ***/usr/local/test. sh

Both test. jar and test. sh grant the 777 permission.
But by, no execution or error is reported.
Urgent! Hope you can give me some advice! Online, etc!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.