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 > Terminal Rocks! (Unix rocks!)

Terminal Rocks! (Unix rocks!)
Thread Tools
Posting Junkie
Join Date: Sep 2001
Status: Offline
Reply With Quote
Feb 23, 2003, 09:38 PM
 
Heya, dudes. I just wanted to jump in say that I am really enjoying using Unix! I just started reading a book recently about Unix and I've learned quite a bit. I'm posting this thread from within Lynx in the command line! That's how cool it is!
Anyone else just fall in love with Unix like I have? I'm really loving it, and to be able to remotely log into my Mac will be a great help.

Sorry, mods, this might be lounge material. I think it is. Move if you must. Sorry. I was overcome with geeky joy.
     
Mac Elite
Join Date: Aug 2001
Location: Australia
Status: Offline
Reply With Quote
Feb 23, 2003, 10:00 PM
 
Actually, this probably belongs in the unix forum.

But you could probably get away with lounge

And yeah, I love Terminal and unix and all that stuff
     
Grizzled Veteran
Join Date: Nov 2000
Location: Seattle, WA, USA
Status: Offline
Reply With Quote
Feb 23, 2003, 10:09 PM
 
I'm there with ya in the UNIX love camp. I didn't know what Unix was until I started playing with the OS X Public Beta. After about 4 months of dinking around I went and got a sweet job at the Network Operations Center at my school and I've been loving every minute. Go Unix...go OS X!

-matt
     
Forum Regular
Join Date: Mar 2001
Location: canada
Status: Offline
Reply With Quote
Feb 23, 2003, 10:44 PM
 
Just a suggestion for when you guys want to dig a bit deeper:

Unix Power Tools from O'Reilly has an incredible wealth of tips and tricks.
     
BTP
Mac Elite
Join Date: Feb 2001
Location: 34.06 N 118.47 W
Status: Offline
Reply With Quote
Feb 23, 2003, 11:28 PM
 
Well, hey, I have to agree with you too. If X hadn't come along, then I'd be SOL for accessing the *nix machines that I need to daily now. I have plenty of *nix guys that teach me more and more, and really like OS X.

It is funny seeing a hardcore *nix guy gush over OS X.

I was extremely happy to be able to use OS X to access my mail server to configure spambouncer to utterly annihilate spam.

99% spam free for 11 days. 100% for 3 days..

A lie can go halfway around the world before the truth even gets its boots on. - Mark Twain
     
Mac Elite
Join Date: Sep 2001
Location: Chico, CA and Carlsbad, CA.
Status: Offline
Reply With Quote
Feb 24, 2003, 02:52 AM
 
Originally posted by BTP:
I was extremely happy to be able to use OS X to access my mail server to configure spambouncer to utterly annihilate spam.

99% spam free for 11 days. 100% for 3 days..

Haha, you're still stoked on the spambouncer bit.

Yeah, I have learned a lot about the nature of command-line-toting *nix operating systems from using OSX over the last 2 years or so.

I go into girls' rooms in the dorms and telnet/ssh into my computer, copy an MP3 or a movie to my web folder, or boot up my KDX server, spew out some technical mumbo jumbo during the process, and soon enough they're saying, "Ooooh, Alan, stop! You're turning me on!" hehehe.

Unix, good stuff. So much control over the OS and its attributes... mmm
"In Nomine Patris, Et Fili, Et Spiritus Sancti"

     
Senior User
Join Date: Nov 2000
Status: Offline
Reply With Quote
Feb 24, 2003, 05:14 AM
 
Originally posted by [APi]TheMan:
...
I go into girls' rooms in the dorms and telnet/ssh into my computer, copy an MP3 or a movie to my web folder, or boot up my KDX server, spew out some technical mumbo jumbo during the process, and soon enough they're saying, "Ooooh, Alan, stop! You're turning me on!" hehehe.
...
How come it doens't work like that here?

It's just not fair

- proton
     
Addicted to MacNN
Join Date: Nov 1999
Location: Madison, WI
Status: Offline
Reply With Quote
Feb 24, 2003, 10:12 AM
 
I just discovered "Screen" and I think its so nifty!

-Owl
     
Dedicated MacNNer
Join Date: Nov 2002
Location: Rouge River
Status: Offline
Reply With Quote
Feb 24, 2003, 10:31 AM
 
Originally posted by MindFad:
Heya, dudes. I just wanted to jump in say that I am really enjoying using Unix! I just started reading a book recently about Unix and I've learned quite a bit. I'm posting this thread from within Lynx in the command line! That's how cool it is!
Anyone else just fall in love with Unix like I have? I'm really loving it, and to be able to remotely log into my Mac will be a great help.

Sorry, mods, this might be lounge material. I think it is. Move if you must. Sorry. I was overcome with geeky joy.


