• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
using bless to change boot device [yet again]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

using bless to change boot device [yet again]


  • Subject: using bless to change boot device [yet again]
  • From: Herbert <email@hidden>
  • Date: Sat, 20 Aug 2005 11:58:05 -0700

I am making a little utility to change the boot volume from a menu. I do this a lot for testing.

I am using bless to change the boot volume.

If I'm logged in as root then it's fine, but if I'm not, I have to use sudo.

I have been unable to figure out how to do this.

I am trying to use either system (sudo bless etc) or popen and fread to do this.

sudo wants the password on another line, not on the same line, and there seems to be no way to get it on the same line.

Once system or fread is called, I have been unable to figure out how to feed it the password.

So I'm stuck. Is there another way? Can sudo be convinced to change it's ways?

The OS can do this via the System Preferences control panel, so how are they doing it?

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: using bless to change boot device [yet again]
      • From: Nick Zitzmann <email@hidden>
    • Re: using bless to change boot device [yet again]
      • From: Milton Sagen <email@hidden>
  • Prev by Date: Re: using bless to change boot device [more info requested]
  • Next by Date: What To Do w/ ADC Ref Library Update
  • Previous by thread: Re: using bless to change boot device [more info requested]
  • Next by thread: Re: using bless to change boot device [yet again]
  • Index(es):
    • Date
    • Thread