<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>     Using SCO Openserver 5.0.7 and filePro 5.0.13:<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>     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.  <o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>     Here is what debug looks like:<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>[ True }                                                                                                                     Prc. Name: GLTVHOx<o:p></o:p></p><p class=MsoNormal>           If:  'Create the print file, change its permissions<o:p></o:p></p><p class=MsoNormal> 114  Then:  DC=&quot;&gt;DF; chmod 666 DF&quot;; system noredraw DC<o:p></o:p></p><p class=MsoNormal>Enter Command &gt; sh: DF: cannot create<o:p></o:p></p><p class=MsoNormal>chmod: WARNING: cannot access DF: No such file or directory (error 2)<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>[ True ]                                                                                                                     Prc. Name: GLTVHOx<o:p></o:p></p><p class=MsoNormal>           If:  'Send a PCL form to the ImageRight temporary storage subdirectory<o:p></o:p></p><p class=MsoNormal> 115  Then:  PRINTER FILE DF<o:p></o:p></p><p class=MsoNormal>Enter Command &gt; sh: DF,: cannot create<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>[ True ]                                                                                                                     Prc. Name: GLTVHOx<o:p></o:p></p><p class=MsoNormal>            If:  'Send a PCL form to the ImageRight subdirectory<o:p></o:p></p><p class=MsoNormal> 118  Then:  FORM &quot;HEADER&quot;<o:p></o:p></p><p class=MsoNormal>Enter Command &gt; sh: /tmp/GLH1000.PRN: not found<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>     Permissions on the /tmp subdirectory are:<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>drwxrwxrwx  10 sys      sys         2560 Nov 29 09:25 tmp<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>    Here is my code: <o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal> Notes:  DC thru DF are dimensioned in HDR(10) (70,*):DA<o:p></o:p></p><p class=MsoNormal>                 DE evaluates to &#8220;GLH1000&#8221; going into like 113<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>113  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -<o:p></o:p></p><p class=MsoNormal>       þ If: 'Create a print file name   <o:p></o:p></p><p class=MsoNormal>       Then: DF=&quot;/tmp/&quot; {DE {&quot;.PRN&quot;<o:p></o:p></p><p class=MsoNormal>114  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -<o:p></o:p></p><p class=MsoNormal>       þ If: 'Create the print file, change its permissions<o:p></o:p></p><p class=MsoNormal>       Then: DC=&quot;&gt;DF; chmod 666 DF&quot;<o:p></o:p></p><p class=MsoNormal>115  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -<o:p></o:p></p><p class=MsoNormal>       þ If: 'Create the print file, change its permissions<o:p></o:p></p><p class=MsoNormal>       Then: system noredraw DC<o:p></o:p></p><p class=MsoNormal>116  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -<o:p></o:p></p><p class=MsoNormal>       þ If: 'Send a PCL form to the ImageRight temporary storage subdirectory<o:p></o:p></p><p class=MsoNormal>       Then: PRINTER FILE DF<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>     I&#8217;ve written similar code dozens of times before, but this problem has me baffled.  I must be forgetting something, but I can&#8217;t think of what it might be.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Thanks!<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Mike Schwartz<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></body></html>