Simple is good. Thanks Kevin
--- "K.S. Bhaskar" <[EMAIL PROTECTED]> wrote: > You could use a TCP socket, or a UNIX named pipe to > bring it in, but a > file is the simplest to program and understand. > > -- Bhaskar > > On Wed, 2004-09-22 at 13:36, Kevin Toppenberg wrote: > > Thanks Bhaskar, > > > > In the web examples that I found, one can bring > the > > stderr directly into the shell. I read in the > GT.M > > programming manual about this, and had figured > that we > > would have to use a file intermediate. I'm glad > to > > see that there isn't some much easier way to do > it. > > But hey, the code you are showing is only a few > lines > > long. > > > > Thanks. > > > > P.S. I am about half way done for a M code > wrapper > > for the Xdialog interface. I'll pass it on when I > am > > done. > > I think it's going to be quite cool. > > > > Kevin > > > > > > --- "Bhaskar, K.S." <[EMAIL PROTECTED]> wrote: > > > > > Here is a simple example of GT.M use with > Xdialog. > > > Note that this is just a simple demo (and I have > > > ignored things like deleting the file after > use). > > > Note also that this involves spawning two > processes > > > for each dialog box, so you wouldn't want to use > > > this technique for any heavy lifting (e.g., > hundreds > > > of users on the system). But it works for the > > > dialog box here 'n there. > > > > > > Note that since the ZSYSTEM command is processed > by > > > your shell of choice, so shell constructs, in > this > > > example `dirname <filename>` are handled. As > others > > > have pointed out, you can use dialog rather than > > > Xdialog, but it lacks the eye candy of the > latter. > > > > > > -- Bhaskar > > > > > > ------------------------------------ > > > iodemo2 ; demonstrate IO > > > S file="/tmp/file"_$J_".tmp" > > > ZSYSTEM "Xdialog --title ""Select directory"" > > > --dselect `dirname "_file_"` 0 0 2 2>"_file > > > O file > > > U file > > > R x > > > U $p > > > W x,! > > > q > > > ------------------------------------ > > > > > > > > > *************************************************************************** > > > This electronic mail transmission contains > > > confidential and/or privileged information > intended > > > only for the person(s) named. > > > Any use, distribution, copying or disclosure by > > > another person is strictly prohibited. > > > > > > *************************************************************************** > > > > > > NOTE: Ce courriel est destine exclusivement > au(x) > > > destinataire(s) mentionne(s) ci-dessus et peut > > > contenir de l'information privilegiee, > > > confidentielle et/ou dispensee de divulgation > aux > > > termes des lois applicables. Si vous avez recu > ce > > > message par erreur, ou s'il ne vous est pas > destine, > > > veuillez le mentionner immediatement a > l'expediteur > > > et effacer ce courriel. > > > > > > > > > > > > > > > > > ATTACHMENT part 2 application/ms-tnef > > name=winmail.dat > > > > > > > > > > > > __________________________________ > > Do you Yahoo!? > > Yahoo! Mail - 50x more storage than other > providers! > > http://promotions.yahoo.com/new_mail > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: YOU BE THE > JUDGE. Be one of 170 > > Project Admins to receive an Apple iPod Mini FREE > for your judgement on > > who ports your project to Linux PPC the best. > Sponsored by IBM. > > Deadline: Sept. 24. Go here: > http://sf.net/ppc_contest.php > > _______________________________________________ > > Hardhats-members mailing list > > [EMAIL PROTECTED] > > > https://lists.sourceforge.net/lists/listinfo/hardhats-members > > > ------------------------------------------------------- > This SF.Net email is sponsored by: YOU BE THE JUDGE. > Be one of 170 > Project Admins to receive an Apple iPod Mini FREE > for your judgement on > who ports your project to Linux PPC the best. > Sponsored by IBM. > Deadline: Sept. 24. Go here: > http://sf.net/ppc_contest.php > _______________________________________________ > Hardhats-members mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/hardhats-members > __________________________________ Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! http://promotions.yahoo.com/new_mail ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php _______________________________________________ Hardhats-members mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hardhats-members
