RE: hyperion cleaning

classic Classic list List threaded Threaded
37 messages Options
12
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: hyperion cleaning

Hercules390 - General mailing list
Hi Ivan,

> Please do a netstat -anp

I restored an original copy of hyperion so, I can do it now.

22:28:31  Stop 3270 TSO

On console:
S SHUTALL
$P JES2
Z EOD
QUIESCE

22::43:12 Stop 3270 CONSOLE

22:45:00 first netstat : http://www.stben.net/hercules/netstat1.txt

22:47:26 QUIT on hyperion console (nothing more on screen than in the log)
        Log : http://www.stben.net/hercules/h1.txt

23:14:00 second netstat : http://www.stben.net/hercules/netstat2.txt

If you wish anything else ask; I'll keep this version for a couple of days.

- Jean-Louis

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: hyperion cleaning

Hercules390 - General mailing list


On 3/9/2017 11:38 PM, 'Jean-Louis Noel' [hidden email] [hercules-390] wrote:

> Hi Ivan,
>
>> Please do a netstat -anp
> I restored an original copy of hyperion so, I can do it now.
>
> 22:28:31  Stop 3270 TSO
>
> On console:
> S SHUTALL
> $P JES2
> Z EOD
> QUIESCE
>
> 22::43:12 Stop 3270 CONSOLE
>
> 22:45:00 first netstat : http://www.stben.net/hercules/netstat1.txt
>
> 22:47:26 QUIT on hyperion console (nothing more on screen than in the log)
> Log : http://www.stben.net/hercules/h1.txt
>
> 23:14:00 second netstat : http://www.stben.net/hercules/netstat2.txt
>
> If you wish anything else ask; I'll keep this version for a couple of days.
>
> - Jean-Louis
>

Jean-Louis,

Between the 1st and 2nd netstat, the process id of the hercules process
has changed.

So it is safe to assume hercules was restarted by you or some automated
process.

--Ivan



[Non-text portions of this message have been removed]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: hyperion cleaning

Hercules390 - General mailing list
In reply to this post by Hercules390 - General mailing list
Hi Ivan,

> So it is safe to assume hercules was restarted by you or some automated
process.

Messages doesn't show any restart but I can show you what remains :

2442 tty1     S      0:00 hercules -f conf/zos.cnf
 2444 tty1     S      0:00 /usr/local/bin/prt1403d /var/ibm/zos/prt/clD/ prt
 2445 tty1     S      0:00 hercules -f conf/zos.cnf
 2446 tty1     S      0:00 /usr/local/bin/prt1403h /var/ibm/zos/prt/clH/ prt
 2447 tty1     S      0:00 hercules -f conf/zos.cnf
 2448 tty1     S      0:00 /usr/local/bin/prt1403j /var/ibm/zos/prt/clJ/ prt
 2449 tty1     S      0:00 hercules -f conf/zos.cnf
 2451 tty1     S      0:00 hercules -f conf/zos.cnf
 2452 tty1     S      0:00 /usr/local/bin/prt1403l /var/ibm/zos/prt/clL/ prt
 2453 tty1     S      0:00 hercules -f conf/zos.cnf
 2454 tty1     S      0:00 /usr/local/bin/prt1403o /var/ibm/zos/prt/clO/ prt
 2455 tty1     S      0:00 hercules -f conf/zos.cnf

And it's impossible to connect using a 3270 emulation to those ghosts.

- Jean-Louis


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: hyperion cleaning

Hercules390 - General mailing list


On 3/10/2017 12:30 AM, 'Jean-Louis Noel' [hidden email] [hercules-390] wrote:

