Sign inSign up free

1413. Combined: The Cron Job That Works When I Run It

hard 40 XP ~12 minHands-on lab Pro

maya has a nightly export in their crontab (sudo crontab -l -u maya). The script lives in /home/maya/bin, and they say it works when they run it. Yet /home/maya/exports stays empty: the job has never worked from cron. Cron runs the line with a minimal environment: PATH=/usr/bin:/bin, /bin/sh, and the user's home as the working directory.

This is a Pro problem

Pro unlocks every lab and quiz, all roadmaps and a full daily plan.

Unlock with Pro

Part of Linux Incidents, Two Faults at a Time. Next step: Combined: The Backup Script That Always Says It Worked

Teaching or writing about this? Embed this lab on your page

TerminalNot started

Pro lab

Upgrade to open a machine for this problem.

See Pro