TIP: Click on subject to list as thread! ANSI
echo: cis.os9.68000.osk
to: James Jones 76257,562 (X)
from: Mark Griffith 76070,41
date: 1990-08-30 22:47:09
subject: #6393-#OSK Forkingg problem

#: 6407 S12/OS9/68000 (OSK)
    30-Aug-90  22:47:09
Sb: #6393-#OSK Forkingg problem
Fm: Mark Griffith 76070,41
To: James Jones 76257,562 (X)

James,

Basically, what was happening was; if you used os9fork() to run this string:

    rmail "system!user" /nil >>/nil

it would return an error of "can't fork "user"" even with the quotes. This same
command, if given at the shell prompt, worked fine.  It only barfed when using
os9fork().

What I did was use system() to fork the process.  It's not very elegant, but it
works.  The only reason I used os9fork() for the 6809 was because the string
being passed to the forked command sometimes was longer than the 80 char limit
enforced by system().  I assume this is not a problem under OSK.

I looked into using os9exec() after Ed Gressick fax'ed me the man pages for it,
but it was simpler to use system() so I did.  Works fine now. I do need to work
with it some more cause I'd like to get out of having to use the shell for the
command line redirection stuff.

Mark

There is 1 Reply.

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™.