💻 Software
How to execute shell script via crontab?
Fresh5 days ago
Mar 15, 2026301218 viewsConfidence Score0%
0%
Problem
I have a script that looks like: My crontab notification for 2 PM: However, this doesn't work. What is the problem?
Error Output
notify-send "hi welcome"
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How to execute shell script via crontab?
Low Risk
Your script is missing a #! line at the start, which is the magic interpreted by the kernel to say which command interpreter is to be used for the script. Make it look like this: and make sure the script is executable: Also, since you're asking for …
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix