Yes, that is exactly what I was looking for. Thank you!

Joe Zbiciak schrieb:
Instead of "myscript.sh", perhaps "bash --rcfile myscript.sh"?

You might need to add "source ~/.bashrc" to the start of your script to get the environment you expect, or wrap it as someone else suggested.

 
--
We sell Spatulas, and that's all!
http://spatula-city.org/~im14u2c/
http://sdk-1600.spatula-city.org/
http://spacepatrol.info/


----- Original Message ----
From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
To: [email protected]
Sent: Thursday, February 14, 2008 3:42:07 AM
Subject: How to execute a script inside of screen?

Greetings!

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.

Regards
Stefan

Bei AOL gibt's jetzt kostenlos eMail für alle! Was es sonst noch umsonst bei AOL gibt, finden Sie hier heraus AOL.de.


-----Inline Attachment Follows-----

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

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

Reply via email to