LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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


Reply
  Search this Thread
Old 10-15-2003, 11:25 PM   #1
gonzalezjay
LQ Newbie
 
Registered: Oct 2003
Location: North Hollywood, CA
Posts: 6

Rep: Reputation: 0
Cool 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
 
Old 10-16-2003, 04:41 AM   #2
iainr
Member
 
Registered: Nov 2002
Location: England
Distribution: Ubuntu 9.04
Posts: 631

Rep: Reputation: 30
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.
 
Old 10-16-2003, 11:13 AM   #3
gonzalezjay
LQ Newbie
 
Registered: Oct 2003
Location: North Hollywood, CA
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks! I'll try that and let you know if it works.
 
Old 10-16-2003, 11:17 AM   #4
frieza
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

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
yeah, it should work, macos x is mostly posix compliant
 
Old 10-16-2003, 12:41 PM   #5
gonzalezjay
LQ Newbie
 
Registered: Oct 2003
Location: North Hollywood, CA
Posts: 6

Original Poster
Rep: Reputation: 0
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.
 
Old 10-16-2003, 01:02 PM   #6
gonzalezjay
LQ Newbie
 
Registered: Oct 2003
Location: North Hollywood, CA
Posts: 6

Original Poster
Rep: Reputation: 0
Actually my command line returns an error that reads "/dev/pts/3 directory or file not found." Sorry about that bit of wrong info.
 
Old 10-16-2003, 02:43 PM   #7
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
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
 
Old 10-16-2003, 06:05 PM   #8
gonzalezjay
LQ Newbie
 
Registered: Oct 2003
Location: North Hollywood, CA
Posts: 6

Original Poster
Rep: Reputation: 0
both talk and write worked perfectly. Thanks for the info everyone!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Terminal question Optimistic Slackware 2 08-15-2004 12:39 PM
Terminal Emulators Question ximiansavior Linux - Software 4 11-17-2003 06:07 AM
Terminal question dsgdevil Linux - Software 6 08-26-2003 10:44 PM
Terminal question SnowSurfAir Linux - Software 2 08-17-2003 07:22 PM
terminal question DrOzz Linux - General 3 06-21-2003 11:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration