Hi All,appended to the cwd and the process fails being unable to open stdout, with either an error 4002 (no such file) if I don't pre-create the file, or 4021 (is a directory, which it's not) if I do.
I'm trying to use PROCESS_SPAWN_ from GUARDIAN. Normally there are no issues when I am setting stdout of the created child to a process name or SSH tty. However, when I specify an OSS path for stdout, whether the file exists or not, the file is
/* Build the fdinfo entry for stdout */
fdentry[1].z_fd = 1;
fdentry[1].z_dupfd = -1;
fdentry[1].z_name = "/tmp/test.out";
fdentry[1].z_oflag = O_WRONLY;
fdentry[1].z_mode = 0755;
The 4002 is reported on /home/randall//tmp/test.out. This one has me scratching my head. Any thoughts?
TIA,
Randall
Hi All,
I'm trying to use PROCESS_SPAWN_ from GUARDIAN. Normally there are no issue= >s when I am setting stdout of the created child to a process name or SSH tt= >y. However, when I specify an OSS path for stdout, whether the file exists = >or not, the file is appended to the cwd and the process fails being unable = >to open stdout, with either an error 4002 (no such file) if I don't pre-cre= >ate the file, or 4021 (is a directory, which it's not) if I do.
/* Build the fdinfo entry for stdout */
fdentry[1].z_fd =3D 1;
fdentry[1].z_dupfd =3D -1;
fdentry[1].z_name =3D "/tmp/test.out";
fdentry[1].z_oflag =3D O_WRONLY;
fdentry[1].z_mode =3D 0755;
The 4002 is reported on /home/randall//tmp/test.out. This one has me scratc= >hing my head. Any thoughts?
TIA,
Randall
Hi All,
I'm trying to use PROCESS_SPAWN_ from GUARDIAN. Normally there are no issue= >s when I am setting stdout of the created child to a process name or SSH tt= >y. However, when I specify an OSS path for stdout, whether the file exists = >or not, the file is appended to the cwd and the process fails being unable = >to open stdout, with either an error 4002 (no such file) if I don't pre-cre= >ate the file, or 4021 (is a directory, which it's not) if I do.
/* Build the fdinfo entry for stdout */
fdentry[1].z_fd =3D 1;
fdentry[1].z_dupfd =3D -1;
fdentry[1].z_name =3D "/tmp/test.out";
fdentry[1].z_oflag =3D O_WRONLY;
fdentry[1].z_mode =3D 0755;
The 4002 is reported on /home/randall//tmp/test.out. This one has me scratc= >hing my head. Any thoughts?
TIA,
Randall
In article <d924a3ba-d3a6-4ed7...@googlegroups.com>,
rsbe...@nexbridge.com says...
Hi All,
I'm trying to use PROCESS_SPAWN_ from GUARDIAN. Normally there are no issue= >s when I am setting stdout of the created child to a process name or SSH tt= >y. However, when I specify an OSS path for stdout, whether the file exists = >or not, the file is appended to the cwd and the process fails being unable = >to open stdout, with either an error 4002 (no such file) if I don't pre-cre= >ate the file, or 4021 (is a directory, which it's not) if I do.
/* Build the fdinfo entry for stdout */
fdentry[1].z_fd =3D 1;
fdentry[1].z_dupfd =3D -1;
fdentry[1].z_name =3D "/tmp/test.out";
fdentry[1].z_oflag =3D O_WRONLY;
fdentry[1].z_mode =3D 0755;
The 4002 is reported on /home/randall//tmp/test.out. This one has me scratc= >hing my head. Any thoughts?
TIA,Maybe you have to OR in
Randall
ZSYS_VAL_OSSOPEN_CREAT
to z_flag
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 32:16:08 |
Calls: | 6,648 |
Calls today: | 3 |
Files: | 12,193 |
Messages: | 5,328,596 |