> Hi Ivan,
>
>> So it is safe to assume hercules was restarted by you or some automated
> process.
>
> Messages doesn't show any restart but I can show you what remains :
>
> 2442 tty1     S      0:00 hercules -f conf/zos.cnf
>   2444 tty1     S      0:00 /usr/local/bin/prt1403d /var/ibm/zos/prt/clD/ prt
>   2445 tty1     S      0:00 hercules -f conf/zos.cnf
>   2446 tty1     S      0:00 /usr/local/bin/prt1403h /var/ibm/zos/prt/clH/ prt
>   2447 tty1     S      0:00 hercules -f conf/zos.cnf
>   2448 tty1     S      0:00 /usr/local/bin/prt1403j /var/ibm/zos/prt/clJ/ prt
>   2449 tty1     S      0:00 hercules -f conf/zos.cnf
>   2451 tty1     S      0:00 hercules -f conf/zos.cnf
>   2452 tty1     S      0:00 /usr/local/bin/prt1403l /var/ibm/zos/prt/clL/ prt
>   2453 tty1     S      0:00 hercules -f conf/zos.cnf
>   2454 tty1     S      0:00 /usr/local/bin/prt1403o /var/ibm/zos/prt/clO/ prt
>   2455 tty1     S      0:00 hercules -f conf/zos.cnf
>
> And it's impossible to connect using a 3270 emulation to those ghosts.
>
> - Jean-Louis
>
>
Jean-Louis,

What are those /usr/local/bin/prt1403 processes ?

--Ivan



[Non-text portions of this message have been removed]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: hyperion cleaning

Hercules390 - General mailing list
In reply to this post by Hercules390 - General mailing list
Hi Ivan,

> What are those /usr/local/bin/prt1403 processes ?

#********************************************************************
# Printers                                                          *
#********************************************************************
000E    1403 "| /usr/local/bin/prt1403a /var/ibm/zos/prt/clA/ prt"
000B    1403 "| /usr/local/bin/prt1403c /var/ibm/zos/prt/clC/ prt"
0004    1403 "| /usr/local/bin/prt1403d /var/ibm/zos/prt/clD/ prt"
0005    1403 "| /usr/local/bin/prt1403h /var/ibm/zos/prt/clH/ prt"
0006    1403 "| /usr/local/bin/prt1403j /var/ibm/zos/prt/clJ/ prt"
0007    1403 "| /usr/local/bin/prt1403k /var/ibm/zos/prt/clK/ prt"
0008    1403 "| /usr/local/bin/prt1403l /var/ibm/zos/prt/clL/ prt"
0009    1403 "| /usr/local/bin/prt1403o /var/ibm/zos/prt/clO/ prt"
000A    1403 "| /usr/local/bin/prt1403x /var/ibm/zos/prt/clX/ prt"

- Jean-Louis

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: hyperion cleaning

Hercules390 - General mailing list


On 3/10/2017 8:41 AM, 'Jean-Louis Noel' [hidden email] [hercules-390] wrote:

> Hi Ivan,
>
>> What are those /usr/local/bin/prt1403 processes ?
> #********************************************************************
> # Printers                                                          *
> #********************************************************************
> 000E    1403 "| /usr/local/bin/prt1403a /var/ibm/zos/prt/clA/ prt"
> 000B    1403 "| /usr/local/bin/prt1403c /var/ibm/zos/prt/clC/ prt"
> 0004    1403 "| /usr/local/bin/prt1403d /var/ibm/zos/prt/clD/ prt"
> 0005    1403 "| /usr/local/bin/prt1403h /var/ibm/zos/prt/clH/ prt"
> 0006    1403 "| /usr/local/bin/prt1403j /var/ibm/zos/prt/clJ/ prt"
> 0007    1403 "| /usr/local/bin/prt1403k /var/ibm/zos/prt/clK/ prt"
> 0008    1403 "| /usr/local/bin/prt1403l /var/ibm/zos/prt/clL/ prt"
> 0009    1403 "| /usr/local/bin/prt1403o /var/ibm/zos/prt/clO/ prt"
> 000A    1403 "| /usr/local/bin/prt1403x /var/ibm/zos/prt/clX/ prt"
>
> - Jean-Louis
>
>
Jean-Louis,

