On Thu, Feb 14, 2008 at 04:42:07AM -0500, [EMAIL PROTECTED] wrote:
> How can I execute a shell script inside of screen and keep the shell
> open? If I do something like
> 
> screen -dmS myscreen ./myscript.sh
> 
> the screen session is terminated after "myscript.sh" finishes. Using
> the "zombie" option in screenrc, I can at least see the output after
> reattaching. But what I really want is to keep an interactive shell as
> if I would start screen without any argument. 

You could make sure that myscript.sh runs 'exec bash' before
terminating, or just wrap myscript.sh in myscript-wrapper.sh, which
merely does

#!/bin/sh
./myscript.sh
exec bash

Is that what you're looking for?
--Phil

-- 
Phil Snowberger -- [EMAIL PROTECTED]
Department of Computer Science and Engineering
University of Notre Dame


_______________________________________________
screen-users mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/screen-users

Reply via email to