Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Make another machine speak...

Make another machine speak...
Thread Tools
Mac Enthusiast
Join Date: Dec 2002
Location: Newport Beach, CA
Status: Offline
Reply With Quote
Aug 6, 2003, 10:02 PM
 
A while back there was a discussion about a guy who wanted to remotly log in to his wifes machine via the CLI, and make the machine speak certian text.

Can anyone point me to that thread (I've searched), or tell me how to do it? Thanks....

Be a traveler, not a tourist
     
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status: Offline
Reply With Quote
Aug 6, 2003, 10:58 PM
 
Originally posted by EnVoy:
A while back there was a discussion about a guy who wanted to remotly log in to his wifes machine via the CLI, and make the machine speak certian text.

Can anyone point me to that thread (I've searched), or tell me how to do it? Thanks....
1) SSH into the box.

2) Do something like this:

Code:
/usr/bin/osascript << EOF set volume 10 say "Hey baby come to bed" EOF
Mac Pro 2x 2.66 GHz Dual core, Apple TV 160GB, two Windows XP PCs
     
Sal
Dedicated MacNNer
Join Date: Sep 2000
Location: Cupertino, CA USA
Status: Offline
Reply With Quote
Aug 7, 2003, 05:47 AM
 
Use Program Linking (setup in the Sharing Preference Pane) and write a script similar to this:

Code:
set the target_app to application "Finder" of machine "eppc://11.111.11.111" using terms from application "Finder" tell target_app say "Hey, I'm over here!" end tell end using terms from
     
EnVoy  (op)
Mac Enthusiast
Join Date: Dec 2002
Location: Newport Beach, CA
Status: Offline
Reply With Quote
Aug 7, 2003, 01:36 PM
 
1) SSH into the box.

2) Do something like this:


code:

/usr/bin/osascript << EOF

set volume 10
say "Hey baby come to bed"

EOF

Doesn't work, I get this:

[xxxxxxxxxxxxx:~] joe% /usr/bin/osascript << EOF
? set volume 10
? say "Hello"
? EOF
kCGErrorIllegalArgument : initCGDisplayState: cannot map display interlocks.
kCGErrorIllegalArgument : CGSNewConnection cannot get connection port
INIT_Processeses(), could not establish the default connection to the WindowServer.Abort

Be a traveler, not a tourist
     
Professional Poster
Join Date: Sep 2002
Location: New York, NY
Status: Offline
Reply With Quote
Aug 7, 2003, 03:52 PM
 
Originally posted by EnVoy:
Doesn't work, I get this:

[xxxxxxxxxxxxx:~] joe% /usr/bin/osascript << EOF
? set volume 10
? say "Hello"
? EOF
kCGErrorIllegalArgument : initCGDisplayState: cannot map display interlocks.
kCGErrorIllegalArgument : CGSNewConnection cannot get connection port
INIT_Processeses(), could not establish the default connection to the WindowServer.Abort
Works on mine.
Vandelay Industries
     
EnVoy  (op)
Mac Enthusiast
Join Date: Dec 2002
Location: Newport Beach, CA
Status: Offline
Reply With Quote
Aug 7, 2003, 04:01 PM
 
Works now, must have done something wrong...

Be a traveler, not a tourist
     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Aug 7, 2003, 04:56 PM
 
You have to be the user currently logged in to the GUI for that to work. You can use the "su" command if you know the user's password, or "sudo su" if you don't but are an administrator. You can see who's logged in by going
ls -l /dev/console

and seeing who the owner is.
     
EnVoy  (op)
Mac Enthusiast
Join Date: Dec 2002
Location: Newport Beach, CA
Status: Offline
Reply With Quote
Aug 7, 2003, 08:23 PM
 
Thanks guys, works great...

Be a traveler, not a tourist
     
   
Thread Tools
Forum Links
Forum 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
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 08:32 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2