I am asking... *WHAT* are those commands ? Where do they come from ?
What do they achieve ?

--Ivan



[Non-text portions of this message have been removed]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: hyperion cleaning

Hercules390 - General mailing list
In reply to this post by Hercules390 - General mailing list
Hi Ivan,

> Where do they come from ?

http://www.timpinkawa.net/hercules/prtspool.html

-Jean-Louis

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: hyperion cleaning

Hercules390 - General mailing list


On 3/10/2017 9:36 AM, 'Jean-Louis Noel' [hidden email] [hercules-390] wrote:
> Hi Ivan,
>
>> Where do they come from ?
> http://www.timpinkawa.net/hercules/prtspool.html
>
> -Jean-Louis
>
>
Jean-Louis,

These are visibly modified versions of the use of prtspool. Where do
these modified versions come from ?

--Ivan



[Non-text portions of this message have been removed]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: hyperion cleaning

Hercules390 - General mailing list
In reply to this post by Hercules390 - General mailing list
Hi Ivan,

> These are visibly modified versions of the use of prtspool.
> Where do these modified versions come from ?

Only the name has been modified and a copy for each printer.

-Jean-Louis

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: hyperion cleaning

Hercules390 - General mailing list


On 3/10/2017 10:21 AM, 'Jean-Louis Noel' [hidden email] [hercules-390] wrote:
> Hi Ivan,
>
>> These are visibly modified versions of the use of prtspool.
>> Where do these modified versions come from ?
> Only the name has been modified and a copy for each printer.
>
> -Jean-Louis
>
>
Jean-Louis

Odd.. Because that's not the command format for the prtspool command !

--Ivan



[Non-text portions of this message have been removed]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: hyperion cleaning

Hercules390 - General mailing list
In reply to this post by Hercules390 - General mailing list
Hi Ivan,

> Odd.. Because that's not the command format for the prtspool command !

Do you like this one better?

On use :

22305 tty1     S+     0:00 hercules -f conf/zos.cnf
22307 tty1     S+     0:00 /usr/local/bin/prtd D /var/ibm/zos/prt/clD/ prt
22308 tty1     S+     0:00 hercules -f conf/zos.cnf
22309 tty1     S+     0:00 /usr/local/bin/prth H /var/ibm/zos/prt/clH/ prt
22310 tty1     S+     0:00 hercules -f conf/zos.cnf
22311 tty1     S+     0:00 /usr/local/bin/prtj J /var/ibm/zos/prt/clJ/ prt
22312 tty1     S+     0:00 hercules -f conf/zos.cnf
22313 tty1     S+     0:00 hercules -f conf/zos.cnf
22314 tty1     S+     0:00 /usr/local/bin/prtk K /var/ibm/zos/prt/clK/ prt
22315 tty1     S+     0:00 hercules -f conf/zos.cnf
22316 tty1     S+     0:00 /usr/local/bin/prtl L /var/ibm/zos/prt/clL/ prt
22317 tty1     S+     0:00 hercules -f conf/zos.cnf
22318 tty1     S+     0:00 /usr/local/bin/prto O /var/ibm/zos/prt/clO/ prt
22319 tty1     S+     0:00 hercules -f conf/zos.cnf
22320 tty1     S+     0:00 hercules -f conf/zos.cnf
22321 tty1     S+     0:00 /usr/local/bin/prta A /var/ibm/zos/prt/clA/ prt

After issuing quit:

