TIP: Click on subject to list as thread! ANSI
echo: cis.os9.68000.osk
to: sysop (X)
from: MAS 76336,3226
date: 1990-10-26 15:25:03
subject: #Help with C

#: 7780 S12/OS9/68000 (OSK)
    26-Oct-90  15:25:03
Sb: #Help with C
Fm: MAS 76336,3226
To: sysop (X)

Hello there,

Thanks again for the tips on gs_opt, I have another question on Os9 C
programming. In order to port our UNIX Telnet-server implementation from SUN to
OS-9 we have to find out how to create and access a login shell a login shell
from within an OS-9 program.

On UNIX we proceed as follow: 1) In the main program we create 2 pipes: p1 and
p2. 2) The main programs forks. 3) The parent (continuation of main)
   closes the reading end of p1 and
   closes the writing end of p2. 4) The child
   closes the writing end of p1 and
   closes the reading end of p2;
   redirects its standard input to read from p1 (close (0), dup(p1)),
   redirects its standard output to write to p2 (close (1), dup(p2));
   replaces the current child process with a login shell process (execl(.)).

The parent program now controls a login shell through the p1 and p2 pipes.

Fork() and pipe() are very different on OS-9! Could you give us some hints on
how to create and access a login shell from within an OS-9 program?

Thanks in advance!

Robert CHENd

There are 2 Replies.

SOURCE: compuserve via textfiles.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.