rm failing inside cron script
Fresh3 days ago
Mar 15, 20268983 viewsConfidence Score0%
0%
Problem
I have a cron job calling a bash script which runs fine, except for one line inside it that is suppose to remove all fines in a directory. The result of this line is always 'no such file or directory' even though I have verified (many times) that there are files in that directory. The line in quest…
Error Output
rm /dir1/dir2/dir3/*
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: rm failing inside cron script
Low Risk
Turned out to be my bad after all. What I actually had in the script was: I didn't realise that the quotes would be blocking the wildcard expansion so I never included them in the question. Removing the quotes fixed the problem, as I'm sure would ha…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix