Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Port for Cray T3D

3 views
Skip to first unread message

Chuck Mosher

unread,
Sep 11, 1996, 3:00:00 AM9/11/96
to

We've been using an embedded tcl interpreter in our processing
system on the Cray T3D (and other places) for associative array
management. The T3D does not support fork and execvp, so I
created stubs for those that return -1. This gives us the
basic variable manipulation that we need, but of course any
operations that exec a subprocess (i.e. any file operations)
fail.

It would be nice to gain acesss to part or all of the file
access routines. Taking a cursory look at tclUnixPipe.c, it
looks like it might be feasible to simulate:
fork
execvp
with
system( string_of_processes )

The 'system' call on the T3D connects to a Cray YMP front end
and executes Unix commands there.

Has anyone else encountered this situation ?
Any hints on dealing with tihs would be appreciated.

-Chuck Mosher
--
NOTE: Plano area code moving from 214->972 on Sept. 15 1996
----+----1----+----2----+----3----+----4----+----5----+----6----+----7--
| Chuck Mosher | Internet : c...@arco.com | Who needs an editor |
| ARCO, Plano, TX | Telephone: (214)509-6468 | when you have ISPF? |
************************************************************************

Grant Reaber

unread,
Sep 12, 1996, 3:00:00 AM9/12/96
to

The system command will have different semantics from exec, so why not just
write an interface to the C system command called system? With my EC package
you can write the interface as on line of Tcl:

ec_command system s:arg {ec_iresult(system(arg));}

OK, that's a lie. You can't use EC because EC requires exec, but the point is
it's really easy.

Grant


0 new messages