1024programmer Java Cronjob cannot run on GoogleComputeEngine

Cronjob cannot run on GoogleComputeEngine

I set up a cron job in a Compute Engine instance in Google Cloud.

Suppose it runs every morning at 7:47 am. But every time I check if the file is executed at 7:48 it doesn’t work.

Enter image description here

The code of helloworld.sh file is here

echo "helloworld" + "$(date)" > helloworld.txt

I have set root as root and root as the cron job. Any ideas?

This article is from the internet and does not represent1024programmerPosition, please indicate the source when reprinting:https://www.1024programmer.com/763147

author: admin

Previous article
Next article

Leave a Reply

Your email address will not be published. Required fields are marked *

Contact Us

Contact us


Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top