Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-18-2007, 08:27 AM   #1
Registered: Sep 2003
Location: Waltham MA
Distribution: Mandriva 2007 w/ KDE
Posts: 87

Rep: Reputation: 15
Multiple Command-Line Programs

I have a command-line program and I want to run n instances of it. I would like the output from each instance to be written on a seperate line.

I think I might be about to write a wrapper program using ncursers, but I don't want to reinvent the wheel if it has already been done. Does anyone know of an existing application that can do this?
Old 03-18-2007, 06:17 PM   #2
Senior Member
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 54
You should probably ask this in the programming forum.

If you try to share the screen I think you'll create problems for yourself. What about using a tabbed terminal such as mrxvt?

With ncurses you can certainly write wherever you want on the screen but I don't know if you safely multiplex output from different processes unless you somehow share the window structure between them. The next easiest way after using a tabbed terminal is to create an ncurses front-end to manage the data from your back-end and use IPC or even files to send it the data. Let the front end write to different parts of the screen on behalf of each back-end process. This is probably what you meant about a wrapper. It should work fine.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
get programs on net from command line brianetilley Linux - Networking 1 12-07-2005 09:42 AM
Running Programs from command line sumguy231 Linux - Software 4 12-17-2004 03:10 PM
launching programs from command line in FS dertien Linux - Software 1 11-26-2004 09:27 AM
Launching Programs From the Command Line Chryzmo Linux - Software 5 03-03-2004 08:00 PM
Running programs from Command Line SirLostalot Linux - Newbie 1 11-11-2002 09:24 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:16 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration