PuffyBlog
[ Network | Unix | Security | Fun ]
  • About
  • Blog
  • Cheatsheet
  • Links
  • Proxy
  • Puffy Spezial
  • Rc3

Crontab

2020-06-20
Blog
Page content
  • Troubleshooting Crontab Problems
    • Dump the Environement
    • Load the Environement
    • Run your script

Troubleshooting Crontab Problems

Dump the Environement

add this line to root’s crontab

* * * * * env > ~/cronenv

Load the Environement

env - `cat /var/log/cronenv` /bin/sh

Run your script

./script_with_env_problems.sh

and check it’s output …

sha256: 5aa695cbd618aad046f6b31e1c05dfc7d41db08fb39cbbbf95b6ac3a468d1f8a

  • Cron
  • Crontab
About Stoege
Nerd and Hacker - mitten im täglichen Wahnsinn - liebt netzwerke, sicherheit, unix und viel mehr :)

Recent Posts

  • RPKI for Home Usage
  • Ruckus, Radius, Dynamic Vlan Assignment
  • Update Checkmk
  • Vuln IOS XE 03.06.04
  • Vuln IOS XE 3.08.06
  • Vuln IOS XE 17.01.01
  • Vuln IOS 15.4(1)SY4
  • Vuln IOS 15.2(1)SY5
  • Vuln NXOS 8.2(4)
  • Vuln IOS XE 03.08.09

Categories

  • Blog
  • Bug
  • cisco
  • Debian
  • Docker
  • Forti
  • FreeBSD
  • hugo
  • IPv6
  • Linux
  • Network
  • OpenBSD
  • Security
  • SSH
  • System
  • Wlan

Tags

Tags 6.6 6.7 6.8 Ansible APU backup BASH BasicAuth BGP Blog bootable borg catalina ccc CEPH Certificate cgi cheatsheet checkmk cisco CLI Client clogin Cluster Console cron Crontab Current Debian dhcpcd DIG Disk DNS doas Dualstack ed25519 forms FreeBSD FreeRadius Frieden FullFeed Fun Ganser gif git gluerecords HAProxy howto html hugo IOT ipsec IPv4 IPv6 jq KeepAlive Keychain Kickstart Kubernetes Librenms Linux Medien migration Minikube Mint Monitoring MTU Multicast NATO Netbox Network Nginx OpenBSD OPNsense ospf osx Password PF php pip pkg Politik Postgres Proxies Proxmox Proxy python Rancid rc3 Recovery Relayd release ReverseTunnel Routing rpki Ruckus scamper Scion Scionlab Scripts Security Serial Smokeping SQL ssh Storage tips'n'tricks tracer Tricks Tunnel Ubuntu Upgrade usb USB Stick Vlan VPN vuln Webserver Whois Wireguard www
© 2021 Daniel Stocker; all rights reserved.. Generated with Hugo and Mainroad theme.