Re: [Hardhats-members] Starting TASKMAN no interactive way

2005-09-02 Thread K.S. Bhaskar
Fred -- In this case, simple shell scripting would meet the needs. Wouldn't expect and TCL be appropriate for complex scripts, which VistA doesn't appear to need? -- Bhaskar On Wed, 2005-08-31 at 09:36 -0500, Fred Trotter wrote: Generally expect functionality would probably help with lots

Re: [Hardhats-members] Starting TASKMAN no interactive way

2005-09-02 Thread Nancy Anthracite
How do you supply an input in advance with a shell script without using Expect or something similar? On Friday 02 September 2005 09:00 am, K.S. Bhaskar wrote: Fred -- In this case, simple shell scripting would meet the needs. Wouldn't expect and TCL be appropriate for complex scripts, which

RE: [Hardhats-members] Starting TASKMAN no interactive way

2005-09-02 Thread Bhaskar, KS
: Subject:Re: [Hardhats-members] Starting TASKMAN no interactive way How do you supply an input in advance with a shell script without using Expect or something similar? On Friday 02 September 2005 09:00 am, K.S. Bhaskar wrote: Fred -- In this case, simple shell scripting would meet the needs

Re: [Hardhats-members] Starting TASKMAN no interactive way

2005-09-01 Thread steven mcphelan
8:53 PM Subject: Re: [Hardhats-members] Starting TASKMAN no interactive way Bhaskar wrote: Steve -- I don't have a good answer for what to do if a process is running a report that will take several hours to complete when operations wants to shut the system down. The good news is that you

RE: [Hardhats-members] Starting TASKMAN no interactive way

2005-09-01 Thread Cameron Schlehuber
Sent: Wednesday, August 31, 2005 8:53 PM Subject: Re: [Hardhats-members] Starting TASKMAN no interactive way Bhaskar wrote: Steve -- I don't have a good answer for what to do if a process is running a report that will take several hours to complete when operations wants to shut the system

Re: [Hardhats-members] Starting TASKMAN no interactive way

2005-08-31 Thread Gregory Woodhouse
Nancy's suggestion (using expect) is probably worth exploring. The mandatory user interactions have been a perennial source of frustration to me, too. === Gregory Woodhouse [EMAIL PROTECTED] Nothing is as powerful than an idea whose time has come. -- Victor Hugo On Aug 30, 2005, at 5:28

Re: [Hardhats-members] Starting TASKMAN no interactive way

2005-08-31 Thread César Yáñez Fernández
Why? well, it's needed, the power infrastructure where is the server have some several problems now, I hope it can be fixed that soon; and because of that, I need to set up a rc script in order to shutdown the services or run up those services while the operating system (linux) shuts down or boot

Re: [Hardhats-members] Starting TASKMAN no interactive way

2005-08-31 Thread Fred Trotter
Generally expect functionality would probably help with lots of the startup and installation functions of VistA. I would suggest however, that you use either the perl or python expect modules. Especially the python - excpect module would help to ensure that your code was readable and

Re: [Hardhats-members] Starting TASKMAN no interactive way

2005-08-31 Thread steven mcphelan
There is no reason to start up these VistA processes using some external script except for Taskman. Once Taskman starts up he can start up whatever background process you desire. Most, if not all, of these background processes already have VistA options to be run as scheduled tasks at startup

Re: [Hardhats-members] Starting TASKMAN no interactive way

2005-08-31 Thread Jim Self
I think that building utilities around expect is adding unecessary complexity where you could just as easily (or more easily) simplify everything with a solution at a different level. A much better solution, if simple command line scripting isn't sufficient, would be to fix the utilities in

Re: [Hardhats-members] Starting TASKMAN no interactive way

2005-08-31 Thread K.S. Bhaskar
Steve -- I don't have a good answer for what to do if a process is running a report that will take several hours to complete when operations wants to shut the system down. I guess that depends on the application logic for the process. [For example, in our banking application, with the use of

Re: [Hardhats-members] Starting TASKMAN no interactive way

2005-08-31 Thread Jim Self
Bhaskar wrote: Steve -- I don't have a good answer for what to do if a process is running a report that will take several hours to complete when operations wants to shut the system down. The good news is that you can expect to have very few such long running processes. GT.M/Linux on a server

Re: [Hardhats-members] Starting TASKMAN no interactive way

2005-08-30 Thread Greg Woodhouse
Most of that is one time setup. The settings are saved in Fileman, so the next time around, you only need to start Taskman (your D ^ZTMB, though you can also do it through a menu option, if you wish). Other options, such as starting the Broker can be designated to start automatically, if you wish.

Re: [Hardhats-members] Starting TASKMAN no interactive way

2005-08-30 Thread César Yáñez Fernández
Thanks a lot for your help, Greg; now I can start the Taskman in a non interactive way, now, I need to open the 9260/TCP port, so I do: GTM D STRT^XWBTCP(9260) ENTER Start TCP Listener... Checking if TCP Listener has started... TCP Listener started successfully. GTM and to stop it; I just type:

Re: [Hardhats-members] Starting TASKMAN no interactive way

2005-08-30 Thread Nancy Anthracite
Can Expect handle something like this? On Tuesday 30 August 2005 08:28 pm, César Yáñez Fernández wrote: Thanks a lot for your help, Greg; now I can start the Taskman in a non interactive way, now, I need to open the 9260/TCP port, so I do: GTM D STRT^XWBTCP(9260) ENTER Start TCP Listener...

Re: [Hardhats-members] Starting TASKMAN no interactive way

2005-08-30 Thread Kevin Toppenberg
Why are you wanting to start and stop your system all the time? If you are planning a stable system, then you will turn it on and leave it on (i.e. on a server.) Kevin On 8/30/05, Nancy Anthracite [EMAIL PROTECTED] wrote: Can Expect handle something like this? On Tuesday 30 August 2005

Re: [Hardhats-members] Starting TASKMAN no interactive way

2005-08-30 Thread K.S. Bhaskar
César -- Use Linux's shell scripting capabilities. Something like (don't take this literally, but use it as the basis for what you should do): To start: export gtm_dist=/usr/local/gtm export gtmgbldir= ...pointer to global directory... export gtmroutines= ...routine search path...