screen-users
[Top][All Lists]
Advanced

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

Re: hello,I want to execute a screen in shell, and execute command form


From: Kevin Van Workum
Subject: Re: hello,I want to execute a screen in shell, and execute command form the screen, How can I do it, thanks
Date: Thu, 19 May 2011 17:27:55 -0400

Maybe try :


#!/bin/bash

exec screen -dmS hello
screen -S hello -X "/root/b.sh\n"


2011/5/17 zheng senlin <address@hidden>
fivetrees ~ # cat hello.sh 

#!/bin/bash

exec screen -dmS hello     # I have open a screen in the background
#exec screen -r hello  /root/b.sh   # I want to execute /root/b.sh on the screen hello,How can I do it? thanks



------------------------------------------------------
祝:工作顺利  心情愉悦!

致 礼!
                     郑森林,fivetrees


_______________________________________________
screen-users mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/screen-users




--
Kevin Van Workum, PhD
Sabalcore Computing Inc.
Run your code on 500 processors.
Sign up for a free trial account.
www.sabalcore.com
877-492-8027 ext. 11

reply via email to

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