Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-15-2003, 11:25 PM
|
#1
|
LQ Newbie
Registered: Oct 2003
Location: North Hollywood, CA
Posts: 6
Rep:
|
terminal question
I know this is a really foolish question but hey why not ask. I'm running a machine that has Mac OS X (Boo!) that allows me to access it's unix core through terminal. My other machine running Mac OSX resides on a network that I can ssh into. I was wondering if there is a way that I can remotely send a message to a user on my other machine through my terminal.
Thanks
Jay
|
|
|
10-16-2003, 04:41 AM
|
#2
|
Member
Registered: Nov 2002
Location: England
Distribution: Ubuntu 9.04
Posts: 631
Rep:
|
No idea if this will work on Mac OS X but...
Assuming you are logged onto the box with SSH, you can send a message to a particular terminal session.
The w or who command should show you which terminal or pseudo-tty a session is on as. Then you just write to that device.
e.g. echo hello > /dev/pts/3
Iain.
|
|
|
10-16-2003, 11:13 AM
|
#3
|
LQ Newbie
Registered: Oct 2003
Location: North Hollywood, CA
Posts: 6
Original Poster
Rep:
|
Thanks! I'll try that and let you know if it works.
|
|
|
10-16-2003, 11:17 AM
|
#4
|
Senior Member
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233
|
yeah, it should work, macos x is mostly posix compliant
|
|
|
10-16-2003, 12:41 PM
|
#5
|
LQ Newbie
Registered: Oct 2003
Location: North Hollywood, CA
Posts: 6
Original Poster
Rep:
|
I tried to do what ianr said. I have already ssh into my comp on my network away from home. Because no one is using has the terminal app on the other end, I have remotely launched it by entering open -a terminal. After this point I have entered e.g. echo hello > /dev/pts/3 and my comand line returns an error that reads "command not found" What exactly does /dev/pts/3 signify ? Is this a path to some kind of directory that I need to change according to my own machine ?
Thanks for your patience. I'm new to this stuff.
|
|
|
10-16-2003, 01:02 PM
|
#6
|
LQ Newbie
Registered: Oct 2003
Location: North Hollywood, CA
Posts: 6
Original Poster
Rep:
|
Actually my command line returns an error that reads "/dev/pts/3 directory or file not found." Sorry about that bit of wrong info.
|
|
|
10-16-2003, 02:43 PM
|
#7
|
Senior Member
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Rep:
|
you need to follow his first advice which is to use w or who to see what port the terminal is running on
it's not going to be /dev/pts/3 for everyone.
Another utility you can use is write, and also talk.
Talk sets up a two way messenger like relationship on the console.
Not sure if OSX has all these unix utils.
-Shade
|
|
|
10-16-2003, 06:05 PM
|
#8
|
LQ Newbie
Registered: Oct 2003
Location: North Hollywood, CA
Posts: 6
Original Poster
Rep:
|
both talk and write worked perfectly. Thanks for the info everyone!
|
|
|
All times are GMT -5. The time now is 01:33 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|