22305 tty1     S      0:00 hercules -f conf/zos.cnf
22307 tty1     S      0:00 /usr/local/bin/prtd D /var/ibm/zos/prt/clD/ prt
22308 tty1     S      0:00 hercules -f conf/zos.cnf
22309 tty1     S      0:00 /usr/local/bin/prth H /var/ibm/zos/prt/clH/ prt
22310 tty1     S      0:00 hercules -f conf/zos.cnf
22311 tty1     S      0:00 /usr/local/bin/prtj J /var/ibm/zos/prt/clJ/ prt
22312 tty1     S      0:00 hercules -f conf/zos.cnf
22313 tty1     S      0:00 hercules -f conf/zos.cnf
22314 tty1     S      0:00 /usr/local/bin/prtk K /var/ibm/zos/prt/clK/ prt
22315 tty1     S      0:00 hercules -f conf/zos.cnf
22316 tty1     S      0:00 /usr/local/bin/prtl L /var/ibm/zos/prt/clL/ prt
22317 tty1     S      0:00 hercules -f conf/zos.cnf
22318 tty1     S      0:00 /usr/local/bin/prto O /var/ibm/zos/prt/clO/ prt
22319 tty1     S      0:00 hercules -f conf/zos.cnf

-Jean-Louis

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: hyperion cleaning

Hercules390 - General mailing list


On 3/10/2017 2:22 PM, 'Jean-Louis Noel' [hidden email] [hercules-390] wrote:

> Hi Ivan,
>
>> Odd.. Because that's not the command format for the prtspool command !
> Do you like this one better?
>
> On use :
>
> 22305 tty1     S+     0:00 hercules -f conf/zos.cnf
> 22307 tty1     S+     0:00 /usr/local/bin/prtd D /var/ibm/zos/prt/clD/ prt
> 22308 tty1     S+     0:00 hercules -f conf/zos.cnf
> 22309 tty1     S+     0:00 /usr/local/bin/prth H /var/ibm/zos/prt/clH/ prt
> 22310 tty1     S+     0:00 hercules -f conf/zos.cnf
> 22311 tty1     S+     0:00 /usr/local/bin/prtj J /var/ibm/zos/prt/clJ/ prt
> 22312 tty1     S+     0:00 hercules -f conf/zos.cnf
> 22313 tty1     S+     0:00 hercules -f conf/zos.cnf
> 22314 tty1     S+     0:00 /usr/local/bin/prtk K /var/ibm/zos/prt/clK/ prt
> 22315 tty1     S+     0:00 hercules -f conf/zos.cnf
> 22316 tty1     S+     0:00 /usr/local/bin/prtl L /var/ibm/zos/prt/clL/ prt
> 22317 tty1     S+     0:00 hercules -f conf/zos.cnf
> 22318 tty1     S+     0:00 /usr/local/bin/prto O /var/ibm/zos/prt/clO/ prt
> 22319 tty1     S+     0:00 hercules -f conf/zos.cnf
> 22320 tty1     S+     0:00 hercules -f conf/zos.cnf
> 22321 tty1     S+     0:00 /usr/local/bin/prta A /var/ibm/zos/prt/clA/ prt
>
> After issuing quit:
>
> 22305 tty1     S      0:00 hercules -f conf/zos.cnf
> 22307 tty1     S      0:00 /usr/local/bin/prtd D /var/ibm/zos/prt/clD/ prt
> 22308 tty1     S      0:00 hercules -f conf/zos.cnf
> 22309 tty1     S      0:00 /usr/local/bin/prth H /var/ibm/zos/prt/clH/ prt
> 22310 tty1     S      0:00 hercules -f conf/zos.cnf
> 22311 tty1     S      0:00 /usr/local/bin/prtj J /var/ibm/zos/prt/clJ/ prt
> 22312 tty1     S      0:00 hercules -f conf/zos.cnf
> 22313 tty1     S      0:00 hercules -f conf/zos.cnf
> 22314 tty1     S      0:00 /usr/local/bin/prtk K /var/ibm/zos/prt/clK/ prt
> 22315 tty1     S      0:00 hercules -f conf/zos.cnf
> 22316 tty1     S      0:00 /usr/local/bin/prtl L /var/ibm/zos/prt/clL/ prt
> 22317 tty1     S      0:00 hercules -f conf/zos.cnf
> 22318 tty1     S      0:00 /usr/local/bin/prto O /var/ibm/zos/prt/clO/ prt
> 22319 tty1     S      0:00 hercules -f conf/zos.cnf
>
> -Jean-Louis
>
>
Jean-Louis,

