Never used byobu till now, I'm running Ubuntu 10.10 and just tested and it
seems to process both files: .screenrc and .byobu/windows

$ cat .byobu/windows
screen -t NS0
screen -t NS1
stuff "~/test.sh\015"
$

FYI: you can have many stuff lines as you want and there are others commands
such as chdir to change the directory, etc.

On Mon, Nov 15, 2010 at 7:33 PM, Thomas Manson
<dev.mansontho...@gmail.com>wrote:

> Oki,
>
>   In fact I was using byobu windows (.byobu/windows) configuration file,
> which in manpage says that the configuration is like screenrc.
>
>   If I move my commandes in .screenrc, will this work with byobu ?
>
> Thomas;
>
>
>
>
> On Mon, Nov 15, 2010 at 03:03, Chris <chris-...@pgh4.com> wrote:
>
>> Stuff is a screen command and the 2 lines I gave you were meant for your
>> .screenrc file.
>>
>>     Stuff is used to stuff the given string in the input buffer of the
>> current window as if you typed it in at the prompt.
>>
>> screen -t NS1                # Open a new window
>> stuff "~/test.sh\015"       # Call you script which ssh's to remote box.
>>
>>
>> Here is quick example.  Create the 2 files below then run screen calling
>> the test .screenrc file.
>>
>> $ cat test.sh
>> echo test123
>> $
>>
>>
>> $ cat .screenrctest
>> #caption unrelated to this example, just displays open screens at bottom
>> of term
>> caption always "%{kW} %=%{.kG} %H:%{.kY}%1` %{.bW} %-w%{.rW}%f%n %t%{-}%+w
>> %{.kG} %D %m/%d %C%a %{.Wk} %u%="
>> screen -t NS0
>> screen -t NS1
>> stuff "~/test.sh\015"
>>
>> $
>>
>>
>> $ screen -c .screenrctest
>>
>>
>>
>> On Sun, Nov 14, 2010 at 6:30 PM, Thomas Manson <
>> dev.mansontho...@gmail.com> wrote:
>>
>>> Hi Chris,
>>>
>>> I don't understand the "stuff" thing in the command....
>>>
>>> If I let it, I get  a command not found, and If I remove it, and just put
>>> "/path/to/command\015"
>>>
>>> I get the same command not found...
>>>
>>> Thanks for helping !
>>> Thomas.
>>>
>>>
>>> On Sun, Nov 14, 2010 at 18:06, Chris <chris-...@pgh4.com> wrote:
>>>
>>>> Do this:
>>>>
>>>> screen -t NS0
>>>> stuff "/home/thomas/scripts/connectToServer/ns0\015"
>>>>
>>>> Add the "\015" which is the octal code for a Carriage Return.
>>>>
>>>>
>>>> On Fri, Nov 12, 2010 at 6:43 PM, Thomas Manson <
>>>> dev.mansontho...@gmail.com> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>>
>>>>>  I'm configuring screen to open several windows, and automatically
>>>>> connect to some servers (key authentication).
>>>>>
>>>>> I've edited the screen configuration file to this :
>>>>>
>>>>> screen -t NS0  1 /home/thomas/scripts/connectToServer/ns0
>>>>> screen -t NS1  2 /home/thomas/scripts/connectToServer/ns1
>>>>> screen -t SD1  3 /home/thomas/scripts/connectToServer/sd1
>>>>> screen -t SD2  4 /home/thomas/scripts/connectToServer/sd2
>>>>> screen -t DELL 5 /home/thomas/scripts/connectToServer/dell
>>>>> screen -t DEV  6 /home/thomas/scripts/connectToServer/dev
>>>>> screen -t CRF  7 /home/thomas/scripts/connectToServer/crf
>>>>> screen -t box  8 /home/thomas/scripts/connectToServer/box
>>>>> screen -t apps 9 /home/thomas/scripts/connectToServer/apps
>>>>> screen -t HOME 0 shell
>>>>>
>>>>>
>>>>> But if a connection happend to close, the associated window close as
>>>>> well.
>>>>>
>>>>> How can I prevent this behaviour (ie windows remains open and I can see
>>>>> " connection lost with server...")
>>>>>
>>>>> Thanks !
>>>>> Thomas.
>>>>>
>>>>> _______________________________________________
>>>>> screen-users mailing list
>>>>> screen-users@gnu.org
>>>>> http://lists.gnu.org/mailman/listinfo/screen-users
>>>>>
>>>>>
>>>>
>>>> _______________________________________________
>>>> screen-users mailing list
>>>> screen-users@gnu.org
>>>> http://lists.gnu.org/mailman/listinfo/screen-users
>>>>
>>>>
>>>
>>
>> _______________________________________________
>> screen-users mailing list
>> screen-users@gnu.org
>> http://lists.gnu.org/mailman/listinfo/screen-users
>>
>>
>
_______________________________________________
screen-users mailing list
screen-users@gnu.org
http://lists.gnu.org/mailman/listinfo/screen-users

Reply via email to