Sco Openserver permissions problem (still 1 more error)
Mike Schwartz
mschw at athenet.net
Sat Dec 1 13:56:17 PST 2012
> Then there's something trying to execute that file.
>
> If you have strace, or it's sysv equivalent, truss, I'd suggest launching
it
> against the filepro process in question while debugging to see what it's
trying
> to do with a system(2) call, then trace that back to your code or printer
table.
> Mark
I changed the printer variable to a long variable name, but that didn't
help. I've also tried every other suggestion, so I resorted to trying a
"truss" debug.
The print file gets created properly (permissions set OK and such) but
when debug hits this line, it splashes this error:
[True] ------------------------------------------------------------ Prc.
Name: GLTVHOx
If: 'Point the printer ro the ImageRight temporary storage subdir
119 Then: PRINTER FILE PNAME
Enter Command > sh : /u/appl/forms/GLH1009.PRN: cannot execute
Then I stepped through the next couple of lines, where I hit the "FORM
HEADER", and dclerk aborted.
Here is the truss log:
(from screen:)
Attached to pid 19943...
found ELF header 1 at virtual address 80001000
Can't handle this type of executable image. (/u/appl/forms/GLH1010.PRN) (0)
from /tmp/truss.log file:
(Note: There is a user named "Bernice", but I am running this as "root", so
I don't have any idea why this log reads something under /usr/Bernice...)
read(0, "", 1) = ... (sleeping)
read(0, "\0D ", 1) = 1
open("/etc/passwd", 0x0, 0x1b6) = 7
fcntl(7, 2, 1) = 0
ioctl(7, TCGETA, 0x7ffff816) = ENOTTY
fxstat(51, 7, 0x7ffff844) = 0
read(7, "root:x:0:3:Superuser:/:\ndaemon:x:1:1:System daemo...", 1024) =
1024
read(7, "bin/sh\nbernice:x:203:201:Bernice:/u/bernice:/bin/...", 1024) =
1024
lseek(7, 0x5b0, 1) = 1456
close(7) = 0
open("/etc/passwd", 0x0, 0x1b6) = 7
fcntl(7, 2, 1) = 0
ioctl(7, TCGETA, 0x7ffff816) = ENOTTY
fxstat(51, 7, 0x7ffff844) = 0
read(7, "root:x:0:3:Superuser:/:\ndaemon:x:1:1:System daemo...", 1024) =
1024
lseek(7, 0x18, 1) = 24
close(7) = 0
time(0x7) = 1354398058
fcntl(0, 3, 0) = 2
fcntl(0, 4, 6) = 0
read(0, "NULL, 1) = 0
fcntl(0, 3, 0) = 6
fcntl(0, 4, 2) = 0
write(1, "\1B [m\1B [22;12H\1B [K\1B [23;4H", 21) = 21
write(1, "1", 1) = 1
write(1, "\1B [23;14H", 8) = 8
write(1, "DB="~~##$$FN" {de {"PERSONAL$$##~~"", 35) = 35
write(1, "\1B [24;17H", 8) = 8
fcntl(0, 3, 0) = 2
fcntl(0, 4, 2) = 0
read(0, "\0D ", 1) = 1
open("/etc/passwd", 0x0, 0x1b6) = 7
fcntl(7, 2, 1) = 0
ioctl(7, TCGETA, 0x7ffff816) = ENOTTY
fxstat(51, 7, 0x7ffff844) = 0
read(7, "root:x:0:3:Superuser:/:\ndaemon:x:1:1:System daemo...", 1024) =
1024
read(7, "bin/sh\nbernice:x:203:201:Bernice:/u/bernice:/bin/...", 1024) =
1024
lseek(7, 0x5b0, 1) = 1456
close(7) = 0
open("/etc/passwd", 0x0, 0x1b6) = 7
fcntl(7, 2, 1) = 0
ioctl(7, TCGETA, 0x7ffff816) = ENOTTY
fxstat(51, 7, 0x7ffff844) = 0
read(7, "root:x:0:3:Superuser:/:\ndaemon:x:1:1:System daemo...", 1024) =
1024
lseek(7, 0x18, 1) = 24
close(7) = 0
time(0x7) = 1354398059
fcntl(0, 3, 0) = 2
fcntl(0, 4, 6) = 0
read(0, "NULL, 1) = 0
fcntl(0, 3, 0) = 6
fcntl(0, 4, 2) = 0
write(1, "\1B [22;14H", 8) = 8
write(1, "\1B [m'Send a PCL form to the ImageRight subdirect...", 50) = 50
write(1, "\1B [23;4H", 7) = 7
write(1, "2", 1) = 1
write(1, "\1B [23;14H", 8) = 8
write(1, "FORM "HEADER", 12) = 12
write(1, "\1B [23;27H\1B [K\1B [24;17H", 19) = 19
fcntl(0, 3, 0) = 2
fcntl(0, 4, 2) = 0
read(0, "\0D ", 1) = 1
open("/etc/passwd", 0x0, 0x1b6) = 7
fcntl(7, 2, 1) = 0
ioctl(7, TCGETA, 0x7ffff816) = ENOTTY
fxstat(51, 7, 0x7ffff844) = 0
read(7, "root:x:0:3:Superuser:/:\ndaemon:x:1:1:System daemo...", 1024) =
1024
read(7, "bin/sh\nbernice:x:203:201:Bernice:/u/bernice:/bin/...", 1024) =
1024
lseek(7, 0x5b0, 1) = 1456
close(7) = 0
open("/etc/passwd", 0x0, 0x1b6) = 7
fcntl(7, 2, 1) = 0
ioctl(7, TCGETA, 0x7ffff816) = ENOTTY
fxstat(51, 7, 0x7ffff844) = 0
read(7, "root:x:0:3:Superuser:/:\ndaemon:x:1:1:System daemo...", 1024) =
1024
lseek(7, 0x18, 1) = 24
close(7) = 0
time(0x7) = 1354398059
open("/u/appl/filepro/INS/out.HEADER", 0x0, 0x1b6) = 7
lseek(7, 0x0, 0) = 0
ioctl(7, TCGETA, 0x7ffff7a2) = ENOTTY
fxstat(51, 7, 0x7ffff7d0) = 0
read(7, "\11 >y\CE l\87 \C8 ?"R\00 \00 \06 \00 \00 \00 \00 ...", 1024) = 672
lseek(7, 0x0, 0) = 0
read(7, "\11 >y\CE l\87 \C8 ?"R\00 \00 \06 \00 \00 \00 \00 ...", 64) = 64
read(7, "\80 \00 \03 \00 \00 \00 \06 \00 \00 \00 \01 \00 \0...", 128) = 128
read(7, "*DA ...", 480) = 480
lseek(7, 0x40, 1) = 64
close(7) = 0
Process 19943 got signal SIGPIPE (Broken pipe) at eip=0xbef07
getpid() = 19943
Process 19943 got signal SIGPIPE (Broken pipe) at eip=0xc1cb8
Process 19943 terminated via signal SIGPIPE (Broken pipe).
Child process has exited
NOTE: I hit the delete key to terminate the TRUSS process...
Isn't this PID 19904 at the bottom of the "ps -ef" interesting? I
wonder if the "Printer File" command in filePro always shows a "sh -c"
process running when "printer File" is pointed to a file???
filepro 19943 19938 0 15:35:20 ttyp3 00:00:00 /u/appl/fp/dclerk - -t
200000 -tf 120000 -pq
root 19822 380 1 15:23:48 ? 00:00:00 fct_etpd
root 19236 380 0 13:05:49 ? 00:00:00 fct_etpd
root 19237 19236 0 13:05:49 ttyp1 00:00:00 -sh
root 19823 19822 2 15:23:48 ttyp2 00:00:00 -sh
root 19923 19919 0 15:35:15 ? 00:00:00 fct_etpd
root 19240 19236 0 13:05:49 ? 00:00:00 fct_etpd
root 19887 19237 0 15:25:43 ttyp1 00:00:00 ksh
root 19826 19822 0 15:23:48 ? 00:00:00 fct_etpd
root 19986 19823 2 15:36:25 ttyp2 00:00:00 ps -ef
filepro 19904 1 49 15:27:22 ttyp0 00:04:56 sh -c
/u/appl/forms/GLH1006.PRN
More information about the Filepro-list
mailing list