Permissions on a SCO Unix exported file
Mike Schwartz
mschw at athenet.net
Thu Oct 18 07:42:59 PDT 2007
SCO Open Server 5.0.7 and fP 5.0.05
What is the best way to change permissions on an exported
spreadsheet? I am trying to put the output spreadsheet into the
subdirectory of the user who is running the process:
144 ------- - - - - - - - - - - - - - - -
If:
Then: fn="/u/" {@ID {"/HDrun.txt" {"" '"Run line" file name
145 ------- - - - - - - - - - - - - - - -
If: 'Write out a "run line" spreadsheet...
Then: export ascii RHD = (fn) r=\n f=\t
146 ------- - - - - - - - - - - - - - - -
If:
Then: system "chmod a+rw" <fn {""
filePro initially creates a 0 byte file, but then, even with this chmod
system command, I still get this error:
*** A System Error Has Occurred ***
On File: /u/schwm/HDrun.txt
Output Processing
Line Number: 145
export ascii RHD = (fn) r=\n f=\t
^
filePro Error Number: -1
What is the best way to do this? Should I use another system command
to create the output file first, then do a chmod on it? Should I do a
pushenv umask command?
I'm going to have to write several of these exports, so I would like to
do the simplest coding possible.
Thanks!
Mike Schwartz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.celestial.com/pipermail/filepro-list/attachments/20071018/7c4c8fc8/attachment.html
More information about the Filepro-list
mailing list