Below I have attached/included what I get when I type "crontab -l
" I have run through the extremely old VI-Editor commands, and edited this with crontab -e
.
I have used THIS QUESTION'S ANSWERS - but this has not solved the problem completely. I am not new to programming, but I don't know what is expected by "Stack Overflow" experienced people. Please click the link above to see what was suggested. I have followed the directions, but this hasn't got my CRON job to run... I have asked two other questions (attempting to use Java Servlets) about getting this line of Java Code to be called once a day. I need a single line of Java Code to run each day at 11:15 AM, and it will take about an hour to complete. It will not make any calls to Google Cloud Services other than to GSUTIL to do some copying of files to storage buckets.
If anybody knows about CRON jobs on GCS, which I did 20 years ago - please read the output I've attached, and explain how I could get these two scripts to execute:
# This runs an hour of Chinese & Spanish Translation jobs
java -cp /home/rtorello75/etc/Torello.jar Torello.GCS.Main.DispatchCRON
# This is just my "feeble minded attempt" to make this work.
# It produces a "TEST.txt" file with a timestamp in my ~/home directory
java -cp /home/rtorello75/etc/Torello.jar Torello.GCS.CRON.Test
The first is mine primary code module, the 2nd "Torello.GCS.CRON.Test" just dumps a test-string to a test file @ (obviously) 5:12 PM, which it is right now. That didn't actually happen...
Any help? I'm trying to get a CRON job to run/execute.
rtorello75@dispatch-cron:~$ crontab -l
# Edit this file to introduce tasks to be run by cron.
#
# Each task to run has to be defined through a single line
# indicating with different fields when the task will be run
# and what command to run for the task
#
# To define the time you can provide concrete values for
# minute (m), hour (h), day of month (dom), month (mon),
# and day of week (dow) or use '*' in these fields (for 'any').#
# Notice that tasks will be started based on the cron's system
# daemon's notion of time and timezones.
#
# Output of the crontab jobs (including errors) is sent through
# email to the user the crontab file belongs to (unless redirected).
#
# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
#
# For more information see the manual pages of crontab(5) and cron(8)
#
15 11 * * * java -cp /home/rtorello75/etc/Torello.jar Torello.GCS.Main.DispatchCRON
12 17 * * * java -cp /home/rtorello75/etc/Torello.jar Torello.GCS.CRON.Test
# m h dom mon dow command