Discussion:
[hercules-390] Auto IPL Hercules on Ubuntu system
ahngb4nond2fjs4iv3chtuacfjmf4dgzileuxli7@yahoo.com [hercules-390]
2017-08-25 08:53:52 UTC
Permalink
Is it possible to setup a crontab entry to auto IPL Hercules at system startup ?
Thanks...Dani Kalmar
kerravon86@yahoo.com.au [hercules-390]
2017-08-25 09:03:22 UTC
Permalink
Post by ***@yahoo.com [hercules-390]
Is it possible to setup a crontab entry
crontab is designed for things to be
run at a certain time every day, not
once at system startup. (as far as
I know). I don't remember the name
of the init script to be run at system
startup time.
Post by ***@yahoo.com [hercules-390]
to auto IPL Hercules at system startup ?
In addition, you don't IPL Hercules.
You IPL some other system like
MVS *under* Hercules.

And yes, it is possible to automatically
IPL MVS under Hercules from a script.

I actually use a "runmvs" script which
takes some JCL and automatically
IPLs MVS then submits that JCL
deck, and then automatically quits.

BFN. Paul.
Ivan Warren ivan@vmfacility.fr [hercules-390]
2017-08-25 09:14:17 UTC
Permalink
Post by ***@yahoo.com.au [hercules-390]
crontab is designed for things to be
run at a certain time every day, not
once at system startup. (as far as
I know). I don't remember the name
of the init script to be run at system
startup time.
Granted...
Post by ***@yahoo.com.au [hercules-390]
Post by ***@yahoo.com [hercules-390]
to auto IPL Hercules at system startup ?
In addition, you don't IPL Hercules.
You IPL some other system like
MVS *under* Hercules.
You do IPL hercules (like you'd IPL a 4381... )...

Maybe he meant he wants to IPL hercules to run s390x ubuntu ?

--Ivan



[Non-text portions of this message have been removed]
kerravon86@yahoo.com.au [hercules-390]
2017-08-25 15:05:10 UTC
Permalink
Post by Ivan Warren ***@vmfacility.fr [hercules-390]
Post by ***@yahoo.com.au [hercules-390]
crontab is designed for things to be
run at a certain time every day, not
once at system startup. (as far as
I know).
It appears that I was wrong about this,
and crontab can in fact accept
reboot-time commands.
Post by Ivan Warren ***@vmfacility.fr [hercules-390]
Post by ***@yahoo.com.au [hercules-390]
Post by ***@yahoo.com [hercules-390]
to auto IPL Hercules at system startup ?
In addition, you don't IPL Hercules.
You IPL some other system like
MVS *under* Hercules.
You do IPL hercules (like you'd IPL a 4381... )...
I thought more about this. Hercules
is typically a Windows etc executable,
and you do not ever IPL Windows
executables, you run them, or invoke
them.

After you have invoked Hercules, you
are then in a position to IPL (using
the "ipl" subcommand of the now-running
Hercules executable) an *emulated* 4381,
if that is what you have defined in your
config file (or other ways of setting the
CPU type). And if MVS is on the emulated
IPL disk, then you can also say that you
are IPLing MVS.

BFN. Paul.
Guy Sotomayor Jr ggs@shiresoft.com [hercules-390]
2017-08-25 16:02:00 UTC
Permalink
This post might be inappropriate. Click to display it.
bert.lindeman@gmail.com [hercules-390]
2017-08-25 10:13:08 UTC
Permalink
Hi Dani,

Not really hercules, but on linux look at
man 5 crontab
It explains..... look for @reboot

Bert


---In hercules-***@yahoogroups.com, <***@...> wrote :

Is it possible to setup a crontab entry to auto IPL Hercules at system startup ?
Thanks...Dani Kalmar
ahngb4nond2fjs4iv3chtuacfjmf4dgzileuxli7@yahoo.com [hercules-390]
2017-08-25 10:27:35 UTC
Permalink
I already have a script the automates starting Hercules and IPL z/OS. At the moment I have shortcut to this script on the Ubuntu desktop and I double-click it manually
to start Hercules and z/OS.
So are you saying that placing this script in crontab as a @reboot command will do the trick ?
Bert Lindeman bert.lindeman@gmail.com [hercules-390]
2017-08-25 10:33:01 UTC
Permalink
Yes,

as long as the environment is the same, think of PATH etc.

3 examples of a crontab of mine:
@reboot echo "Running from cron with \"@reboot\" indicator $(date)"
@reboot sleep 60s ; /usr/local/bin/showactivity
@reboot sleep 20s ; echo mmc0 >
/sys/class/leds/led1\:green\:brick-status/trigger

showactivity is a bash script. Note the complete path to the script.

Bert

Op 2017-08-25 om 12:27 schreef
Post by ***@yahoo.com [hercules-390]
I already have a script the automates starting Hercules and IPL z/OS.
At the moment I have shortcut to this script on the Ubuntu desktop and
I double-click it manually
to start Hercules and z/OS.
command will do the trick ?
---
Deze e-mail is gecontroleerd op virussen door AVG.
http://www.avg.com
Grant Taylor gtaylor@tnetconsulting.net [hercules-390]
2017-08-25 17:39:01 UTC
Permalink
Post by ***@yahoo.com [hercules-390]
Is it possible to setup a crontab entry to auto IPL Hercules at system startup ?
I'd suggest running Hercules under screen or tmux. Something that will
allow you to get back to the actual console if you want / need to.
--
Grant. . . .
unix || die



[Non-text portions of this message have been removed]
Ivan Warren ivan@vmfacility.fr [hercules-390]
2017-08-25 17:47:30 UTC
Permalink
Post by Grant Taylor ***@tnetconsulting.net [hercules-390]
Post by ***@yahoo.com [hercules-390]
Is it possible to setup a crontab entry to auto IPL Hercules at system startup ?
I'd suggest running Hercules under screen or tmux. Something that will
allow you to get back to the actual console if you want / need to.
I second that one !

--Ivan



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

Loading...