For the GTM-E-JOBFAIL error message, you should look at the Messages and
Recovery Procedures manual. JOBFAIL is listed there.
Regards
-- Bhaskar
GT.M - Rock solid. Lightning fast. Secure. No compromises.
> --
> http://groups.google.com/group/Hardhats
> To unsubscribe, send email to Hardhats+u...@googlegroups.com
>
_____________
The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you.
_____________
GTM>zsy "ls"
GTM>zsy
GTM>o "uptime":(SHELL="/bin/sh":COMMAND="uptime":READONLY)::"PIPE"
GTM>for use "uptime" read x quit:$zeof use $principal write x,!
12:59:59 up 4:03, 1 user, load average: 0.62, 0.63, 0.73
GTM>use $principal write $ztrnlnm("SHELL")
/bin/false
GTM>
Regards
-- Bhaskar
GT.M - Rock solid. Lightning fast. Secure. No compromises.
I just used uptime as an example! It could be any process. Kevin asked
whether setting $SHELL to /bin/false to block ZSYSTEM also blocked PIPE
devices, and the answer is no, it does not. That's all I was attempting
to illustrate.
Regards
-- Bhaskar
GT.M - Rock solid. Lightning fast. Secure. No compromises.
On 09/07/2010 01:58 PM, skip ormsby wrote:
> Silly question Kevin - why not use %ZTLOAD/TaskMan?
>
> On Tue, Sep 7, 2010 at 1:04 PM, K.S. Bhaskar <ks.bh...@fisglobal.com
> <mailto:ks.bh...@fisglobal.com>> wrote:
>
> Setting the SHELL environment variable to /bin/false to block
> ZSYSTEM does not prevent the process from using a pipe. But you may
> have to explicitly tell the OPEN command to use /bin/sh as the shell.
>
> GTM>zsy "ls"
>
> GTM>zsy
>
> GTM>o "uptime":(SHELL="/bin/sh":COMMAND="uptime":READONLY)::"PIPE"
>
> GTM>for use "uptime" read x quit:$zeof use $principal write x,!
> 12:59:59 up 4:03, 1 user, load average: 0.62, 0.63, 0.73
>
> GTM>use $principal write $ztrnlnm("SHELL")
> /bin/false
> GTM>
>
>
> Regards
> -- Bhaskar
>
> GT.M - Rock solid. Lightning fast. Secure. No compromises.
>
> On 09/07/2010 12:17 PM, kdt...@gmail.com <mailto:kdt...@gmail.com>
> <mailto:ks.bhas...@fisglobal.com>> wrote:
> > All current GT.M user documentation is on the web. Go
> tohttp://fis-gtm.comand click on the User Documentation tab.
> That page
> > lists all current documentation as well as links to mirrors.
> >
> > For the GTM-E-JOBFAIL error message, you should look at the
> Messages and
> > Recovery Procedures manual. JOBFAIL is listed there.
> >
> > Regards
> > -- Bhaskar
> >
> > GT.M - Rock solid. Lightning fast. Secure. No compromises.
> >
> > On 09/07/2010 09:11 AM, Nancy Anthracite wrote:
> >
> >
> >
> >
> >
> > > I am sure it is online somewhere, but here is an old pdf of an
> error manual
> >
> > > On Tuesday, September 07, 2010, kdt...@gmail.com
> <mailto:Hardhats%2Bunsu...@googlegroups.com>
> >
> > _____________
> >
> > The information contained in this message is proprietary and/or
> confidential. If you are not the intended recipient, please: (i)
> delete
> the message and all copies; (ii) do not disclose, distribute or
> use the
> message in any manner; and (iii) notify the sender immediately. In
> addition, please be aware that any message addressed to our
> domain is
> subject to archiving and review by persons other than the intended
> recipient. Thank you.
> > _____________
>
> --
> http://groups.google.com/group/Hardhats
> To unsubscribe, send email to
> Hardhats+u...@googlegroups.com
> <mailto:Hardhats%2Bunsu...@googlegroups.com>
>
>
> _____________
>
> The information contained in this message is proprietary and/or
> confidential. If you are not the intended recipient, please: (i)
> delete the message and all copies; (ii) do not disclose, distribute
> or use the message in any manner; and (iii) notify the sender
> immediately. In addition, please be aware that any message addressed
> to our domain is subject to archiving and review by persons other
> than the intended recipient. Thank you.
> _____________
>
> --
> http://groups.google.com/group/Hardhats
> To unsubscribe, send email to Hardhats+u...@googlegroups.com
> <mailto:Hardhats%2Bunsu...@googlegroups.com>
Sorry, I have been buried and only now have a chance to think about this.
To troubleshoot, give the JOB'd process explicit STDOUT and STDERR and
see if there is anything in either of them. Also, when starting up the
server process, in /opt/worldvista/EHR/bin/vista_client-port-xwb.sh, try
explicitly redirecting STDERR to a file that you can examine later.
Regards
-- Bhaskar
GT.M - Rock solid. Lightning fast. Secure. No compromises.
On 09/12/2010 07:11 PM, kdt...@gmail.com wrote:
> OK. I am out of ideas about how to figure this out. Let me spell out
> the steps that lead to this crazy error.
[KSB] <...snip...>
GT.M - Rock solid. Lightning fast. Secure. No compromises.
On 09/16/2010 07:25 PM, kdt...@gmail.com wrote:
> Bhaskar,
>
> Will do. Just a quick update on progress so far.
[KSB] Hopefully the .mjo and .mje files of the JOB command will give
useful information.
> 1. We installed my KIDS patches on an older version of Astronaut and
> it works just fine.
> 2. We updated the GT.M ver 5.3 in the old (working) Astronaut to 5.4,
> and that didn't induce error.
> 3. This error has occurred on more than one machine with the new
> Astronaut.
> 4. Again, the error only seems to occur when coming in through the
> xinetd method. We can't induce the error when starting the code from
> a GTM> prompt.
> 5. We thought this might be a SE linux problem, but we installed the
> new Astronaut on an Ubuntu instance, and we got the same error, so
> that wasn't it.
>
> Conclusions, the JOB command does something during the process of
> creating a new process, and there is a permission issue set
> somewhere. But what confuses me is that I set the xinetd user to be
> root, and that didn't help. I don't know how linux regulates the
> creation of new processes.
[KSB] If something is failing as root, there is the probability that the
directory path doesn't exist. For example, if you define something as
$abc/$def/$ghi/jkl, and if any of the environment variables doesn't
exist, then even a root process will not create a directory where one
doesn't exist.
For example, inetd/xinetd doesn't set $HOME, IIRC. So if your global
directory defines the path to a database file as $HOME/vista.dat and
$HOME doesn't exist, you will get an error - which the error handler
should trap, but I think VistA error handling is less than wholesome
because it uses a mish-mash of standard $ETRAP error handling and MUMPS
platform specific $ZTRAP (which is not the same between GT.M and another
MUMPS implementation).
This is actually one of those situations when the Serenji debugger may be
useful. Unlike traditional debuggers where you reach into the process to
debug it, in Serenji the process calls out to a listener on a client PC.
George James offers free 30 day trial licenses for Serenji as I recall.
I wish I could be more helpful.
Regards
-- Bhaskar
> --
> http://groups.google.com/group/Hardhats
> To unsubscribe, send email to Hardhats+u...@googlegroups.com
>
_____________
--
Nancy Anthracite
GT.M - Rock solid. Lightning fast. Secure. No compromises.
David.
Hi,
I am only going to comment on the above (more on the rest of the
message later, as I dig into it).
For a bit of differences between sh and bash, the following looks ok:
http://www.cs.uleth.ca/~holzmann/C/shells/shellnotes.html
Depending on the distribution, there may be differences in the version
of sh and bash, which is a pain, but needs to be considered.
Re: "source" and "."
Historically, the command was ".", so that has the largest mind-share.
I have rarely run into differences between "." and "source" semantics,
but some shells do not recognize "source".
I have not yet "modernized" my scripting to use "source" exclusively,
but I find that people see it better than the lonely dot.
Cheers,
--ldl
--
---
NOTE: If it is important CALL ME - I may miss email,
which I do NOT normally check on weekends nor on
a regular basis during any other day.
---
LD Landis - N0YRQ - de la tierra del encanto
3960 Schooner Loop, Las Cruces, NM 88012
575-448-1763 N32 21'48.28" W106 46'5.80"
I expect that "source" doesn't work, because you are starting up /bin/sh
instead of "/bin/bash" in the script started by xinetd.
I believe "source" is a command in bash and not in standard posix "sh".
Perhaps Gus Landis could give an opinion on this...
GT.M - Rock solid. Lightning fast. Secure. No compromises.
On 09/19/2010 07:34 PM, kdt...@gmail.com wrote:
> I am very happy to report that Gus Landis found the problem and we are
> back working.
>
> The error was that the xinetd.d specified script was leaving the
> default directory as /. And when we changed it to be where it should
> be, there were permissions problems there.
>
> Lessons learned:
>
> 1. GT.M puts the .mjo files into the current directory, not a
> directory specified by some variable such as HOME etc.
[KSB] Actually, GT.M allows you to explicitly specify the locations of
the .mje and .mjo files for STDERR and STDOUT, as well as a file for
STDIN. A minor current bug - it creates empty .mje and .mjo files in the
current directory as well, if you specify them in another directory.
<...snip...>
> 3. Just editing the xinetd.d files to not effect the change. When I
> wrote earlier that we had changed the user to root and were still
> getting the problem, I didn't realize that, so was further confused as
> to why root was being denied. The "id" line above helps find that
> out. To restart it, I think it is something like this:
> service xinetd restart
[KSB] Remember that this will require root / sudo. On Red Hat and
current Ubuntu releases. On Debian and older Ubuntu releases it would be
/etc/init.d/ssh restart.
-- Bhaskar