Post #1427888
2026-03-23 14:18 UTC
But when I have it run files=($dirname/*) (with "shopt -s nullglob" set, although I know the directory in question is populated)... it hangs. Nothing more goes into the log, and the script doesn't terminate. I have to Ctrl-C it.
Unless I run it manually! Then it works fine! So it's not a permissions issue, or a syntax issue! (Also, when it creates that zero-byte file, it shows up with my user and group ownership. So it's doubly not a permissions issue.) 3/4
Replies (1)
-
@kagan@wandering.shop 2026-03-23 14:18
Just in case, there are no spaces or weird characters anywhere in the directory path or any of the filenames. The weirdest anything gets is a dash/hyphen. Full pathnames are are along the lines of /home/kagan/Pictures/foo-1234.jpg and suchlike, plus one file that has underscores. And again, it works fine when I run it from the command line, so I don't understand why it fails from the menu or crontab. I've tried everything I can think of. Has anyone got any ideas? Thank you. Boosts welcome. 4/4