blog-stoege-net
'Life would be much easier if I had the source code.'
  • About
  • Blog
  • C
  • Cheatsheet
  • Golang
  • Links
  • Mirror
  • Oneliners
  • Projects
  • Puffy Spezial
  • PuffyPages
  • Python

Crontab

2020-06-20 (Last Modified: 2022-06-03)
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: de1667fb4003135420244f48280d72e03d7559b675ab6b4a9c020b0725866525

  • Cron
  • Crontab
About Stoege
Nerd and Hacker - in the middle of daily madness, loves networks, security, opensource, unix, coding, …

Recent Posts

  • Bash - Snippets
  • SSH Key Generator
  • Vault on OpenBSD
  • Python - Little Wordcloud
  • Yubikey - on OpenBSD

Tags

Tags (3) 2FA (1) 6.6 (1) 6.7 (2) 6.8 (2) 6.9 (2) 7.0 (2) 7.1 (2) 7.2 (2) Aliases (1) Alpine (5) Ansible (1) API (1) APU (3) Area41 (1) Asymmetric (1) backup (1) bash (2) BasicAuth (2) Beginner (1) BGP (6) BHyve (1) Blog (4) bootable (1) Bootstrap (3) borg (2) Branches (1) C (1) CAS (1) catalina (1) ccc (1) CEPH (1) Certificate (3) cgi (2) checkmk (3) Cisco (10) Cleanup (1) cli (3) Client (3) clogin (1) Cloud (4) Cluster (2) Code (4) Coding (1) Console (2) Container (2) Converter (1) cron (2) Crontab (1) CrossCompile (1) CTF (1) Current (1) DB (2) Debian (11) dhcpcd (1) DIG (1) Digitalocean (1) Disk (2) Diskspace (1) Django (1) dns (7) DNSSEC (1) doas (1) docker (17) Dualstack (2) ed25519 (1) Encryption (1) FastAPI (1) Feature (1) Flask (1) fluentd (1) forms (2) Forti (1) FreeBSD (6) FreeRadius (1) Frieden (2) FullFeed (1) Fun (5) Ganser (2) gif (1) git (9) git tags (1) Gitlab (1) gitolite (1) gluerecords (1) GO (2) golang (1) Google (1) GoPass (1) GPG (1) HAProxy (1) Headscale (1) HoneyPot (1) Hosting (2) howto (4) HTML (3) httpd (1) hugo (7) icmpv6 (1) IOT (1) ipsec (3) IPv4 (7) IPv6 (10) isso (1) jq (3) JSON (2) JWT (1) K3s (1) K8s (2) KeepAlive (1) Kernel (1) Keychain (2) Kickstart (1) Kubernetes (3) Kuma (1) Languages (1) Librenms (1) Links (1) Linux (12) Logging (1) Logs (1) MAC (1) macOS (2) Medien (3) MFA (1) Middleware (1) migration (1) Minikube (1) Mint (1) MongoDB (1) Monitoring (3) MTU (1) Multicast (1) NATO (1) Nerdstuff (1) Netbox (1) Netplan (1) Network (7) Nextcloud (1) Nginx (11) NoSQL (1) nsd (1) oneliner (1) opebsd (1) OpenBGP (1) OpenBSD (65) OpenSource (1) OpenVM Tools (1) OPNsense (1) ospf (1) OST (1) osx (4) OTP (2) OWASP (2) OWASP Juice Shop (1) Packages (1) Palo (1) pandas (1) Partition (2) Password (2) PHP (8) pip (2) pip3 (1) pkg (1) Poetry (2) Politik (1) Postgres (1) PowerDNS (1) Program (1) Projects (1) Proxies (1) Proxmox (1) Proxy (2) Prozessor (1) Python (13) Rails (1) Rancid (1) Ratelimit (1) rc3 (1) Recovery (1) Redirect (1) Redis (1) Regex (1) Relayd (2) release (7) restapi (1) Reverse Proxy (1) ReverseShell (1) ReverseTunnel (1) ROMMON (1) Router (1) Routing (1) rpki (1) Ruby (1) Ruckus (1) scamper (1) Scion (1) Scionlab (1) SCP (1) Script (1) Scripts (5) Secrets (2) Security (19) Serial (2) shell (3) Smokeping (4) sniffer (1) snippets (1) Software (1) Sources (1) SQL (2) SSH (14) Storage (3) Symmetric (1) System (9) tags (1) Tailscale (1) terraform (1) tips'n'tricks (4) TLS (1) Tools (1) tracer (1) traefik (9) Tricks (1) tshark (1) Tunnel (3) Ubuntu (2) unbound (2) Upgrade (4) UPS (1) usb (1) USB Stick (1) Vault (2) VIM (1) Vlan (1) VPN (1) VSCode (1) vuln (9) Web (2) Webserver (1) Whois (1) Wireguard (6) wireshark (1) Word Cloud (1) WordCloud (1) www (2) Yubikey (1)
© 2023 Daniel Stocker; all rights reserved.. Generated with Hugo and Mainroad theme.