Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
trying to generate a terminal tab (or window) for each process ...
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
qwertmon...@syberianoutpost.ru  
View profile  
 More options Oct 25 2012, 6:33 pm
Newsgroups: comp.unix.shell
From: qwertmon...@syberianoutpost.ru
Date: Thu, 25 Oct 2012 22:33:17 +0000 (UTC)
Local: Thurs, Oct 25 2012 6:33 pm
Subject: trying to generate a terminal tab (or window) for each process ...
 I have some bash script that starts a number of python programs, a la:
~
for l in $(ls *.py); do
 ( python $l & );
done
~
 the thing is that each program generates some output and if you sun it this
way all the output will show up on the same screen, so, I would like to have
each of the processes in its own terminal tab (or window) of an already open
(or to be opened) bash shell
~
 What am I missing in that piece of code?
~
 thanks
 lbrtchx
 comp.unix.shell: trying to generate a terminal tab (or window) for each
process ...

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris F.A. Johnson  
View profile  
 More options Oct 25 2012, 6:48 pm
Newsgroups: comp.unix.shell
From: "Chris F.A. Johnson" <cfajohn...@gmail.com>
Date: Thu, 25 Oct 2012 18:41:26 -0400
Local: Thurs, Oct 25 2012 6:41 pm
Subject: Re: trying to generate a terminal tab (or window) for each process ...

On 2012-10-25, qwertmon...@syberianoutpost.ru wrote:
>  I have some bash script that starts a number of python programs, a la:
> ~
> for l in $(ls *.py); do

   Not only is ls unnecessary, but it will break your script if any filenames
   contain whitespace or other pathological characters. Use parameter expansion
   directly:

for l in *.py

>  ( python $l & );
> done
> ~
>  the thing is that each program generates some output and if you sun it this
> way all the output will show up on the same screen, so, I would like to have
> each of the processes in its own terminal tab (or window) of an already open
> (or to be opened) bash shell
> ~
>  What am I missing in that piece of code?

    xterm -e python "$1" &

--
   Chris F.A. Johnson, author           <http://shell.cfajohnson.com/>
   ===================================================================
   Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
   Pro Bash Programming: Scripting the GNU/Linux Shell (2009, Apress)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
qwertmon...@syberianoutpost.ru  
View profile  
 More options Oct 26 2012, 6:29 pm
Newsgroups: comp.unix.shell
From: qwertmon...@syberianoutpost.ru
Date: Fri, 26 Oct 2012 22:29:24 +0000 (UTC)
Local: Fri, Oct 26 2012 6:29 pm
Subject: trying to generate a terminal tab (or window) for each process ...
~
> xterm -e python "$1" &

~
 it worked, but it opened different windows for each of the processes
~
 How do you open all windows as added tabs of the window from which you started
all other processes?
~
 thanks
 lbrtchx

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris F.A. Johnson  
View profile  
 More options Oct 26 2012, 8:03 pm
Newsgroups: comp.unix.shell
From: "Chris F.A. Johnson" <cfajohn...@gmail.com>
Date: Fri, 26 Oct 2012 19:52:49 -0400
Local: Fri, Oct 26 2012 7:52 pm
Subject: Re: trying to generate a terminal tab (or window) for each process ...

On 2012-10-26, qwertmon...@syberianoutpost.ru wrote:
> ~
>> xterm -e python "$1" &
> ~
>  it worked, but it opened different windows for each of the processes
> ~
>  How do you open all windows as added tabs of the window from which you started
> all other processes?

   What does the man page for your terminal say?

   (Not all terminals have tabs.)

--
   Chris F.A. Johnson, author           <http://shell.cfajohnson.com/>
   ===================================================================
   Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
   Pro Bash Programming: Scripting the GNU/Linux Shell (2009, Apress)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
qwertmon...@syberianoutpost.ru  
View profile  
 More options Oct 27 2012, 10:11 am
Newsgroups: comp.unix.shell
From: qwertmon...@syberianoutpost.ru
Date: Sat, 27 Oct 2012 14:11:09 +0000 (UTC)
Local: Sat, Oct 27 2012 10:11 am
Subject: trying to generate a terminal tab (or window) for each process ...
~

> >  How do you open all windows as added tabs of the window from which you
started
> > all other processes?
>   What does the man page for your terminal say?
>   (Not all terminals have tabs.)

~
 OK, I will have to live with that. Yet, knoppix 7.0.2 uses lxterminal, which
lets you edit text in it, but I still haven't figured out how to start them as
part of the same lxterminal window
~
$ lxterminal --help
Usage:
  lxterminal [Options...] - LXTerminal is a terminal emulator

Options:
  -e, --command=STRING             Execute the argument to this option inside
the terminal
  --geometry=COLUMNSxROWS          Set the terminal's size
  -l, --loginshell                 Execute login shell
  -t, -T, --title=STRING           Set the terminal's title
  --working-directory=DIRECTORY    Set the terminal's working directory
~
 lbrtchx


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris F.A. Johnson  
View profile  
 More options Oct 27 2012, 3:18 pm
Newsgroups: comp.unix.shell
From: "Chris F.A. Johnson" <cfajohn...@gmail.com>
Date: Sat, 27 Oct 2012 15:10:08 -0400
Local: Sat, Oct 27 2012 3:10 pm
Subject: Re: trying to generate a terminal tab (or window) for each process ...

On 2012-10-27, qwertmon...@syberianoutpost.ru wrote:
> ~
>> >  How do you open all windows as added tabs of the window from which you
> started
>> > all other processes?

>>   What does the man page for your terminal say?

>>   (Not all terminals have tabs.)
> ~
>  OK, I will have to live with that. Yet, knoppix 7.0.2 uses lxterminal, which
> lets you edit text in it, but I still haven't figured out how to start them as
> part of the same lxterminal window

   Nothing prevents you from using a terminal that does have tabs, e.g. konsole
   or mrxvt, though I don't know whether they can create tabs from a script.

--
   Chris F.A. Johnson, author           <http://shell.cfajohnson.com/>
   ===================================================================
   Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
   Pro Bash Programming: Scripting the GNU/Linux Shell (2009, Apress)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jim Diamond  
View profile  
 More options Oct 28 2012, 9:16 pm
Newsgroups: comp.unix.shell
From: Jim Diamond <Jim.Diam...@deletethis.AcadiaU.ca>
Date: Sun, 28 Oct 2012 22:16:51 -0300
Local: Sun, Oct 28 2012 9:16 pm
Subject: Re: trying to generate a terminal tab (or window) for each process ...
On 2012-10-27 at 16:10 ADT, Chris F.A. Johnson <cfajohn...@gmail.com> wrote:

You can certainly use something like xdotool to send the "create new
tab" keycode to urxvt (and I'd guess this would work for mrxvt and
konsole as well), but whether you can do something less roundabout, I
don't know.

In urxvt the tabs are handled by the perl extension, and I would think
you should be able to do it, but I find the interface to the perl
extension stuff a bit confusing.

Cheers.
                                Jim


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »