FORMS

Kenny McDonald c60244 at ccfiris.aedc
Wed Jan 23 06:27:29 AEST 1991


In a previous posting I was trying to get some info on FORMS & making system
calls from within a c-prog.  I have decided my problem is in gl.

The following program, when run xeq's the rsh command, but no output shows up.

#include <gl.h>

main() {

  prefposition(100, 400, 500, 800);
  winopen("RED");
  shademodel(FLAT);
  color(RED);
  clear();
  color(7);
  cmov2i(60,200);
  charstr("This Window is RED");
  system("rsh stokes ls -l");
  sleep(5);

}  /* End of Main */



If I do not make any gl calls & simply do

main() {
  system ("rsh stokes ls -l");
}

I get the listing of the files on stokes.

Why does this not work in the gl program?

  vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
  |      Kenneth M. McDonald * Arnold Engineering Development Center       |
  |          MS 100 * Arnold AFS, TN 37389-9998 * (615) 454-3413           |
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                  OO   AA   OO
                                 O  O A  A O  O
                                 O  O AAAA O  O
                                 O  O A  A O  O
                                  OO  A  A  OO
                                 _______________
                                               /
  vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvRETURN ADDRESS:vvvvvvvvvvvvvvvvvvvvvvvvvvvv
  |                    @aedc-vax.af.mil:c60244 at ccfiris.aedc		   |
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^



More information about the Comp.sys.sgi mailing list