![]() |
|
Programming C, bash, Python, Perl, PHP, Java, you name it. |
![]() |
|
Thread Tools | Display Modes |
|
|||
![]()
how to write the script that invoke a program to be displayed in another terminal
![]() For example, i'm running the script in terminal A then the another command in the script will run in another terminal B. |
|
||||
![]()
Generally, you don't.
It's possible to write to another terminal, if you open a pair of xterms and run 'tty', on the first you can generate output (e.g. echo hi) and redirect it (>>) to the second terminals tty device file. Fiddling around like that is basically what the unix talk program does. So you could even have the script redirect the I/O of a command to another termianl; but in order to *actually* execute a program on the other terminal, you would have to setup a program on that terminal to handle the launching, and a way to communicate with it from your current terminal (e.g. through a named pipe or socket) You probably do not want to do exactly what you asked how to do.
__________________
My Journal Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''. |
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
start and stop KDE from shell | ccc | FreeBSD General | 8 | 8th July 2010 10:12 PM |
shell script with zenity | bsdnewbie999 | OpenBSD General | 5 | 24th April 2009 02:37 AM |
shell script compare md5 sum | bsdnewbie999 | Programming | 1 | 11th April 2009 02:20 PM |
Shell Script. | bsdnewbie999 | Programming | 21 | 15th July 2008 07:54 AM |
shell script with input | c0mrade | Programming | 5 | 13th July 2008 04:33 AM |