[comp.sys.sgi] forkunix, forkwsh, and seqfork???

wes@uh.msc.umn.edu (Wes Barris) (10/18/90)

What is the difference between "forkunix" and "forkwsh"?  My user.ps file
contains several forkunix thingies which work properly unless I try to put
anything else in them.  When I replace a "forkunix" with a "forkwsh" the
corresponding window does not get opened.  And then, there is the "seqfork"
command.  I haven't been able to find any documentation on these.

      o o o o o o o . . .   ________________________________ _____=======_____
    o      _____            |Wes Barris                    | | wes@msc.edu   |
  .][__n_n_|DD[  ====_____  |Minnesota Supercomputer Center| |(612) 626-1854 |
 >(________|__|_[_________]_|University of Minnesota_______|_|_FAX:_624-6550_|_
 _/oo OOOOO oo`  ooo   ooo  'o^o^o                    o^o^o` 'o^o         o^o`
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
"This is the third time we've pulled out the Captain's chair for Riker;
he just won't sit down." -- Admiral J.P. Hanson

eddc@opus.lerc.nasa.gov (Dave Carek) (10/19/90)

forkunix  - forks a unix process (code already has necessary stuff to open 
            window.

seqfork   - sequential fork of unix process (like forkunix but makes sure
            they are executed in order

forkwsh   - forks a window shell (same as typing wsh in an open window)

Sample RestartActions in user.ps

/RestartActions [ 
    { 
        RunConsole
        (-n C_Shell -r1000 -s40x80 -t"$USER  on  `hostname`") forkwsh
        (clock) forkunix 
        (mailbox -S $USER) forkunix           
        (ical) forkunix 
        (gr_osview) forkunix
        (systemchest) seqfork
        (/usr/local/bin/hostchest) seqfork 
        (/usr/local/bin/printchest) seqfork 
        (windowchest) seqfork
    }
] store
 
1st forkwsh starts a wsh using the parameters specified in the ()'s
The four foukunix lines, start the processes specified in the ()'s
The four seqfork lines, start the processes specified in the ()'s in the
    order listed.
 
For documentation you can look in the 4Sight Programmer's Guide.  I found
it more useful to play around in the 4Dgifts directory and learn by example.

But .... I wouldn't waste too much time trying to learn this stuff, seeing as
SGI say's they'll be moving to X.


--
-----------------------------------------------------------------------
| David Carek                   |   phone: 216-433-8396               |
| NASA Lewis Research Center    |                                     |
| Cleveland, Ohio  44135        |   email: eddc@opus.lerc.nasa.gov    |
|---------------------------------------------------------------------|
| Engineer -> An innovative imaginative scientist who must design the |
|       improbable using the impossible on a budget that is invisible |
-----------------------------------------------------------------------