RE: [Hardhats-members] GTM question -- runing a program on startup

2004-12-23 Thread Marc Aylesworth
. Sorry about the confusion. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Toppenberg Sent: Wednesday, December 22, 2004 11:59 AM To: hardhats-members@lists.sourceforge.net Subject: RE: [Hardhats-members] GTM question -- runing a program on startup

RE: [Hardhats-members] GTM question -- runing a program on startup

2004-12-23 Thread K.S. Bhaskar
Something like this should also work: if [[ -z $1 ]] ; then $gtm_dist/mumps -dir ; else mumps -run $1 ; fi There's more than one way to skin a cat! [Come to think of it, what a horrible concept. I wonder where it came from...] -- Bhaskar On Thu, 2004-12-23 at 09:57, Marc Aylesworth wrote:

RE: [Hardhats-members] GTM question -- runing a program on startup

2004-12-22 Thread Kevin Toppenberg
: Monday, December 20, 2004 9:32 AM To: hardhats-members@lists.sourceforge.net Subject: Re: [Hardhats-members] GTM question -- runing a program on startup OK, so here is my script after revisions. This won't run a specified routine on startup. I would need a script that replaces $gtm_dist

Re: [Hardhats-members] GTM question -- runing a program on startup

2004-12-22 Thread Nancy E. Anthracite
PROTECTED] On Behalf Of Kevin Toppenberg Sent: Monday, December 20, 2004 9:32 AM To: hardhats-members@lists.sourceforge.net Subject: Re: [Hardhats-members] GTM question -- runing a program on startup OK, so here is my script after revisions. This won't run a specified

RE: [Hardhats-members] GTM question -- runing a program on startup

2004-12-22 Thread Jim Self
] GTM question -- runing a program on startup OK, so here is my script after revisions. This won't run a specified routine on startup. I would need a script that replaces $gtm_dist/mumps -dir with $gtm_dist/mumps -r MYFUNCT I'll have to learn a bit more of the scripting language to do

Re: [Hardhats-members] GTM question -- runing a program on startup

2004-12-22 Thread Jim Self
Kevin wrote: Regarding editors, I really like kate that comes with RH9. It is not as powerful as vim or gvim, but the learning curve is not nearly as steep. :-) Kate (included in the KDE desktop) seems to be quite a capable editor with lots of advanced features. On closer inspection, it

RE: [Hardhats-members] GTM question -- runing a program on startup

2004-12-21 Thread Marc Aylesworth
PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Toppenberg Sent: Monday, December 20, 2004 9:32 AM To: hardhats-members@lists.sourceforge.net Subject: Re: [Hardhats-members] GTM question -- runing a program on startup OK, so here is my script after revisions. This won't run a specified routine

Re: [Hardhats-members] GTM question -- runing a program on startup

2004-12-20 Thread Kevin Toppenberg
OK, so here is my script after revisions. This won't run a specified routine on startup. I would need a script that replaces $gtm_dist/mumps -dir with $gtm_dist/mumps -r MYFUNCT I'll have to learn a bit more of the scripting language to do the following pseudocode: if exists($1)

Re: [Hardhats-members] GTM question -- runing a program on startup

2004-12-19 Thread Jim Self
Kevin, This is not exactly an answer to your question, but for starting mumps, Bhaskar's vista script essentially just sets the same variables that you have already set. It would be simpler and less confusing to bypass it. You appear to be exporting more variables than you need and having some

Re: [Hardhats-members] GTM question -- runing a program on startup