You know what, there are some of us who came to OS X from a *NIX platform because we finally found a computer system with the polish we wanted but with the same power and flexibility under the hood. I went to Linux full-time in 1998, and was overcome with joy within four hours of having my iBook (that is, 4 hours after I put the RAM upgrade in). For people like me, it's not the discovery of the joys of the terminal (CLI, in tru-*NIX-geek-speak) but the sheer beauty of the platform that get us all giddy.

But I hear where you're coming from.
     
Senior User
Join Date: Dec 2001
Status: Offline
Reply With Quote
Feb 24, 2003, 11:55 AM
 
Originally posted by MindFad:
I'm posting this thread from within Lynx in the command line! That's how cool it is!
If you think that is cool, use Fink to install w3m and vim. Right now I'm logged into my G4 at home, surfing this forum in w3m, editing this post (split view with my current objective-c project) in vim, and accessing my Mail.app mbox files read-only with mutt. If you have to use a tty, you might as well do it in style!
Originally posted by MindFad:
Anyone else just fall in love with Unix like I have? I'm really loving it, and to be able to remotely log into my Mac will be a great help.
I fell in love with Unix when I got the Public Beta in the mail. After try desperately to enjoy the Public Beta, and failing miserably, I went back to OS 9. But I couldn't live without my terminal. Where's my terminal? Oh no I have no terminal! So I installed Debian. It took me a year to get my CD burner, palm, scanner, printer, video card, digital camera, etc to work with Debian. Granted I got side-tracked many, many times, but I eventually got every single peripheral working (although LinuxPPC sound is still screwed up). I may have lost a year of productivity, but when 10.1 came out, I was suddenly a Unix expert, and I could finally enjoy using my Mac again.

The truly funny thing is the sense of relief I had upon returning to a platform that doesn't use 7000 different GUI toolkits, all of which are pretty damn ugly by default. I use a slight modification of Max's SmoothStripes now, but all in all, the Unix makes it powerful, but the built-in polish makes it home.
"Think Different. Like The Rest Of Us."

iBook G4/1.2GHz | 1.25GB | 60GB | Mac OS X 10.4.2
Athlon XP 2500+/1.83GHz | 1GB PC3200 | 120GB | Windows XP
     
MindFad  (op)
Posting Junkie
Join Date: Sep 2001
Status: Offline
Reply With Quote
Feb 25, 2003, 02:39 PM
 
I showed off my 1337 Unix skills last night to my GF by remotely logging in from her Mac and and checking my mail through it, doing some FTP. It was cool. ÜberNerd.
     
Posting Junkie
Join Date: Mar 2001
Location: Salamanca, EspaÃąa
Status: Offline
Reply With Quote
Feb 25, 2003, 04:50 PM
 
Originally posted by MindFad:
I showed off my 1337 Unix skills last night to my GF by remotely logging in from her Mac and and checking my mail through it, doing some FTP. It was cool. ÜberNerd.
Very ÜberNerd man! Cool. UNIX is so immensely brilliant. I fell in love with the fact that OS X was a UNIX derivative when I realized how advanced networking you can do with UNIX. And all the apps that are suddenly available for the Mac! It is like a door opening to a new world.
I could take Sean Connery in a fight... I could definitely take him.
     
Mac Elite
Join Date: May 2002
Status: Offline
Reply With Quote
Feb 25, 2003, 08:16 PM
 
I can't help but agree
[vash:~] banana% killall killall
Terminated
     
Mac Elite
Join Date: Dec 2001
Location: Chicago
Status: Offline
Reply With Quote
Feb 26, 2003, 01:56 AM
 
where can i find a good unix book for beginning unix?
     
Professional Poster
Join Date: Mar 2001
Location: Pit Slab #35
Status: Offline
Reply With Quote
Feb 26, 2003, 09:50 AM
 
Originally posted by MindFad:
I showed off my 1337 Unix skills last night to my GF by remotely logging in from her Mac and and checking my mail through it, doing some FTP. It was cool. ÜberNerd.
Did you get some?
I tried to sig-spam the forums.
ADVANTAGE Motorsports Marketing, Inc. â€Ē speedXdesign, Inc.
     
MindFad  (op)
Posting Junkie
Join Date: Sep 2001
Status: Offline
Reply With Quote
Feb 26, 2003, 12:16 PM
 
Originally posted by dillerX:
Did you get some?
You're damn right I did.
     
Junior Member
Join Date: Dec 2001
Location: Mx
Status: Offline
Reply With Quote
Feb 26, 2003, 12:29 PM
 
Originally posted by MindFad:
I showed off my 1337 Unix skills last night to my GF by remotely logging in from her Mac and and checking my mail through it, doing some FTP. It was cool. ÜberNerd.
Humm...well...I thought the great thing about an OS like MacOSX or Windows is: There is no need for a command line...
I know you love feel yourselfs geekie, we all do, but frankly, i really prefer not to use a command line when you can do better and faster with...a mouse.
     
