hi, i am on AIX 5.3. I would like to write scripts that initiate or reattach to a screen session to run some commands either from unix or Universe. Can anyone assist me with a with a wuick primer on this. I can attach or initiate a screen manually and then run the commands but I would like to automate this such that i run a single command for all.
Are you talking about GNU screen available from the AIX toolbox for linux?
What is the manual process you are using at the moment?
I got a small program like
cd /globus/maint/lesmaint1/bnk.run
uv GSS.EXCEPTION
where after the user logs on, change directory and initiate a universe program.
so i want to be ablle to run this in a ascreen in case connection drops.
I have a number of small tasks like this
---------- Post updated at 10:41 AM ---------- Previous update was at 10:40 AM ----------
i am talking about GNU screen yes
You can create a file ~/.screenrc in which you'll write the commands you want to launch at screen startup:
screen -t title command
screen -t title ~/bin/script
where ~/bin/script
can contain:
cd /globus/maint/lesmaint1/bnk.run
uv GSS.EXCEPTION
for example
This is not something i wish to run at screen startup but after the screen has been initiated and other commands/scripts as well.
I been trying variations of
screen -S TINASHE -p 0 -X stuff 'gsscheckunauth.sh^M'
---------- Post updated at 02:25 PM ---------- Previous update was at 02:09 PM ----------
is there a simple way of sending ENTER to a screen?
Try this then: screen -S sessionname -X screen command