2004-12-19 Thread Kevin Toppenberg
, a human right... in Russia. -- Original Message --- From: Kevin Toppenberg [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Fri, 17 Dec 2004 16:34:41 -0800 (PST) Subject: Re: [Hardhats-members] GTM question -- runing a program on startup I think I figured it out. $3

Re: [Hardhats-members] GTM question -- runing a program on startup

2004-12-19 Thread Kevin Toppenberg
I wasn't sure exactly what Bhaskar's script was doing... hadn't looked at it closely yet. But changing the script isn't working... see below: I changed my script to this: #start KT addition #12-14-2004 --moved exports into runvista script #- export

Re: [Hardhats-members] GTM question -- runing a program on startup

2004-12-19 Thread K.S. Bhaskar
Comments below. -- Bhaskar On Sun, 2004-12-19 at 09:35, Kevin Toppenberg wrote: I wasn't sure exactly what Bhaskar's script was doing... hadn't looked at it closely yet. But changing the script isn't working... see below: I changed my script to this: #start KT addition #12-14-2004

Re: [Hardhats-members] GTM question -- runing a program on startup

2004-12-19 Thread Kevin Toppenberg
Thanks Bhasker, Suggestions appreciated. Comments below: --- K.S. Bhaskar [EMAIL PROTECTED] wrote: Comments below. - snip - export gtmgbldir=$gtm_vista_prod/g/mumps.gld export vista_home=$gtm_vista export gtmroutines=$gtm_vista/o($gtm_vista_prod/r $gtm_vista/r $gtm_dist)

Re: [Hardhats-members] GTM question -- runing a program on startup

2004-12-19 Thread Jim Self
Kevin, Bhaskar wrote: echo Entering GT.M system now... #- export EDITOR=vim $gtm_dist/mumps [KSB] Try $gtm_dist/mumps -dir. Just $gtm_dist/mumps will run the compiler and ask What file: (is to be compiled). or to answer your original question - If you have a

Re: [Hardhats-members] GTM question -- runing a program on startup

2004-12-19 Thread Jim Self
Kevin wrote: Thanks Bhasker, Suggestions appreciated. Comments below: --- K.S. Bhaskar [EMAIL PROTECTED] wrote: Comments below. - snip - export gtmgbldir=$gtm_vista_prod/g/mumps.gld export vista_home=$gtm_vista export gtmroutines=$gtm_vista/o($gtm_vista_prod/r $gtm_vista/r

Re: [Hardhats-members] GTM question -- runing a program on startup

2004-12-19 Thread K.S. Bhaskar
On Sun, 2004-12-19 at 22:36, Jim Self wrote: Kevin wrote: [KSB] ...snip... export gtmroutines=$gtm_vista/o($gtm_vista_prod/r $gtm_vista/r $gtm_dist) $gtm_dist() [KSB] Consider following (1 line) instead: export gtmroutines=gtm_vista/o($gtm_vista/r $gtm_vista_prod/r) $gtm_dist

Re: [Hardhats-members] GTM question -- runing a program on startup

2004-12-19 Thread Kevin Toppenberg
Jim, Thanks for the pointer r.e. running a routine. Regarding editors, I really like kate that comes with RH9. It is not as powerful as vim or gvim, but the learning curve is not nearly as steep. :-) Thanks KevinJim Self [EMAIL PROTECTED] wrote: Kevin,Bhaskar wrote: echo "Entering GT.M system

[Hardhats-members] GTM question -- runing a program on startup

2004-12-17 Thread Kevin Toppenberg
I have installed the VPE system on my installation. I would like to automatically enter the VPE shell upon starting GTM. I am starting GTM in a round-about way: I have my own mini script, that calls Bhaskar's script, that then launches GTM. Is there any way in the setup to automatically evoke

Re: [Hardhats-members] GTM question -- runing a program on startup

2004-12-17 Thread Kevin Toppenberg
Thanks Bhaskar, Is there any way to do this with your vista script? I.e. do you have a way to pass this parameter? I have tried looking at the script itself, but I haven't learned the script syntax well enough yet to tell. The best I can see, you command: $gtm_dist/mumps -run $3 But I can't

Re: [Hardhats-members] GTM question -- runing a program on startup

2004-12-17 Thread Kevin Toppenberg
I think I figured it out. $3 is the 3rd input paramter. So I can use: vista --run $HOME/OpenVista_UserData ^MyFunction Thanks Kevin --- Kevin Toppenberg [EMAIL PROTECTED] wrote: Thanks Bhaskar, Is there any way to do this with your vista script? I.e. do you have a way to pass this