rahul.pwav has asked for the wisdom of the Perl Monks concerning the following question:

Hi All, I want to write a perl script through which i should be able to open multiple tabs into the same terminal and run different perl scripts into each tab. So i want to know that is there any module available into CPAN which i can use and if not available then how should i proceed?.. Thanks in advance
  • Comment on Needed Guidance: Linux terminal automation

Replies are listed 'Best First'.
Re: Needed Guidance: Linux terminal automation
by zek152 (Pilgrim) on Jun 09, 2011 at 14:33 UTC

    Why do you need a perl script to run other perl scripts. Couldn't you just put the functionality of the scripts into the same script?

    Some background will be helpful as to what you are trying to accomplish. A different approach might be better. For example 'tabs' are a device to make things easier for humans. Programs dont need to run in tabs. To run a command in the background you can append a '&' to the command. For example if I wanted to run firefox and continue using the terminal i would type "$ firefox &".

    Likewise if i were trying to launch multiple perl scripts at the same time I would write a bash script that consisted of something like:

    #!/bin/bash ./perlscript1.pl & ./perlscript2.pl & ./perlscript3.pl & #repeat ad nauseum
Re: Needed Guidance: Linux terminal automation
by Perlbotics (Archbishop) on Jun 09, 2011 at 15:01 UTC
Re: Needed Guidance: Linux terminal automation
by moritz (Cardinal) on Jun 09, 2011 at 14:30 UTC
Re: Needed Guidance: Linux terminal automation
by salva (Canon) on Jun 09, 2011 at 15:03 UTC
    You can write your own terminal emulator easyly with Gnome2::Vte.