Sco Openserver permissions problem

Mike Schwartz mschw at athenet.net
Thu Nov 29 07:29:27 PST 2012


     Using SCO Openserver 5.0.7 and filePro 5.0.13:

 

     I had some test code working properly last night, but this morning I am
getting a Unix permission error whenever I try to print to a file.  

 

     Here is what debug looks like:

 

[ True }
Prc. Name: GLTVHOx

           If:  'Create the print file, change its permissions

114  Then:  DC=">DF; chmod 666 DF"; system noredraw DC

Enter Command > sh: DF: cannot create

chmod: WARNING: cannot access DF: No such file or directory (error 2)

 

[ True ]
Prc. Name: GLTVHOx

           If:  'Send a PCL form to the ImageRight temporary storage
subdirectory

115  Then:  PRINTER FILE DF

Enter Command > sh: DF,: cannot create

 

[ True ]
Prc. Name: GLTVHOx

            If:  'Send a PCL form to the ImageRight subdirectory

118  Then:  FORM "HEADER"

Enter Command > sh: /tmp/GLH1000.PRN: not found

 

     Permissions on the /tmp subdirectory are:

 

drwxrwxrwx  10 sys      sys         2560 Nov 29 09:25 tmp

 

    Here is my code: 

 

Notes:  DC thru DF are dimensioned in HDR(10) (70,*):DA

                 DE evaluates to “GLH1000” going into like 113

 

113  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -

       þ If: 'Create a print file name   

       Then: DF="/tmp/" {DE {".PRN"

114  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -

       þ If: 'Create the print file, change its permissions

       Then: DC=">DF; chmod 666 DF"

115  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -

       þ If: 'Create the print file, change its permissions

       Then: system noredraw DC

116  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -

       þ If: 'Send a PCL form to the ImageRight temporary storage
subdirectory

       Then: PRINTER FILE DF

 

     I’ve written similar code dozens of times before, but this problem has
me baffled.  I must be forgetting something, but I can’t think of what it
might be.

 

Thanks!

 

Mike Schwartz

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.celestial.com/pipermail/filepro-list/attachments/20121129/e2d5ee64/attachment.html 


More information about the Filepro-list mailing list