Discussion:
[hercules-390] Hercules 4.0 Hyperion install
kenaan123@cox.net [hercules-390]
2018-04-02 13:23:06 UTC
Permalink
Hello Mainframers,
TK4 includes Hercules 4.0, but how do I invoke it from UBUNTU terminal command line if not using the TK4 Windows batch file?
Using "sudo hercules" invokes version 3.12.
Thanks,
Kenaan
Mike Stramba mikestramba@gmail.com [hercules-390]
2018-04-02 21:40:33 UTC
Permalink
There is an mvs Bash script in the tk-4 directory.

If the objective is to run a different OS, just copy that file,and
comment out the
"#export HERCULES_RC=scripts/ipl.rc"

and replace it with :
export HERCULES_RC=

and then then change :
#$force_arch hercules $DAEMON -f conf/tk4-.cnf >log/3033.log

$force_arch hercules

If you create a hercules.cnf in that same directory, it will be loaded
instead of the conf/tk4-.cnf. Or use :

$force_arch hercules -f <myconfig.cnf>

Doing it as above, the script file loads the LD_LIBRARY_PATH, for you,
and keeps the (customized) Hyperion 4.0 separate from any other
Hercules you have installed.

Mike
Post by ***@cox.net [hercules-390]
Hello Mainframers,
TK4 includes Hercules 4.0, but how do I invoke it from UBUNTU terminal
command line if not using the TK4 Windows batch file?
Using "sudo hercules" invokes version 3.12.
Thanks,
Kenaan
kenaan123@cox.net [hercules-390]
2018-04-03 13:18:49 UTC
Permalink
Hi Mike,
I'm new to Ubuntu, BASH, etc. and am a little confused.
I don't see any file in the tk-4 directory that contains "#export HERCULES_RC=scripts/ipl.rc".
MVS.bat contains ".\hercules\windows\%ARCH%\hercules %DAEMON% -f conf\tk4-.cnf >log/3033.log"
not "#$force_arch hercules $DAEMON -f conf/tk4-.cnf >log/3033.log".
Mike Stramba mikestramba@gmail.com [hercules-390]
2018-04-03 14:06:15 UTC
Permalink
Kenaan,

There is a very good manual in the doc directory.

There is a file called 'mvs' in the directory that you (should have)
unzipped this file :

http://wotho.ethz.ch/tk4-/tk4-_v1.00_current.zip

*That* is the Bash script file.

*As documented in the user manual on page 7

It starts with :

-----------------------------
#!/bin/bash
#**********************************************************************
#*** ***
#*** Script: mvs ***
#*** ***
#*** Purpose: IPL OS/VS2-MVS 3.8j (TK4- unattended operations) ***
......
-------------------------

** If you are just trying to get the standard Tk4- system running, you
don't need to edit anything. Just change to the tk4- directory and
enter the ./mvs command