Why do you rename the program ? This is introducing extra confusion...  
Why not simply "| /usr/local/bin/prtspool X <dir> <pgm>" ?

--Ivan




[Non-text portions of this message have been removed]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: hyperion cleaning

Hercules390 - General mailing list
In reply to this post by Hercules390 - General mailing list
Hi Ivan

> Why not simply "| /usr/local/bin/prtspool X <dir> <pgm>" ?

Because I guess that prtspool isn't a reentrant program.

-Jean-Louis

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: hyperion cleaning

Hercules390 - General mailing list
In reply to this post by Hercules390 - General mailing list
On Fri, Mar 10, 2017 at 2:32 PM, Ivan Warren [hidden email]
[hercules-390] <[hidden email]> wrote:

>
>
>
> Why do you rename the program ? This is introducing extra confusion...
> Why not simply "| /usr/local/bin/prtspool X <dir> <pgm>" ?
>
> --Ivan
>
> Although I'm not a mind-reader, I fully assume it's because he doesn't
realize you dont *need* to rename the *executable* in order to have
multiple instances of it running concurrently.


- Maarten
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: hyperion cleaning

Hercules390 - General mailing list
 - - - In [hidden email], <hoes.maarten@...> wrote:

>>> 22305 tty1 S+ 0:00 hercules -f conf/zos.cnf
>>> 22307 tty1 S+ 0:00 /usr/local/bin/prtd D /var/ibm/zos/prt/clD/ prt
>>> 22308 tty1 S+ 0:00 hercules -f conf/zos.cnf
>>> 22309 tty1 S+ 0:00 /usr/local/bin/prth H /var/ibm/zos/prt/clH/ prt
>>> 22310 tty1 S+ 0:00 hercules -f conf/zos.cnf
>>> 22311 tty1 S+ 0:00 /usr/local/bin/prtj J /var/ibm/zos/prt/clJ/ prt
>>> 22312 tty1 S+ 0:00 hercules -f conf/zos.cnf
>>> 22313 tty1 S+ 0:00 hercules -f conf/zos.cnf
>>> 22314 tty1 S+ 0:00 /usr/local/bin/prtk K /var/ibm/zos/prt/clK/ prt
>>> 22315 tty1 S+ 0:00 hercules -f conf/zos.cnf
>>> 22316 tty1 S+ 0:00 /usr/local/bin/prtl L /var/ibm/zos/prt/clL/ prt
>>> 22317 tty1 S+ 0:00 hercules -f conf/zos.cnf
>>> 22318 tty1 S+ 0:00 /usr/local/bin/prto O /var/ibm/zos/prt/clO/ prt
>>> 22319 tty1 S+ 0:00 hercules -f conf/zos.cnf
>>> 22320 tty1 S+ 0:00 hercules -f conf/zos.cnf
>>> 22321 tty1 S+ 0:00 /usr/local/bin/prta A /var/ibm/zos/prt/clA/ prt
> On Fri, Mar 10, 2017 at 2:32 PM, Ivan Warren ivan@... mailto:ivan@...
>[hercules-390] <[hidden email]
>mailto:[hidden email]> wrote:
>> Why do you rename the program ? This is introducing extra confusion...
>>Why not simply "| /usr/local/bin/prtspool X <dir> <pgm>" ?
>> --Ivan
> Although I'm not a mind-reader, I fully assume it's because he doesn't
>realize you dont *need* to rename the *executable* in order to have
>multiple instances of it running concurrently.
>- Maarten

