Sco Openserver permissions problem (still 1 more error, further down the code)
Mike Schwartz
mschw at athenet.net
Thu Nov 29 09:29:29 PST 2012
>
> Here's your likely problem: you're treating DF as a string literal
instead of as a
> variable containing a filename. I believe you want:
>
> Then: DC=">"{DF{"; chmod 666"<DF ; system noredraw DC
>
> The rest of your issues seemed to be a chain reaction to this file not
being
> created, because you were trying to create a literal file "DF" with
malformed
> code.
>
> mark->
Ach! Of course. I must have blindly copied that old code snippet late
last night and didn't read it carefully this morning. (I can blame it on
the dental work I had done yesterday. I still have a splitting headache...)
Oddly enough, this single line was working just fine for testing for the
past several weeks, when it suddenly started giving me permission errors.
I tried to "improve" it by adding the permission change. (Note that there
aren't any chmods or other system commands):
'Send a PCL form to the ImageRight subdirectory
PRINTER FILE "/tmp/" {22 {".PCL"; FORM "GLTVHO"; PRINTER RESET
Now I'm down to this error with this code:
113 ------- - - - - - - - - - - - - - - - -
þ If: 'Create a print file name (temporarily borrow variable DF)
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
----- ----- (Debug half-step)
----------------------------------------------------------------------------
-----------
[ True }
Prc. Name: GLTVHOx
If: 'Send a PCL form to the ImageRight temporary storage
subdirectory
116 Then: PRINTER FILE DF
Enter Command > sh: /tmp/GLH1000.PRN: cannot execute
------ -----
----------------------------------------------------------------------------
--------------------
The permissions on the output file look OK:
-rw-rw-rw- 1 filepro ins 0 Nov 29 11:20 GLH1000.PRN
I've also tried:
PRINTER FILE (DF)
and
PRINTER FILE "/tmp/" {de {".PRN"
All of these variations display this error in debug:
Enter Command > sh: /tmp/GLH1000.PRN: cannot execute
Thanks!
Mike Schwartz
More information about the Filepro-list
mailing list