Cron vs Anacron - Different Ways of Scheduling Jobs on Linux
Learn the differences between cron and anacron jobs, how each one works, the syntax used to set scheduled jobs and real world examples.
How to List Various CRON Jobs in Linux
Cron jobs can be stored in many different locations on your system. Learn how to identify these locations and where to look for various cron jobs.
Stop Cron Daemon from Sending Email for Each Job
When the Linux crond runs a scheduled job, it typically sends an email to root when the job is complete. It uses the MAILTO variable that is set in /etc/crontab to determine who receives this mail. By default this is set to "root", so the...
How to Run a Cron Job Every 30 Seconds
Q: I have a simple one line script that uploads a photo taken by my webcam to a remote server (/sbin/runuser -l myuser -c ‘scp /var/ftp/pub/snap/20131209-232415.jpg [email protected]:www/cam/home.jpg). How can I run this as a cron job every 30 seconds? A: This can be done, but...
List All CRON Jobs Set for All Users
Learn how to use a for loop to list cronjobs for all users on a Linux system.
Install, Configure, and Scan for Viruses on Linux with ClamAV
Learn how to install, configure, and scan for viruses on Linux using ClamAV. We will show you both command line and GUI examples.
Run a Command and Send the Output to an Email on Linux
Learn how to run a command and email the output from the Linux command line. Send the output of a script to an email address.
Create iptables Rules Based on Hostname Using an IPSet
Learn how to use IP Sets and a simple Bash script to update your iptables rules based on a clients hostname or domain name instead of IP address.
NMap - A Basic Security Audit of Exposed Ports and Services
Learn how to use NMap to do basic scans for open ports. Use additional NMap vulnerability scanning scripts for important security audits.
Using systemd Path Units to Monitor Files and Directories
Use systemd path units to monitor files and directories and set service units to execute custom scripts when changes are observed.