in reply to Script works different when it runs as cron
However, when the very same script is run from cron, the above code very often will not run, because cron doesn't have a default directory set. You can make it run with aopen F, "file.txt";
...which should work just fine. (This behavior is the same for "unlink" as well as "open.") In general you should always specify absolute pathnames for any script designed to run from cron.open F, "/some/directory/file.txt";
Gary Blackburn
Trained Killer
|
|---|