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 > Alias/BASH/Kismac

Alias/BASH/Kismac
Thread Tools
Forum Regular
Join Date: Nov 2002
Status: Offline
Reply With Quote
Jan 22, 2003, 09:51 AM
 
Okay I tried the suggestions from previous post but for whatever reason I can not get it to work.

I have Kismac set up on my ibook and along with Kismac comes the option of closing the lid without putting the ibook to sleep. This has been a feature Apple did not implement due to I assume possible heat issues to the screen. But anyway, it works. In order for Kismac to do this, it has to replace the kernel with it's own customized kernel (It backups your old Kernel in case). The command to turn off sleep is rather long and difficult to remember so I wanted to use alias.

A little background, I changed BASH to be my default shell. So I went to .bashrc in my home directory and typed the following commands

>alias sleepoff sudo command to turnoff sleep

Well, I save this in the .bashrc and then close and restart the terminal.

I type in sleepoff and the command prompt tells me command not found.
What am I missing?

Thanks
     
Junior Member
Join Date: Jan 2003
Status: Offline
Reply With Quote
Jan 22, 2003, 03:19 PM
 
You want to put this in .bash_profile, the terminal opens a login shell so .bashrc isn't run.
     
Junior Member
Join Date: Jan 2003
Status: Offline
Reply With Quote
Jan 22, 2003, 03:25 PM
 
That and, the correct syntax is:


alias sleepoff="sudo command to turnoff sleep"
     
Forum Regular
Join Date: Nov 2002
Status: Offline
Reply With Quote
Jan 22, 2003, 09:34 PM
 
Originally posted by Tritium:
That and, the correct syntax is:


alias sleepoff="sudo command to turnoff sleep"
Thanks tritium, In my haste to post the message I forgot to code in BASH vs. TCSH
     
Forum Regular
Join Date: Nov 2002
Status: Offline
Reply With Quote
Jan 22, 2003, 09:41 PM
 
Originally posted by Tritium:
That and, the correct syntax is:


alias sleepoff="sudo command to turnoff sleep"
Thanks tritium, In my haste to post the message I forgot to code in BASH vs. TCSH
     
   
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:36 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