programming question
Rick Sivernell
res005ru
Mon May 17 11:59:43 PDT 2004
On Tue, 24 Feb 2004 08:19:11 +0100
Roger Oberholtzer <roger at opq.se> wrote:
> On Mon, 23 Feb 2004 15:25:05 -0600
> Rick Sivernell <res005ru at verizon.net> wrote:
>
> > Hi list
> >
> > I am creating a IDE, and I want to call a terminal program, xterm -
> > Eterm etc., &
> > have it start compiling a program, get the the output for display in a ide
> > window. Has anyone done this before and would like to share it with me. I
> > would be extremely gratefull and raise a very large cold one, warm one
> > from of the friends in the UK, in your honour<g>. You can contact me
> > offlist to save bandwidth. Thanks in advance.
>
> If the output will be in an IDE window, which I assume is not the xterm, why
> the xterm? All you need to do is exec a shell and redirect the output. When
> I run make over our whole package, I do this to get EVERYTHING in a file:
>
> system("nohup make all >my.log 2>&1 &");
>
> is the simplest form. Remove the trailing '&' as needed.
>
> I then go about my business, perhaps even logging off (hence the nohup). All
> output, including to stderr, are in my.log in the correct place. Pop the
> contents of my.log into a window in your IDE and you are set. You even have
> the freedom of searching the log for errors and all that sort of thing.
>
> If your IDE was in Tcl (I forget who on this list was playing with Tcl), you
> could use an xterm in your application in a very nice way with the BLT
> extension's 'container' function. Just put the xterm in another window along
> with all the other widgets in the window. It will look like part of your
> GUI. Very slick. Tcl's 'toplevel' command also can do something similar.
>
>
> --
> +????????????????????????????+???????????????????????????????+
> ? Roger Oberholtzer ? E-mail: roger at opq.se ?
> ? OPQ Systems AB ? WWW: http://www.opq.se/ ?
> ? Erik Dahlbergsgatan 41-43 ? Phone: Int + 46 8 314223 ?
> ? 115 34 Stockholm ? Mobile: Int + 46 733 621657 ?
> ? Sweden ? Fax: Int + 46 8 302602 ?
> +????????????????????????????+???????????????????????????????+
>
> _______________________________________________
> Linux-users mailing list
> Linux-users at smtp.linux-sxs.org
> Unsubscribe/Suspend/Etc -> http://smtp.linux-sxs.org/mailman/listinfo/linux-users
Roger
Thanks, looks like there are still many ways to do this. I am writing the code in
c++, with wxWindows GUI lib. You Kurt & lonnie have given me some great &
interesting info.
cheers
--
Rick Sivernell
Dallas, Texas 75287
972 306-2296
res005ru at gte.net
Gentoo Linux
Registered Linux User #193859
.~.
/ v \
/( _ )\
^ ^
In Linux we trust!
More information about the Linux-users
mailing list