Significance of question mark in Java cron

According to the Quartz CronTrigger tutorial (Quartz is used by www.cronmaker.com, referenced above), the ? wildcard is only used in the day of month and day of week fields: ? (“no specific value”) – useful when you need to specify something in one of the two fields in which the character is allowed, but not … Read more

Specifying “all odd values” in crontab?

Depending on your version of cron, you should be able to do (for hours, say): 1-23/2 Going by the EXTENSIONS section in the crontab(5) manpage: Ranges can include “steps”, so “1-9/2” is the same as “1,3,5,7,9”. For a more portable solution, I suspect you just have to use the simple list: 1,3,5,7,9,11,13,15,17,19,21,23 But it might … Read more

gpg encrypt file without keyboard interaction [closed]

As David intimated, the problem here is that gpg doesn’t trust the public key you’re using to encrypt. You could sign the key as he explained. An alternative–especially if the key might be changing occasionally–would be to tack on –trust-model always to your gpg command. Here’s the relevant bit from the man page: –trust-model pgp|classic|direct|always|auto … Read more

mysqldump & gzip commands to properly create a compressed file of a MySQL database using crontab

First the mysqldump command is executed and the output generated is redirected using the pipe. The pipe is sending the standard output into the gzip command as standard input. Following the filename.gz, is the output redirection operator (>) which is going to continue redirecting the data until the last filename, which is where the data … Read more

How do you run a crontab in Cygwin on Windows?

You need to also install cygrunsrv so you can set cron up as a windows service, then run cron-config. If you want the cron jobs to send email of any output you’ll also need to install either exim or ssmtp (before running cron-config.) See /usr/share/doc/Cygwin/cron-*.README for more details. Regarding programs without a .exe extension, they … Read more

tech