Good question. Here are the results.
The permissions for the /Users/xxxxxx/Documents directory is:
drwx------ 7 xxxxxx xxxxxx 238 27 Apr 15:08 Documents
The permission for the /Users/xxxxxx/Library/Scripts directory is:
drwxr-xr-x 3 xxxxxx xxxxxx 102 27 Apr 14:22 Scripts
Does that look write? Or should the Documents directory be the same as the Scripts Directory?
Thanks,
Mark
On Apr 27, 2004, at 3:24 PM, Bruce Van Allen wrote:
On 4/27/04 Mark Wheeler wrote:
Yup. You're right. I missed that one. Here's what I did to simplify the
testing of the script.
copy("/Users/xxxxxx/Documents/db1.txt", "/Users/xxxxxx/Documents/db1.txt.bak") or warn "Can't copy file: $!";
---------------------------------------------
I know the cron is firing off the request, because when first tried it,
I got Permission Denied in my email box. So I changed the permission to
755 and it still doesn't copy the file. And I get nothing in my email
box. I'm a little confused. What am I missing?
Is that "Permission Denied" for execution of your script? Perhaps it's for writing the file. Check the write permissions of the "/Users/xxxxxx/Documents" directory.
1;
- Bruce
__bruce__van_allen__santa_cruz__ca__