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 > Pico 'RC' file and Single User Mode

Pico 'RC' file and Single User Mode
Thread Tools
Fresh-Faced Recruit
Join Date: Sep 2007
Status: Offline
Reply With Quote
Sep 24, 2007, 03:49 PM
 
I did something stupid. I modified '/ect/rc' with two lines of code. I have done this before without
and problems but I have one now. Basically I had the lines

'open /path/to/desktopmanager.app'
and
'cd /path/to/smackbook/ ;perl smack.pl'

My problem is my computer is stuck at the start up screen on every boot. I assume this is the case since
I instructed the rc file to load a perl script, and won't let me complete the boot untill the perl
script is done executing. The fact is this perl script never stops executing because it needs to monitor
the sudden motion sensor.

So I booted into single user mode and typed 'pico /ect/rc' but it says file not found.

What is the correct command so I can use the terminal program 'pico' to edit the rc file so I can bring
myself to a previous working state?
     
Fresh-Faced Recruit
Join Date: Sep 2007
Status: Offline
Reply With Quote
Sep 24, 2007, 03:59 PM
 
Im such a fool the path to rc file is /etc/rc not /ect/rc
     
Mac Elite
Join Date: Oct 1999
Location: San Jose, Ca
Status: Offline
Reply With Quote
Sep 24, 2007, 06:38 PM
 
I am a little worried about you launching something with 'open' from /etc/rc. That gets launched by root, and there is a good chance that when /etc/rc goes that the WindowServer is not available (needed by just about every .app). I think you should make a login item of that instead:

Apple Menu -> System Preferences->Accounts->You Account->Login Items
     
   
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:41 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