How to run command automatically after running screen?
From:
ZelluX
Subject:
How to run command automatically after running screen?
Date:
Mon, 6 Apr 2009 15:54:20 +0800
Hi, all
I'm trying to write a test script for xen hypervisor, it works like this: 1. Run screen with two windows open 2. On the second window, run _sudo xm create my-domU.conf_, and then run _sudo xm console 2_ to attach to the console of domainU
3. After domainU is started, automatically login and run test scripts on domainU
Now my problem is that how to automatically run scripts after screen is started? And in addition does anybody know how to automatically login in domainU?