[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Spawning commands inside interactive shells in new windows in a scriptab
From: |
László Monda |
Subject: |
Spawning commands inside interactive shells in new windows in a scriptable fashion |
Date: |
Wed, 16 Jul 2008 13:50:06 +0200 |
Hi List,
I've already sent this mail to the list some days ago, but seeing the
archives it seems to me that it hasn't arrived, so I resend it this
time.
I want to open new windows that run specific commands within interactive
shells in a scriptable fashion.
Let's say I want to run `du --max-depth=1 /` in a new screen window
within an interactive shell and I want to do it from a script.
Let's consider the following:
$ screen screen bash -i -c du --max-depth=1 /
I'd expect this to work, but it doesn't.
On the other hand it works:
$ screen screen bash -i -c read
But bash closes right after pressing enter. I guess bash has trouble
handling -i and -c together and it behaves non-interactively in this
case.
Also, the status line showing the windows doesn't get updated, only
after I explicitly change window.
I'd really appreciate your insights.
Thanks in advance!
--
Laci <http://monda.hu>
signature.asc
Description: This is a digitally signed message part
- Spawning commands inside interactive shells in new windows in a scriptable fashion, László Monda, 2008/07/17
- Spawning commands inside interactive shells in new windows in a scriptable fashion,
László Monda <=
- Re: Spawning commands inside interactive shells in new windows in a scriptable fashion, Mark Eichin, 2008/07/17
- Re: Spawning commands inside interactive shells in new windows in a scriptable fashion, László Monda, 2008/07/21
- Re: Spawning commands inside interactive shells in new windows in a scriptable fashion, Gokdeniz Karadag, 2008/07/22
- Message not available
- Re: Spawning commands inside interactive shells in new windows in a scriptable fashion, László Monda, 2008/07/23
- Re: Spawning commands inside interactive shells in new windows in a scriptable fashion, Gokdeniz Karadag, 2008/07/23
- Re: Spawning commands inside interactive shells in new windows in a scriptable fashion, László Monda, 2008/07/23