Is he running nine copies of:
hercules -f conf/zos.cnf
hercules -f conf/zos.cnf
hercules -f conf/zos.cnf
hercules -f conf/zos.cnf
hercules -f conf/zos.cnf
hercules -f conf/zos.cnf
hercules -f conf/zos.cnf
hercules -f conf/zos.cnf
hercules -f conf/zos.cnf
at the same time without rename?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: hyperion cleaning

Hercules390 - General mailing list
In reply to this post by Hercules390 - General mailing list
Hi Maarten,

> Although I'm not a mind-reader, I fully assume it's because he doesn't
> realize you dont *need* to rename the *executable* in order to have
> multiple instances of it running concurrently.

If I don't do it there is a problem.
It's with an intreq and a sense but don't ask more precision z/OS doesn't
like it.

-Jean-Louis

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: hyperion cleaning

Hercules390 - General mailing list
In reply to this post by Hercules390 - General mailing list

> Is he running nine copies of:
> hercules -f conf/zos.cnf
> hercules -f conf/zos.cnf
> hercules -f conf/zos.cnf
> hercules -f conf/zos.cnf
> hercules -f conf/zos.cnf
> hercules -f conf/zos.cnf
> hercules -f conf/zos.cnf
> hercules -f conf/zos.cnf
> hercules -f conf/zos.cnf
> at the same time without rename?
>
>
These processes are the consequence of the Piped printer procedure (not
separate instances of hercules)... And could be the root cause of the
problem.

Apparently (but I haven't looked at the source yet), for a piped
printer, hercules forks (probably to establish the pipe file
descriptors), then forks again, the 3rd level process finally doing the
exec() (or one of the variants).

If any of those processes fails to see the pipe on the server side is
closed, the processes could linger forever, holding the file descriptors
initially opened by the server (including the bound sockets in listen mode).

--Ivan



[Non-text portions of this message have been removed]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: hyperion cleaning

Hercules390 - General mailing list
In reply to this post by Hercules390 - General mailing list


On 3/10/2017 5:02 PM, 'Jean-Louis Noel' [hidden email] [hercules-390] wrote:

> Hi Maarten,
>
>> Although I'm not a mind-reader, I fully assume it's because he doesn't
>> realize you dont *need* to rename the *executable* in order to have
>> multiple instances of it running concurrently.
> If I don't do it there is a problem.
> It's with an intreq and a sense but don't ask more precision z/OS doesn't
> like it.
>
> -Jean-Louis
>
>
Jean-Louis,

But we'd LIKE some precision ! Otherwise solving your problem is going
to be more than a challenge than it already is.

A sense, a hercules trace (t+cuu), an error message when you use the
*normal* setup

There is absolutely NO reason whatsoever to not use the same program
name for all piped printer instances.

Jean-Louis.... So far we've been trying to see where the issue lies, but
you are providing only VERY little information at the time, so it
doesn't help. It's better to provide TOO much information than us having
to ask every time for extra information.

--Ivan



[Non-text portions of this message have been removed]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: hyperion cleaning

Hercules390 - General mailing list
In reply to this post by Hercules390 - General mailing list
On Fri, Mar 10, 2017 at 4:47 PM, [hidden email] [hercules-390] <
[hidden email]> wrote:

>
>
> - - - In [hidden email], <hoes.maarten@...> wrote:
> >>> 22305 tty1 S+ 0:00 hercules -f conf/zos.cnf
> >>> 22307 tty1 S+ 0:00 /usr/local/bin/prtd D /var/ibm/zos/prt/clD/ prt
> >>> 22308 tty1 S+ 0:00 hercules -f conf/zos.cnf
> >>> 22309 tty1 S+ 0:00 /usr/local/bin/prth H /var/ibm/zos/prt/clH/ prt
> >>> 22310 tty1 S+ 0:00 hercules -f conf/zos.cnf
> >>> 22311 tty1 S+ 0:00 /usr/local/bin/prtj J /var/ibm/zos/prt/clJ/ prt
> >>> 22312 tty1 S+ 0:00 hercules -f conf/zos.cnf
> >>> 22313 tty1 S+ 0:00 hercules -f conf/zos.cnf
> >>> 22314 tty1 S+ 0:00 /usr/local/bin/prtk K /var/ibm/zos/prt/clK/ prt
> >>> 22315 tty1 S+ 0:00 hercules -f conf/zos.cnf
> >>> 22316 tty1 S+ 0:00 /usr/local/bin/prtl L /var/ibm/zos/prt/clL/ prt
> >>> 22317 tty1 S+ 0:00 hercules -f conf/zos.cnf
> >>> 22318 tty1 S+ 0:00 /usr/local/bin/prto O /var/ibm/zos/prt/clO/ prt
> >>> 22319 tty1 S+ 0:00 hercules -f conf/zos.cnf
> >>> 22320 tty1 S+ 0:00 hercules -f conf/zos.cnf
> >>> 22321 tty1 S+ 0:00 /usr/local/bin/prta A /var/ibm/zos/prt/clA/ prt
> > On Fri, Mar 10, 2017 at 2:32 PM, Ivan Warren ivan@... mailto:ivan@...
> >[hercules-390] <[hidden email]
> >mailto:[hidden email]> wrote:
> >> Why do you rename the program ? This is introducing extra confusion...
> >>Why not simply "| /usr/local/bin/prtspool X <dir> <pgm>" ?
> >> --Ivan
> > Although I'm not a mind-reader, I fully assume it's because he doesn't
> >realize you dont *need* to rename the *executable* in order to have
> >multiple instances of it running concurrently.
> >- Maarten
>
> Is he running nine copies of:
> hercules -f conf/zos.cnf
> hercules -f conf/zos.cnf
> hercules -f conf/zos.cnf
> hercules -f conf/zos.cnf
> hercules -f conf/zos.cnf
> hercules -f conf/zos.cnf
> hercules -f conf/zos.cnf
> hercules -f conf/zos.cnf
> hercules -f conf/zos.cnf
> at the same time without rename?
>


I highly doubt that, but even *if* you would want to run 9 different
instances of Hercules at the same time, you could still easily do it
*without* renaming the executable binary: the magic that makes each
instance unique is in the settings in the different configuration files,
not in the name of the executable. So if you really wanted to, you could
easily do something like this :

hercules -f conf/zos1.cnf
hercules -f conf/zos2.cnf
hercules -f conf/zos3.cnf
hercules -f conf/zos4.cnf
hercules -f conf/zos5.cnf
hercules -f conf/zos6.cnf
hercules -f conf/zos7.cnf
hercules -f conf/zos8.cnf
hercules -f conf/zos9.cnf

Assuming that the actual settings in the all the configuration files
(zos1.cnf - zos9.cnf) differ in all the right places (directories, files,
ports, etc.) to make them unique (and don't conflict with each other).



- Maarten

>
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: hyperion cleaning

Hercules390 - General mailing list
In reply to this post by Hercules390 - General mailing list


On 3/10/2017 2:52 PM, 'Jean-Louis Noel' [hidden email] [hercules-390] wrote:
> Hi Ivan
>
>> Why not simply "| /usr/local/bin/prtspool X <dir> <pgm>" ?
> Because I guess that prtspool isn't a reentrant program.
>
> -Jean-Louis
>
>
Jean-Louis,

every process lives in its own address space so the program it runs
doesn't need to be reentrant to be able to run multiple copies.
Functions in programs only need to be reentrant if they are run by
multiple threads in the same address space, if the function is
recursive, etc... but prtspool is a very simple program (no multi
threading, no recursive calls, etc..)

the Windows/Unix/Linux way of seeing things is VERY different from the
MVS ways !

--Ivan



[Non-text portions of this message have been removed]

12
Loading...