sumanth123 has asked for the wisdom of the Perl Monks concerning the following question:

I am trying to automate a scenario in which, I have a terminal window open with multiple tabs open in it. I am able to migrate between the tabs, but my problem is how do i pass control to another terminal tab while i run my perl script in a different tab. Example: I have a terminal open with Tab1,Tab2,Tab3,Tab4 open in the same terminal, i run the perl script in Tab3 and i would want to pass some commands onto Tab1. Could you please tell me how can i do this ?? I use GUI tool to switch between tabs X11::GUITest and use keyboard shortcuts to switch between tabs, any alternative suggestion is welcome, my ultimate aim is to pass control on to a different tab.
  • Comment on How to access different terminal tab using perl?

Replies are listed 'Best First'.
Re: How to access different terminal tab using perl?
by ww (Archbishop) on Dec 02, 2014 at 12:57 UTC

    So, what's running in tabs 1, 2 and 4? Executables? bash? a video player? Are any of them children of your script in Tab3

    You can pass control to a process running in a new tab by invoking that process in a new tab in your script but I suspect that using a script to control running (non-child) processes in other tabs is likely to be a major s...t...r...e...t...c...h.



    Questions containing the words "doesn't work" (or their moral equivalent) will usually get a downvote from me unless accompanied by:
    1. code
    2. verbatim error and/or warning messages
    3. a coherent explanation of what "doesn't work actually means.
Re: How to access different terminal tab using perl?
by gerangelov (Sexton) on Dec 02, 2014 at 12:19 UTC
    Can you describe what you are trying to achieve ? Give an example if possible.