And btw, it looks like you tried to paste a jpg/jpeg *image* file to
this mail list (which accepts only text/ascii/ only.

Next time you want to share a (small !) file, just edit the file with
nano, or gedit and use the editor copy /, then your browser paste
(usually Ctr-C / Ctr-v) or RMB(right mouse button- menu).

Mike
Post by ***@cox.net [hercules-390]
Hi Mike,
I'm new to Ubuntu, BASH, etc. and am a little confused.
I don't see any file in the tk-4 directory that contains "#export
HERCULES_RC=scripts/ipl.rc".
MVS.bat contains ".\hercules\windows\%ARCH%\hercules %DAEMON% -f
conf\tk4-.cnf >log/3033.log"
not "#$force_arch hercules $DAEMON -f conf/tk4-.cnf >log/3033.log".
Kevin Monceaux Kevin@RawFedDogs.net [hercules-390]
2018-04-03 14:30:50 UTC
Permalink
Kenaan,
I'm new to Ubuntu, BASH, etc. and am a little confused. I don't see any
file in the tk-4 directory that contains "#export
HERCULES_RC=scripts/ipl.rc".
I do:

% grep 'export HERCULES_RC' *
mvs:export HERCULES_RC=scripts/ipl.rc
start_herc:export HERCULES_RC=scripts/tk4-.rc
MVS.bat contains ".\hercules\windows\%ARCH%\hercules %DAEMON% -f
conf\tk4-.cnf >log/3033.log" not "#$force_arch hercules $DAEMON -f
conf/tk4-.cnf >log/3033.log".
Ubuntu is not Windows. Ignore the mvs.bat file. It's for use on Windows
systems. It's Linux counterpart is the mvs bash script.
--
Kevin
http://www.RawFedDogs.net
http://www.Lassie.xyz
http://www.WacoAgilityGroup.org
Bruceville, TX

What's the definition of a legacy system? One that works!
Errare humanum est, ignoscere caninum.
kenaan123@cox.net [hercules-390]
2018-04-04 12:25:58 UTC
Permalink
Kevin,

When I issue the grep command, I get:

-bash: fg: %: no such job

Thanks,

Kenaan
kenaan123@cox.net [hercules-390]
2018-04-04 12:44:07 UTC
Permalink
Mike,
I feel dumb. How do I navigate to the tk-4 directory?
My home directory only has MAINFRAME, mount_cifs, sudo, and win-shr.
cd .. shows kenaan (my home) and mvs3iso (from an earlier mvs install attempt?).
cd .. shows: bin boot dev....etc.
Is there a Linux for Dummies tutorial you can recommend?
Thanks,
Kenaan
Mike Stramba mikestramba@gmail.com [hercules-390]
2018-04-04 13:17:10 UTC
Permalink
Kenaan,

How did you install tk-4 ?

*Where* did you install it ?

Tons of Linux stuff on the net, google / yahoo, whatever your
preferred search engine.

"cd" changes the current directory. Try "help cd" from a terminal /
command line.

Which Linux distro are you using ? (Ubuntu, Debian etc). Most Linux
commands will run the same on any distro, some times with some slight
variations.

On my Ubuntu system, there is a "Files" icon /app. When run, it then
launches a "windows like explorer", which has a search box where I can
type in 'tk4-', and it will navigate to it.

Or, from a "terminal" / command line try :

cd /
sudo find . -iname "tk4-"

Which gives me :
../home/mike/hercules/tk4-

So I can then enter :

cd /home/mike/hercules/tk4-

Are you more familiar with Windows / Mac ?
If so, why are you running Linux ?

Or is Linux your first computer system ever ???

From a terminal / command line try :

man bash
man man

help
help <one-of-the-commands-shown-by-help>
help cd
help pwd
man man

Mike
Post by ***@cox.net [hercules-390]
Mike,
I feel dumb. How do I navigate to the tk-4 directory?
My home directory only has MAINFRAME, mount_cifs, sudo, and win-shr.
cd .. shows kenaan (my home) and mvs3iso (from an earlier mvs install attempt?).
cd .. shows: bin boot dev....etc.
Is there a Linux for Dummies tutorial you can recommend?
Thanks,
Kenaan
kenaan123@cox.net [hercules-390]
2018-04-05 21:15:18 UTC
Permalink
Mike,
I downloaded the current tk-4 zip and unzipped it in a windows folder. In windows I execute mvs.bat to IPL, then TN#@&) TSO and Hercules HTTP.

I am using Ubuntu 16.04. I don't see any graphical file explorer option. It's all terminal line mode.

The sudo find command gives me tons of error messages permission denied.

I am a windows user.
kerravon86@yahoo.com.au [hercules-390]
2018-04-06 01:39:22 UTC
Permalink
Post by ***@cox.net [hercules-390]
I am using Ubuntu 16.04.
I am a windows user.
When you say that you are a "windows user",
do you mean Microsoft Windows, X-Windows
or WINE?

BFN. Paul.
Mike Stramba mikestramba@gmail.com [hercules-390]
2018-04-06 04:39:45 UTC
Permalink
Kenaan,

You are not being very clear.

Are you saying you have two machines, one Windows, the other Ubuntu ?

And that you have managed to run tk-4 on the Windows machine, and you
are now trying to run it on Ubuntu ?

Or you are running Ubuntu under Windows ?

As for your sudu errors, you can either google sudo or try posting
your errors at https://askubuntu.com

I'm guessing your user id is not in the /etc/sudoers.d/sudoers file.

Was your Ubuntu installed specifically without a gui / desktop / xwindows ?
Again you can get more help on that at https://askubuntu.com

Mike
Post by ***@cox.net [hercules-390]
Mike,
I downloaded the current tk-4 zip and unzipped it in a windows folder. In
I am using Ubuntu 16.04. I don't see any graphical file explorer option.
It's all terminal line mode.
The sudo find command gives me tons of error messages permission denied.
I am a windows user.
Kenaan kenaan123@cox.net [hercules-390]
2018-04-06 09:17:19 UTC
Permalink
Post by ***@yahoo.com.au [hercules-390]
Post by ***@cox.net [hercules-390]
I am using Ubuntu 16.04.
I am a windows user.
When you say that you are a "windows user",
do you mean Microsoft Windows, X-Windows
or WINE?
BFN. Paul.
Microsoft.

I am running tk4 from windows.

I want to know if I can use mvs.bat to run another MVS the same way
using Hercules 4.0 by pointing to the new configuration files, or if
it's better to install Hercules in Ubuntu and invoke the new MVS from
there instead of Windows 10.
kerravon86@yahoo.com.au [hercules-390]
2018-04-06 19:59:49 UTC
Permalink
Post by Kenaan ***@cox.net [hercules-390]
I want to know if I can use mvs.bat to run another
MVS the same way using Hercules 4.0 by pointing
to the new configuration files,
I believe you can run two copies of Hercules
on Windows so long as they are pointing to
different disk files in the configuration, and
I think you need to change CNSLPORT
as well.

BFN. Paul.
Kenaan kenaan123@cox.net [hercules-390]
2018-04-06 09:27:33 UTC
Permalink
Post by Mike Stramba ***@gmail.com [hercules-390]
Kenaan,
You are not being very clear.
Are you saying you have two machines, one Windows, the other Ubuntu ?
And that you have managed to run tk-4 on the Windows machine, and you
are now trying to run it on Ubuntu ?
Or you are running Ubuntu under Windows ?
As for your sudu errors, you can either google sudo or try posting
your errors at https://askubuntu.com
I'm guessing your user id is not in the /etc/sudoers.d/sudoers file.
Was your Ubuntu installed specifically without a gui / desktop /
xwindows ?
Again you can get more help on that at https://askubuntu.com
Mike
Post by ***@cox.net [hercules-390]
Mike,
I downloaded the current tk-4 zip and unzipped it in a windows
folder. In
Post by ***@cox.net [hercules-390]
I am using Ubuntu 16.04. I don't see any graphical file explorer option.
It's all terminal line mode.
The sudo find command gives me tons of error messages permission denied.
I am a windows user.
Mike,

Sorry for the lack of clarity.

I have one Windows PC with the Linux subsystem and Ubuntu running under
Windows.

TK4 MVS is running from the Windows mvs.bat file.

I would like to run another MVS using Hercules 4.0.  Can this be done by
copying and changing mvs.bat to point to the new configuration files in
a Windows

folder, or is it better to install Hercules 4.0 in Ubuntu and invoke the
2nd MVS from there?

A Ubuntu GUI would be really nice.

Continuing my Linux education...

Thanks for the pointers ("man" command. etc.).

Kenaan
Rahim Azizarab rahimazizarab@yahoo.com [hercules-390]
2018-04-06 21:31:31 UTC
Permalink
There is a mvs.should script there.  Do ls -al mvs.should to make sure it is executable if not do sudo chmod +x mvs.sh then from the command line type mvs.sh.   it should start if you have installed x3270 if not sudo apt-get install x3270 and you should be in business. 

Sent from Yahoo Mail on Android

On Fri, Apr 6, 2018 at 4:27 AM, Kenaan ***@cox.net [hercules-390]<hercules-***@yahoogroups.com> wrote:  

On 4/5/2018 9:39 PM, Mike Stramba ***@gmail.com [hercules-390] wrote:

 
Kenaan,

You are not being very clear.

Are you saying you have two machines, one Windows, the other Ubuntu ?

And that you have managed to run tk-4 on the Windows machine, and you
are now trying to run it on Ubuntu ?

Or you are running Ubuntu under Windows ?

As for your sudu errors, you can either google sudo or try posting
your errors at https://askubuntu.com

I'm guessing your user id is not in the /etc/sudoers.d/sudoers file.

Was your Ubuntu installed specifically without a gui / desktop / xwindows ?
Again you can get more help on that at https://askubuntu.com

Mike
Mike,
I downloaded the current tk-4 zip and unzipped it in a windows folder. In
I am using Ubuntu 16.04. I don't see any graphical file explorer option.
It's all terminal line mode.
The sudo find command gives me tons of error messages permission denied.
I am a windows user.
Mike,

Sorry for the lack of clarity.

I have one Windows PC with the Linux subsystem and Ubuntu running under Windows.

TK4 MVS is running from the Windows mvs.bat file.

I would like to run another MVS using Hercules 4.0.  Can this be done by copying and changing mvs.bat to point to the new configuration files in a Windows


folder, or is it better to install Hercules 4.0 in Ubuntu and invoke the 2nd MVS from there?

A Ubuntu GUI would be really nice.

Continuing my Linux education...

Thanks for the pointers ("man" command. etc.).

Kenaan

#yiv7504027377 #yiv7504027377 -- #yiv7504027377ygrp-mkp {border:1px solid #d8d8d8;font-family:Arial;margin:10px 0;padding:0 10px;}#yiv7504027377 #yiv7504027377ygrp-mkp hr {border:1px solid #d8d8d8;}#yiv7504027377 #yiv7504027377ygrp-mkp #yiv7504027377hd {color:#628c2a;font-size:85%;font-weight:700;line-height:122%;margin:10px 0;}#yiv7504027377 #yiv7504027377ygrp-mkp #yiv7504027377ads {margin-bottom:10px;}#yiv7504027377 #yiv7504027377ygrp-mkp .yiv7504027377ad {padding:0 0;}#yiv7504027377 #yiv7504027377ygrp-mkp .yiv7504027377ad p {margin:0;}#yiv7504027377 #yiv7504027377ygrp-mkp .yiv7504027377ad a {color:#0000ff;text-decoration:none;}#yiv7504027377 #yiv7504027377ygrp-sponsor #yiv7504027377ygrp-lc {font-family:Arial;}#yiv7504027377 #yiv7504027377ygrp-sponsor #yiv7504027377ygrp-lc #yiv7504027377hd {margin:10px 0px;font-weight:700;font-size:78%;line-height:122%;}#yiv7504027377 #yiv7504027377ygrp-sponsor #yiv7504027377ygrp-lc .yiv7504027377ad {margin-bottom:10px;padding:0 0;}#yiv7504027377 #yiv7504027377actions {font-family:Verdana;font-size:11px;padding:10px 0;}#yiv7504027377 #yiv7504027377activity {background-color:#e0ecee;float:left;font-family:Verdana;font-size:10px;padding:10px;}#yiv7504027377 #yiv7504027377activity span {font-weight:700;}#yiv7504027377 #yiv7504027377activity span:first-child {text-transform:uppercase;}#yiv7504027377 #yiv7504027377activity span a {color:#5085b6;text-decoration:none;}#yiv7504027377 #yiv7504027377activity span span {color:#ff7900;}#yiv7504027377 #yiv7504027377activity span .yiv7504027377underline {text-decoration:underline;}#yiv7504027377 .yiv7504027377attach {clear:both;display:table;font-family:Arial;font-size:12px;padding:10px 0;width:400px;}#yiv7504027377 .yiv7504027377attach div a {text-decoration:none;}#yiv7504027377 .yiv7504027377attach img {border:none;padding-right:5px;}#yiv7504027377 .yiv7504027377attach label {display:block;margin-bottom:5px;}#yiv7504027377 .yiv7504027377attach label a {text-decoration:none;}#yiv7504027377 blockquote {margin:0 0 0 4px;}#yiv7504027377 .yiv7504027377bold {font-family:Arial;font-size:13px;font-weight:700;}#yiv7504027377 .yiv7504027377bold a {text-decoration:none;}#yiv7504027377 dd.yiv7504027377last p a {font-family:Verdana;font-weight:700;}#yiv7504027377 dd.yiv7504027377last p span {margin-right:10px;font-family:Verdana;font-weight:700;}#yiv7504027377 dd.yiv7504027377last p span.yiv7504027377yshortcuts {margin-right:0;}#yiv7504027377 div.yiv7504027377attach-table div div a {text-decoration:none;}#yiv7504027377 div.yiv7504027377attach-table {width:400px;}#yiv7504027377 div.yiv7504027377file-title a, #yiv7504027377 div.yiv7504027377file-title a:active, #yiv7504027377 div.yiv7504027377file-title a:hover, #yiv7504027377 div.yiv7504027377file-title a:visited {text-decoration:none;}#yiv7504027377 div.yiv7504027377photo-title a, #yiv7504027377 div.yiv7504027377photo-title a:active, #yiv7504027377 div.yiv7504027377photo-title a:hover, #yiv7504027377 div.yiv7504027377photo-title a:visited {text-decoration:none;}#yiv7504027377 div#yiv7504027377ygrp-mlmsg #yiv7504027377ygrp-msg p a span.yiv7504027377yshortcuts {font-family:Verdana;font-size:10px;font-weight:normal;}#yiv7504027377 .yiv7504027377green {color:#628c2a;}#yiv7504027377 .yiv7504027377MsoNormal {margin:0 0 0 0;}#yiv7504027377 o {font-size:0;}#yiv7504027377 #yiv7504027377photos div {float:left;width:72px;}#yiv7504027377 #yiv7504027377photos div div {border:1px solid #666666;min-height:62px;overflow:hidden;width:62px;}#yiv7504027377 #yiv7504027377photos div label {color:#666666;font-size:10px;overflow:hidden;text-align:center;white-space:nowrap;width:64px;}#yiv7504027377 #yiv7504027377reco-category {font-size:77%;}#yiv7504027377 #yiv7504027377reco-desc {font-size:77%;}#yiv7504027377 .yiv7504027377replbq {margin:4px;}#yiv7504027377 #yiv7504027377ygrp-actbar div a:first-child {margin-right:2px;padding-right:5px;}#yiv7504027377 #yiv7504027377ygrp-mlmsg {font-size:13px;font-family:Arial, helvetica, clean, sans-serif;}#yiv7504027377 #yiv7504027377ygrp-mlmsg table {font-size:inherit;font:100%;}#yiv7504027377 #yiv7504027377ygrp-mlmsg select, #yiv7504027377 input, #yiv7504027377 textarea {font:99% Arial, Helvetica, clean, sans-serif;}#yiv7504027377 #yiv7504027377ygrp-mlmsg pre, #yiv7504027377 code {font:115% monospace;}#yiv7504027377 #yiv7504027377ygrp-mlmsg * {line-height:1.22em;}#yiv7504027377 #yiv7504027377ygrp-mlmsg #yiv7504027377logo {padding-bottom:10px;}#yiv7504027377 #yiv7504027377ygrp-msg p a {font-family:Verdana;}#yiv7504027377 #yiv7504027377ygrp-msg p#yiv7504027377attach-count span {color:#1E66AE;font-weight:700;}#yiv7504027377 #yiv7504027377ygrp-reco #yiv7504027377reco-head {color:#ff7900;font-weight:700;}#yiv7504027377 #yiv7504027377ygrp-reco {margin-bottom:20px;padding:0px;}#yiv7504027377 #yiv7504027377ygrp-sponsor #yiv7504027377ov li a {font-size:130%;text-decoration:none;}#yiv7504027377 #yiv7504027377ygrp-sponsor #yiv7504027377ov li {font-size:77%;list-style-type:square;padding:6px 0;}#yiv7504027377 #yiv7504027377ygrp-sponsor #yiv7504027377ov ul {margin:0;padding:0 0 0 8px;}#yiv7504027377 #yiv7504027377ygrp-text {font-family:Georgia;}#yiv7504027377 #yiv7504027377ygrp-text p {margin:0 0 1em 0;}#yiv7504027377 #yiv7504027377ygrp-text tt {font-size:120%;}#yiv7504027377 #yiv7504027377ygrp-vital ul li:last-child {border-right:none !important;}#yiv7504027377
Mike Stramba mikestramba@gmail.com [hercules-390]
2018-04-06 22:10:09 UTC
Permalink
I would like to run another MVS using Hercules 4.0. Can this be done by
copying and changing mvs.bat to point to the new configuration files in
a Windows
folder, or is it better to install Hercules 4.0 in Ubuntu and invoke the
2nd MVS from there?
The simplest way is to just install / extract the zip to another folder.

That is because (without "messing around") two simultaneous running
MVS's can't (easily) share the dasd (virtual disk files).

The dasd paths in tk4-.cnf are all relative paths.

Even with separate directories /installs, you will need to change the
CNSLPORT for each additional copy you make :

e.g.

#CNSLPORT ${CNSLPORT:=3270}

PANTITLE "tk4 3701"

CNSLPORT 3701

"PANTITLE" is optional, but I find it handy for "labelling" the terminal.

Mike
winkelmann@id.ethz.ch [hercules-390]
2018-04-07 06:46:42 UTC
Permalink
Hi Mike, Kenaan
Post by Mike Stramba ***@gmail.com [hercules-390]
CNSLPORT ${CNSLPORT:=3270}
Just a quick note on the above syntax, which can be found in almost every config file parameter used in TK4-:


Defining CNSLPORT ${CNSLPORT:=3270} instead of simply using CNSLPORT 3270 causes Hercules to check for the presence of an environment variable named CNSLPORT, and to use its value if the variable exists or to use 3270 if it doesn't exist.


The reason for using this syntax all over the place in TK4- is to provide a means of changing parameter values without having to edit the config files by simply setting the respective environment variables before calling the mvs or start_herc scripts.


So, on Linux, to start TK4- using port 3271 for console connections you could simply enter


CNSLPORT=3271 ./mvs


or on Windows


set CNSLPORT=3271
mvs


I strongly recommend using the parameterization that way instead of editing config files. It will make life definitely easier when it comes to installing TK4- Updates (and yes, there still will be updates, even though I've slowed down a bit).


Cheers
JÃŒrgen
Post by Mike Stramba ***@gmail.com [hercules-390]
I would like to run another MVS using Hercules 4.0. Can this be done by
copying and changing mvs.bat to point to the new configuration files in
a Windows
folder, or is it better to install Hercules 4.0 in Ubuntu and invoke the
2nd MVS from there?
The simplest way is to just install / extract the zip to another folder.

That is because (without "messing around") two simultaneous running
MVS's can't (easily) share the dasd (virtual disk files).

The dasd paths in tk4-.cnf are all relative paths.

Even with separate directories /installs, you will need to change the
CNSLPORT for each additional copy you make :

e.g.

#CNSLPORT ${CNSLPORT:=3270}

PANTITLE "tk4 3701"

CNSLPORT 3701

"PANTITLE" is optional, but I find it handy for "labelling" the terminal.

Mike

Loading...