Quantcast
Channel: Write $(date) Into File Using Cron and Bash Shell Script - Ask Ubuntu
Browsing latest articles
Browse All 3 View Live

Answer by steeldriver for Write $(date) Into File Using Cron and Bash Shell...

PATH should be a list of directories to search for commands, rather than the name of a particular command, so PATH=/bin/bash: is incorrect, as you can verify by running the following in an interactive...

View Article



Answer by WinEunuuchs2Unix for Write $(date) Into File Using Cron and Bash...

cron can be rather $PATH oblivious at times. Many people simply prefix commands with the command's path. For the date command, locate it's path with and one of these three commands: $ which date...

View Article

Write $(date) Into File Using Cron and Bash Shell Script

Ubuntu 18.04 running as guest on MacOS 10.14.3. Hypervisor: VMWare Fusion 10 Objective: Every minute, append the date/time into a file Status: Script runs every minute, inserting a blank new line into...

View Article
Browsing latest articles
Browse All 3 View Live




Latest Images