Professional Poster
Join Date: Mar 2001
Location: Pit Slab #35
Status: Offline
Reply With Quote
Feb 26, 2003, 12:40 PM
 
Originally posted by MindFad:
You're damn right I did.
Once again, NSFG and Mr. Fad are the MEN!
I tried to sig-spam the forums.
ADVANTAGE Motorsports Marketing, Inc. â€Ē speedXdesign, Inc.
     
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status: Offline
Reply With Quote
Feb 26, 2003, 01:41 PM
 
My wife and I share an office in the (finished) basement. One night I was up on the third floor with my iBook, and she was in the basement on her PC. My G4 mac is in the basement as well (it's my web server). I ssh'd in to the G4 and did this:

Code:
% osascript << EOF set volume 10 say "Hey honey, are you coming up to bed soon?" EOF
She said she nearly jumped out of her skin.
Mac Pro 2x 2.66 GHz Dual core, Apple TV 160GB, two Windows XP PCs
     
Mac Elite
Join Date: May 2001
Location: Belgium
Status: Offline
Reply With Quote
Feb 26, 2003, 02:36 PM
 
Originally posted by Arkham_c:
My wife and I share an office in the (finished) basement. One night I was up on the third floor with my iBook, and she was in the basement on her PC. My G4 mac is in the basement as well (it's my web server). I ssh'd in to the G4 and did this:

Code:
% osascript << EOF set volume 10 say "Hey honey, are you coming up to bed soon?" EOF
She said she nearly jumped out of her skin.
Hehe that's freaky have to try it next time
     
Grizzled Veteran
Join Date: Feb 2001
Location: Pittsburgh
Status: Offline
Reply With Quote
Feb 26, 2003, 06:17 PM
 
I
Originally posted by Arkham_c:
My wife and I share an office in the (finished) basement. One night I was up on the third floor with my iBook, and she was in the basement on her PC. My G4 mac is in the basement as well (it's my web server). I ssh'd in to the G4 and did this:
Code:
% osascript << EOF set volume 10 say "Hey honey, are you coming up to bed soon?" EOF
She said she nearly jumped out of her skin.
ROFLMAO!

I just found the coolest thing to do at work tomorrow. Muaaa haaa haaa haaaaa
     
Junior Member
Join Date: Apr 2001
Location: Switzerland
Status: Offline
Reply With Quote
Feb 27, 2003, 03:45 AM
 
Originally posted by Hi I'm Ben:
where can i find a good unix book for beginning unix?
http://mac.oreilly.com/

Look for instance for "Learning unix for mac os X"....this is a good start.
     
Mac Elite
Join Date: Jul 2002
Location: Right Here
Status: Offline
Reply With Quote
Feb 27, 2003, 03:53 PM
 
I think developing software is also much easier with the built-in Unix command-line utilities (for example, the included Java compiler).
     
MindFad  (op)
Posting Junkie
Join Date: Sep 2001
Status: Offline
Reply With Quote
Mar 3, 2003, 02:41 AM
 
% osascript << EOF
set volume 10
say "Hey honey, are you coming up to bed soon?"
EOF
What exactly do the "<<" and "EOF" arguments mean or do? Just to make sure. I got it to work, but I like to know exactly what the things I type mean and are doing.
     
Senior User
Join Date: Dec 2001
Status: Offline
Reply With Quote
Mar 3, 2003, 02:55 AM
 
Originally posted by MindFad:
What exactly do the "<<" and "EOF" arguments mean or do? Just to make sure. I got it to work, but I like to know exactly what the things I type mean and are doing.
It's just another way of quoting strings, and it is useful, as well as fairly legible, for quoting multi-line strings. For example, it is used in shell scripts to quote the string that would be printed out as help text. The "EOF" can be any arbitrary string, but you must use that same string on a line by itself to terminate the quoted string. It works in most shells, perl, php, etc. Convoluted enough for yah? Sorry, it's 4 AM. Maybe someone else will explain it better. It basically boils down to "There's more than one way to do it".
"Think Different. Like The Rest Of Us."

iBook G4/1.2GHz | 1.25GB | 60GB | Mac OS X 10.4.2
Athlon XP 2500+/1.83GHz | 1GB PC3200 | 120GB | Windows XP
     
MindFad  (op)
Posting Junkie
Join Date: Sep 2001
Status: Offline
Reply With Quote
Mar 3, 2003, 12:56 PM
 
I get ya. Thanks.

Since I'm code inept, and code "challenged," here's what my brain made of it:

% osascript << EOF (This tells me to start a script and to end the script when "EOF appears.)
set volume 10 (Set volume to 10, got ya.)
say "Hey honey, are you coming up to bed soon?" (Speak this with MacinTalk.)
EOF (This tells me to that it is the end of the script, and to run everything above.)

Did I kind get it?
     
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status: Offline
Reply With Quote
Mar 3, 2003, 01:48 PM
 
Originally posted by Arkham_c:
My wife and I share an office in the (finished) basement. One night I was up on the third floor with my iBook, and she was in the basement on her PC. My G4 mac is in the basement as well (it's my web server). I ssh'd in to the G4 and did this:

Code:
% osascript << EOF set volume 10 say "Hey honey, are you coming up to bed soon?" EOF
She said she nearly jumped out of her skin.
mudzilla's timbuktu'd into my network, before now, and done similar. although it's usually along the lines of "oi, yer lazy bastid, 'kin wake up!"
"Have sharp knives. Be creative. Cook to music" ~ maxelson
     
Junior Member
Join Date: Jan 2003
Status: Offline
Reply With Quote
Mar 3, 2003, 02:06 PM
 
Originally posted by macmike42:
It's just another way of quoting strings, and it is useful, as well as fairly legible, for quoting multi-line strings.
It *isn't* the same thing as a multi line string. The <<EOF... EOF notation indicates that the standard input of the command should be the following lines. You can write multi-line strings with a quote and no closing quote until a later line, it works okay.
     
Mac Elite
Join Date: May 2002
Location: Germany, ivory tow
Status: Offline
Reply With Quote
Mar 3, 2003, 02:19 PM
 
quote:
Originally posted by Arkham_c:
My wife and I share an office in the (finished) basement. One night I was up on the third floor with my iBook, and she was in the basement on her PC. My G4 mac is in the basement as well (it's my web server). I ssh'd in to the G4 and did this:

code:

% osascript << EOF
set volume 10
say "Hey honey, are you coming up to bed soon?"
EOF


She said she nearly jumped out of her skin. "


I simply donīt get it...?!? Has OS X a sound/speech engine like OS 7.X.Y.??

Pat


Macintosh Quadra 950, Powermac 6100, iBook dual USB, Powerbook 667 DVI, Powerbook 867 DVI, MacBook Pro early 2011
     
MindFad  (op)
Posting Junkie
Join Date: Sep 2001
Status: Offline
Reply With Quote
Mar 3, 2003, 02:44 PM
 
Yeah ... the point was that he scared her, and it was funny.
     
Junior Member
Join Date: Dec 2001
Location: UK
Status: Offline
Reply With Quote
Mar 6, 2003, 03:35 PM
 
Hmm, when trying this on my housemate's iMac I get the following error after I enter EOF:

## Component Manager: attempting to find symbols in a component alias of type (regR/carP/x!bt)
kCGErrorIllegalArgument : initCGDisplayState: cannot map display interlocks.
kCGErrorIllegalArgument : CGSNewConnection cannot get connection port
INIT_Processeses(), could not establish the default connection to the WindowServer.Abort

It works fine on my Mac though. What gives?
     
Fresh-Faced Recruit
Join Date: Feb 2003
Status: Offline
Reply With Quote
Mar 6, 2003, 04:35 PM
 
what would the exact code be if you say my other macs ip is 192.168.1.102 or its named blizzard???
     
Professional Poster
Join Date: Nov 2000
Location: Tasmania, Australia
Status: Offline
Reply With Quote
Mar 6, 2003, 06:00 PM
 
Originally posted by JayTay:
Hmm, when trying this on my housemate's iMac I get the following error after I enter EOF:

## Component Manager: attempting to find symbols in a component alias of type (regR/carP/x!bt)
kCGErrorIllegalArgument : initCGDisplayState: cannot map display interlocks.
kCGErrorIllegalArgument : CGSNewConnection cannot get connection port
INIT_Processeses(), could not establish the default connection to the WindowServer.Abort

It works fine on my Mac though. What gives?
Unfortunately, you cannot run any AppleScript (any Apple Events?) unless you are logged in as the user who owns the current display

If your mate was using the computer at the time, and you know their username/password, and ssh'd in as them, then it would work.
     
Junior Member
Join Date: Dec 2001
Location: UK
Status: Offline
Reply With Quote
Mar 7, 2003, 04:08 AM
 
Originally posted by Brass:
Unfortunately, you cannot run any AppleScript (any Apple Events?) unless you are logged in as the user who owns the current display

If your mate was using the computer at the time, and you know their username/password, and ssh'd in as them, then it would work.
Would it work if Remote Apple Events were switched on from the Sharing pref pane?
     
Junior Member
Join Date: Feb 2001
Location: NYC
Status: Offline
Reply With Quote
Mar 7, 2003, 04:55 AM
 
I tried to do the same, and all I get is this:

? set volume 10
? say "Hi Pumpkin, you're a cute kitten."
? EOF
execution error: An error of type -4804 has occurred. (-4804)
     
   
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 07:29 AM.
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