screen-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to execute a script inside of screen?


From: Stefan Mischke
Subject: Re: How to execute a script inside of screen?
Date: Thu, 14 Feb 2008 20:01:13 +0100
User-agent: Thunderbird 2.0.0.9 (Windows/20071031)

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: "address@hidden" <address@hidden>
To: address@hidden
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
address@hidden
http://lists.gnu.org/mailman/listinfo/screen-users


reply via email to

[Prev in Thread] Current Thread [Next in Thread]