|
On Sep 8, 2021, at 4:42 AM, Patrik Schindler <poc@xxxxxxxxxx> wrote:<midrange-l@xxxxxxxxxxxxxxxxxx>:
Hello Don,
Am 08.09.2021 um 09:55 schrieb Don Brown via MIDRANGE-L
can
This works but I have found if there are many messages to be written I
sent to the job log (or the qsh session if run interactively) ?get an error
curl: (7) Failed to connect ... connection refused
This message appears in the joblog
Yes, this is clearly the other side not accepting (another) connection.
My call looks like this;
callp(e) QCmdExc(Cmd:CmdLen);
if %error();
I do get an error but how do I retrieve the actual error that is being
meaningful, sometimes, it's just "if not 0, then error".
In Unix, shell commands give return values. Sometimes, they're
ways. It can be obtained from the environment variable $?:
After running a shell command, the return value can be used in multiple
Tried the basic syntax out with 7.2; works.
true; echo $?
=> 0
false; echo $?
=> 1
(True and false are shell commands just returning 0 or 1.)
So, in theory you can do a
until curl …; sleep 1; done
This makes curl run again and again through a loop until it returns 0.
return value is passed back to the caller. Maybe others can chime in here?
I have no experience with running UNIX commands in qsh and how/if the
this error I was going to retry sending the post or perhaps put a short
I think the server is just having a hard time keeping up so if I get
request is a good idea at all. :-)
I wonder if hammering each syslog message to Greylog in a separate http
Sorry.
Appreciate any suggestions
I've not yet played with Greylog, so I can't give you an opinion here.
list
:wq! PoC
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxxquestions.
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
link: https://amazon.midrange.com
Help support midrange.com by shopping at amazon.com with our affiliate
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.