Link to home
Start Free TrialLog in
Avatar of Mark Dorsey
Mark Dorsey

asked on

Schedule she'll script to run in batch mode on unix using a detach screen

I need to Schedule she'll script to run in batch mode on unix using a detach screen.  I want the script to run in a screen I can reattach to later..  I need command to start script in screen.  I will schedule this script to run daily.
Avatar of Hanno P.S.
Hanno P.S.
Flag of Germany image

If you start a script via "cron" it will run without screen anyway.
Any output it generates will be collected and emailed to the owner of the cronta it has been started from.

If this does not answer your question, explain what you want to do exactly.
Avatar of noci
noci

check out the screen   https://www.gnu.org/software/screen/   package, then you can start a detached session.
It is also possible to connect to that sesion from an interactive session...
screen -d -m <the ccommand>...

Could be run from cron. (job scheduler).
For more info use:   man screen
Any result or follow up Q?
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.