image
image

Go Back   macosx.com > Mac Help Forums > Unix & X11

Reply
 
LinkBack Thread Tools
  #1  
Old February 25th, 2009, 07:13 PM
Registered User
 
Join Date: Feb 2009
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
bardamu is on a distinguished road
-bash: rt: command not found

I'm an amateur Unix user who never should have been messing around with Terminal, Directory Utility, etc. I enabled the root user through Directory Utility and then disenabled it. I then flushed cache via..

sudo dscacheutil -flushcache

I thought this all would be harmless, but now I am getting this mail in Terminal...

-bash: rt: command not found

How can I fix this?
Reply With Quote
  #2  
Old February 26th, 2009, 11:04 AM
ElDiabloConCaca's Avatar
Registered User
 
Join Date: Aug 2001
Location: San Antonio, Texas
Posts: 12,672
Thanks: 7
Thanked 388 Times in 370 Posts
ElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of light
What is "rt" and why are you trying to execute it?

Do you get this message when trying to do something in the Terminal, or does this message happen spontaneously?
__________________
Mac mini 2.0GHz 10.6.2 • 4GB • 320GB • Superdrive • 4 x 1TB USB 2.0 • LED Cinema Display
MacBook 2.0GHz Core 2 Duo - White 10.6.2 • 4GB • 250GB • CD-RW/DVD-ROM
iPhone 3G 8GB • iPod Touch 8GB • iPod Photo 60GB • iPod nano 1GB • AT&T U-Verse 18Mb/2Mb
http://www.jeffhoppe.com
Reply With Quote
  #3  
Old February 26th, 2009, 06:08 PM
Registered User
 
Join Date: Feb 2009
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
bardamu is on a distinguished road
I don't know what rt is, and yes I get it as mail in Terminal. Note that I also installed MacPorts and unsuccesfully tried to install Apache 2 on my MacBook Pro yesterday too.

My best guess is that I'm logged in or out of an account that I shouldn't be in.
Reply With Quote
  #4  
Old February 26th, 2009, 06:53 PM
ElDiabloConCaca's Avatar
Registered User
 
Join Date: Aug 2001
Location: San Antonio, Texas
Posts: 12,672
Thanks: 7
Thanked 388 Times in 370 Posts
ElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of light
Quote:
Originally Posted by bardamu View Post
I don't know what rt is, and yes I get it as mail in Terminal.
What is "mail" in the Terminal?
Quote:
Note that I also installed MacPorts and unsuccesfully tried to install Apache 2 on my MacBook Pro yesterday too.
Why? Apache 2 is included with Mac OS X... [confused]
__________________
Mac mini 2.0GHz 10.6.2 • 4GB • 320GB • Superdrive • 4 x 1TB USB 2.0 • LED Cinema Display
MacBook 2.0GHz Core 2 Duo - White 10.6.2 • 4GB • 250GB • CD-RW/DVD-ROM
iPhone 3G 8GB • iPod Touch 8GB • iPod Photo 60GB • iPod nano 1GB • AT&T U-Verse 18Mb/2Mb
http://www.jeffhoppe.com
Reply With Quote
  #5  
Old February 26th, 2009, 07:01 PM
Registered User
 
Join Date: Feb 2009
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
bardamu is on a distinguished road
Quote:
Originally Posted by ElDiabloConCaca View Post
What is "mail" in the Terminal?
This is precisely the message I get in Terminal...

Last login: Thu Feb 26 20:03:39 on ttys000
You have mail.
-bash: rt: command not found

Quote:
Originally Posted by ElDiabloConCaca View Post
Why? Apache 2 is included with Mac OS X... [confused]
Not totally sure. I did it with a friend. Maybe it required an upgrade?
Reply With Quote
  #6  
Old February 26th, 2009, 07:37 PM
ElDiabloConCaca's Avatar
Registered User
 
Join Date: Aug 2001
Location: San Antonio, Texas
Posts: 12,672
Thanks: 7
Thanked 388 Times in 370 Posts
ElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of light
Quote:
Originally Posted by bardamu View Post
This is precisely the message I get in Terminal...

Last login: Thu Feb 26 20:03:39 on ttys000
You have mail.
-bash: rt: command not found
Do you get this when you launch Terminal for the first time?

What are the contents of your .bashrc and .bash_profile files, located in your home directory?

Quote:
Not totally sure. I did it with a friend. Maybe it required an upgrade?
MacPorts wouldn't upgrade the existing Apache 2, it would install another version alongside it in a different directory.
__________________
Mac mini 2.0GHz 10.6.2 • 4GB • 320GB • Superdrive • 4 x 1TB USB 2.0 • LED Cinema Display
MacBook 2.0GHz Core 2 Duo - White 10.6.2 • 4GB • 250GB • CD-RW/DVD-ROM
iPhone 3G 8GB • iPod Touch 8GB • iPod Photo 60GB • iPod nano 1GB • AT&T U-Verse 18Mb/2Mb
http://www.jeffhoppe.com
Reply With Quote
  #7  
Old February 26th, 2009, 07:42 PM
Registered User
 
Join Date: Feb 2009
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
bardamu is on a distinguished road
Quote:
Originally Posted by ElDiabloConCaca View Post
Do you get this when you launch Terminal for the first time?
I get it every time I launch Terminal now. I didn't used to get it.

Quote:
Originally Posted by ElDiabloConCaca View Post
What are the contents of your .bashrc and .bash_profile files, located in your home directory?
By home directory, do you mean Macintosh HD > etc ? If so, my .bashrc file reads...

Code:
# System-wide .bashrc file for interactive bash(1) shells.
if [ -z "$PS1" ]; then
   return
fi

PS1='\h:\W \u\$ '
# Make bash check its window size after a process completes
shopt -s checkwinsize
My .profile reads...

Code:
# System-wide .profile for sh(1)

if [ -x /usr/libexec/path_helper ]; then
	eval `/usr/libexec/path_helper -s`
fi

if [ "${BASH-no}" != "no" ]; then
	[ -r /etc/bashrc ] && . /etc/bashrc
fi
There is no .bash_profile...
Reply With Quote
  #8  
Old February 26th, 2009, 08:40 PM
ElDiabloConCaca's Avatar
Registered User
 
Join Date: Aug 2001
Location: San Antonio, Texas
Posts: 12,672
Thanks: 7
Thanked 388 Times in 370 Posts
ElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of light
No, I mean the .bashrc and/or .bash_profile file located in /Users/[yourusername]...
__________________
Mac mini 2.0GHz 10.6.2 • 4GB • 320GB • Superdrive • 4 x 1TB USB 2.0 • LED Cinema Display
MacBook 2.0GHz Core 2 Duo - White 10.6.2 • 4GB • 250GB • CD-RW/DVD-ROM
iPhone 3G 8GB • iPod Touch 8GB • iPod Photo 60GB • iPod nano 1GB • AT&T U-Verse 18Mb/2Mb
http://www.jeffhoppe.com
Reply With Quote
The Following User Says Thank You to ElDiabloConCaca For This Useful Post:
bardamu (February 27th, 2009)
Reply

Bookmarks

Tags
bash, command not found, root, terminal, unix

Thread Tools

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump


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


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC1
Copyright 2000-2010 DigitalCrowd, Inc.