How to send from one XTERM to another


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting How to send from one XTERM to another
# 1  
Old 04-29-2005
Question How to send from one XTERM to another

Hi who can I send a command from one Xterm to another Xterm?

Example: I have 2 xterm windows and the want to send ls from #1 to #2 and see the result in #2.

This is ofcourse not what I will do, will from a script start 2 xterm and then start 2 other scripts in these xterm windows.

Thanx in advance. /Kalle Smilie
# 2  
Old 04-29-2005
get the tty number of other xterm window and do ls -l >TTY

ls -l >/dev/pts/4 or some thing similar
# 3  
Old 05-02-2005
Thanx, works great!!

My next problem is to found out what kind of other stuff is sent to the window. When I open "dev/pts/45" as file in my PERL scipt and then write to it the output is seen in the window but the command is not executed. Anyone who nows what kind of carrige return or similar that shall be used.

There is a way to get around everything, system("ls -l >devs/pts/45") but it would be nice to know who to send the command directly to the xterm window and execute it.

Many Thanx Kalle
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to send xterm to another machine

The scenario is like this: I don't have access permission to linux server A, but my colleague has. So I installed xwindow server (xming or cygwin), then gave him my ip address, then he sent xterm to my machine, the xterm already connected to A with his account. My question is how he did it? (2 Replies)
Discussion started by: humbug
2 Replies

2. Shell Programming and Scripting

Script to send email after comparing the folder permissions to a certain permission & send email

Hello , I am trying to write a unix shell script to compare folder permission to say drwxr-x-wx and then send an email to my id in case the folders don't have the drwxr-x-wx permissions set for them . I have been trying to come up with a script for few days now , pls help me:( (2 Replies)
Discussion started by: nairshar
2 Replies

3. UNIX for Advanced & Expert Users

send attachments using send mail in Solaris

Hi All, I have a requirement to send and email of body html with an attachment. concatinating uuencode output to the mail body with mailx command works, but as my Email body is of HTML type i use sendmail. my command to send HTML body is as below: export MAILTO="recipient@domain.com"... (1 Reply)
Discussion started by: mohan_kumarcs
1 Replies

4. Shell Programming and Scripting

How to send a Xterm command via a shell command

Hello, I would like to send via a shell script a command to my XTerm. For instance, I would like a shell script of mine to perform the command "clear-saved-lines()" to my Xterm. Indeed, I don't want to use /usr/bin/clear but a command that erases everything in my xterm. Thank you, --... (1 Reply)
Discussion started by: MROZ
1 Replies

5. UNIX for Dummies Questions & Answers

unable to xterm

Hi , m unable to send the copy of my unix session to my colleague IP using xterm...... i'm doing as follows: export DISPLAY=10.145.5.115:0.0 /usr/bin/X11/xterm& but it's giving the error: /usr/bin/X11:> xterm Xt error: Can't open display: 10.192.5.115:0.0 + Done(1) ... (3 Replies)
Discussion started by: unknown123
3 Replies

6. UNIX for Dummies Questions & Answers

xterm

hi I'm trying to launch admintool via an export DISPLAY. that is i am doing a rlogin to serverB from serverA. i did the command export DISPLAY=serverA:0 but it prompted me the error DISPLAY=serverA:0: is not an identifier i have searched the forum but there is not much things on this error... (3 Replies)
Discussion started by: legato
3 Replies

7. Shell Programming and Scripting

xterm help?

I want to add a title to this xterm window but cannot figure out how. Can anybody assist with this? xterm +sb -geom 80x25 -ls -tn xterms -tm "intr ^q" -name unikix -e $UNIKIX/bin/unikixl (1 Reply)
Discussion started by: douknownam
1 Replies

8. UNIX for Dummies Questions & Answers

xterm?

Hello all, This is a lame question because I have been working with unix for some years now, but anyway here it is; What is an xterm? ivo (1 Reply)
Discussion started by: Ivo
1 Replies

9. UNIX for Dummies Questions & Answers

xterm

Would someone tell me how to save changes in xterm once I've made them using the program options? For example, I type: xterm -bg red and my console window changes color. But how can I now make this attribute save, so that it becomes the default when I relaunch xterm? Any help you can offer... (1 Reply)
Discussion started by: af6
1 Replies

10. UNIX for Dummies Questions & Answers

Xterm

Guys: Anyone have ideas on where can I get information or references if I want to learn on how to program with UNIX GUIs? If you do have ideas please let me know. Its a big help. (2 Replies)
Discussion started by: jfsuminist
2 Replies
Login or Register to Ask a Question