Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

Cron runs only once instead every minute

The script does run every minute but > truncates the file each time.

If the file does not exist, it shall be created; otherwise, it shall be truncated to be an empty file after being opened.

(source)

Use >> instead to append to the file.

Tags:

Linux

Ubuntu

Cron

Crontab

Related

scp: error: unexpected filename: What are differences between VBoxVGA, VMSVGA and VBoxSVGA in VirtualBox? Trying to watch Netflix on Debian using Firefox Search-and-Replace RegEx Capture Group with a Number How to exit from stuck full screen application on Windows 10? How does bash test 'false'? How to query macOS DNS resolver from Terminal? 20GB of Temporary Files, Only 50MB in Temp Folder JsPrettier Sublime Error 'Couldn't Resolve Parser "babel"' GCP - sudo works in GoogleCloudShell but not when I ssh into vm How can you modify URL predictions on chrome? Stop skype from running at startup and after I closed it

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy