c60244@ccfiris.aedc (Kenny McDonald) (01/16/91)
I have recently gotten a copy of the FORMS library & I really am impressed with it. At our installation, we are moving more towards X. I was wondering if there is anything out there like the FORMS library, that was written in X. Thanks, 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@ccfiris.aedc | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
c60244@ccfiris.aedc (Kenny McDonald) (01/23/91)
I have recently built the FORMS library. I have been trying to develop a few forms. What I am trying to do is build a form for tar-ing files to & from remote machines. I am getting as input the remote host, the remote dir, & the local dir. I then try to xeq a system call like the following: system("rsh remotehost \"cd fromdir; tar cvBf - .\" | (cd todir; tar xBf -)") This system call xeq's & shows up with a ps -ef on both machines, but nothing happens. If I use the same system call in a short c-prog with no forms stuff, it works fine; it also works fine if I make the call in my forms program BEFORE I do any form generation. Does anyone out there using the FORMS library know what is wrong, or how I can do the above? 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@ccfiris.aedc | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
c60244@ccfiris.aedc (Kenny McDonald) (01/23/91)
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@ccfiris.aedc | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
blbates@AERO4.LARC.NASA.GOV ("Brent L. Bates AAD/TAB MS361 x42854") (01/23/91)
Could it have anything to do with forground and background? When you call gl the program is automatically put in background. You could try calling foreground and see if that has any effect. -- Brent L. Bates NASA-Langley Research Center M.S. 361 Hampton, Virginia 23665-5225 (804) 864-2854 E-mail: blbates@aero4.larc.nasa.gov or blbates@aero8.larc.nasa.gov
merritt@iris613.gsfc.nasa.gov (John H Merritt) (01/23/91)
In article <9101221909.AA25215@aero4.larc.nasa.gov> blbates@AERO4.LARC.NASA.GOV ("Brent L. Bates AAD/TAB MS361 x42854") writes: > > Could it have anything to do with forground and background? When you Correct, placing 'foreground()' at the begining produces the desired results. Explaination left to the reader. John H. Merritt --> merritt@iris613.gsfc.nasa.gov Applied Research Corporation at NASA/GSFC "Yesterday I knew nothing, today I know that."