Write message to another user on same network

 
Thread Tools Search this Thread
Operating Systems OS X (Apple) Write message to another user on same network
# 1  
Old 04-25-2010
Write message to another user on same network

On our home network, with 2 Macbook pros running OS X 10.6.*, I would like be able to popup a message to the user of the other computer.

Is there a way I can "call" from one computer to another not using skype, or ichat or any application that the user has to have running?

I guess first I would need a command to show me who is on the network and then a command to write a message.
# 2  
Old 04-25-2010
have a look at the commands "wall" and "talk".
# 3  
Old 05-07-2010
Do you have ssh access to the other computer? Apple script can do this.

Code:
#!/bin/bash

# send apple script command from the shell to display message

/usr/bin/osascript <<EOF

tell application "System Events"

display dialog "hello World!"

end tell

EOF

exit 0

Of course you don't have to script it, you could just code into a one liner as well.
# 4  
Old 05-07-2010
That's only allowed for root or local consoles, my friend's home server tells me.

There's probably not one that wouldn't require some preconfiguration; if it existed you'd be getting spam on it like the old Windows Messaging service.
# 5  
Old 05-08-2010
you can use write command also it will message to specific user only
o r u can use echo
echo "hi" dev/pts/0
# 6  
Old 05-10-2010
Quote:
Originally Posted by Corona688
That's only allowed for root or local consoles, my friend's home server tells me.

There's probably not one that wouldn't require some preconfiguration; if it existed you'd be getting spam on it like the old Windows Messaging service.
That is why I said to do the ssh and applescript, you can also use the 'say' command and have the Mac's voice utility do text to speech for an audio alert.
# 7  
Old 05-10-2010
Quote:
Originally Posted by tlarkin
That is why I said to do the ssh and applescript, you can also use the 'say' command and have the Mac's voice utility do text to speech for an audio alert.
I ssh-ed to a friend's mac and tried it. It wouldn't let me run applescript scripting GUI events since I was a remote user. You'd have to set up a sudo arrangement in advance to allow you to run these things with elevated privileges to get around that. I haven't tried 'say' but I doubt that's likely either.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Write file over network

Hello Forum, I have an embedded Busybox system with ash shell. On this system is a service with logging output. I want to have this logfile on another computer. This service creates the log file, but I can specify the filename via parameter. The memory is very fast filled up. What could be the... (6 Replies)
Discussion started by: peterfarge
6 Replies

2. Solaris

Why this message came when i added user in group?

Hi all, When I added one user in in this group hhs_gl6 following message got generated. -bash-3.00$ /usr/local/bin/sudo /usr/sbin/usermod -G hhs_gl6 vivek UX: /usr/sbin/usermod: hhs_gl6 name should be all lower case or numeric. However when I cheked the user in /etc/group file, the... (1 Reply)
Discussion started by: manalisharmabe
1 Replies

3. UNIX for Dummies Questions & Answers

NFS mounted drive showing Write protected message

Hi We have two servers name A and B . I have a folder "Share" on A was NFS mounted to "B" server. I have set the ACL permissions using setfacl , so that both (One user from Server A and another user from Server B) users can read and write to the directory. Both users can create the... (0 Replies)
Discussion started by: rakeshkumar
0 Replies

4. Shell Programming and Scripting

Write a scripts to kill idle user for 60 min. & email user list to admin in text file

Folks, I have written one script for following condition by referring some of online post in this forum. Please correct it if I'm missing something in it. (OS: AIX 5.3) List the idle user. (I used whoidle command to list first 15 user and get username, idle time, pid and login time).... (4 Replies)
Discussion started by: sumit30
4 Replies

5. Shell Programming and Scripting

Write a message on specific user terminal

Hi All, Need urgent help!!! Can anyone tellme how can we send a message on specific user terminal and get a response from user in return. Thanks in advance. (3 Replies)
Discussion started by: Sadhana
3 Replies

6. IP Networking

network message explanation pls

Hi guys, I know some about networking but I know some message below but Can anyone give me full explanation about these message below and how to generate these messages 1 14:52:49.463851 arp who-has 192.168.0.107 tell 192.168.0.108 2 14:52:49.463851 arp reply 192.168.0.107 is-at... (1 Reply)
Discussion started by: peac3
1 Replies

7. Programming

How to broadcast a message across the network using Socket programming in C??

My problem definition is ,I have to send a message from one node in a network and it has to be broadcasted to all other nodes in the network.The program what I have given below will be running in all the nodes in the network.The same program should be capable of sending(broadcasting) and receiving.... (1 Reply)
Discussion started by: vigneshinbox
1 Replies

8. Shell Programming and Scripting

Find all files with group read OR group write OR user write permission

I need to find all the files that have group Read or Write permission or files that have user write permission. This is what I have so far: find . -exec ls -l {} \; | awk '/-...rw..w./ {print $1 " " $3 " " $4 " " $9}' It shows me all files where group read = true, group write = true... (5 Replies)
Discussion started by: shunter63
5 Replies

9. Shell Programming and Scripting

WRITE a message in console

Hi all, I have a requirement, where I need to do some calculations and based on the results I need to write a message to the user from a shell script. Is it possible to `write' inside the script? Something like the below one.. #! /bin/ksh write user12 << EOF Hello World <<EOF For... (2 Replies)
Discussion started by: guruparan18
2 Replies
Login or Register to Ask a Question