Skip navigation
This discussion is archived

Running Terminal Commands at Login

1306 Views 2 Replies Latest reply: Nov 28, 2007 7:34 AM by Philip Buchanan RSS
Philip Buchanan Level 1 Level 1 (20 points)
Currently Being Moderated
Nov 27, 2007 5:49 PM
Hi everyone!

Just a quick question for anyone who may know the answer. I am trying to automatically run two terminal commands at login:

sudo pmset -a halfdim 0
sudo pmset -a halfdim 1

I have absolutely no idea what I am doing, so if someone knows and can help me out, that would be great! Thanks a lot!

~ Philip
PB G4 1.5GHz, 1GB ram, Readon 9700 | Mac Pro quad 2.66GHz, 4GB ram, ATI X1900 XT, Mac OS X (10.5.1), ACD 20"
  • jarik Level 4 Level 4 (1,005 points)
    Currently Being Moderated
    Nov 27, 2007 5:57 PM (in response to Philip Buchanan)
    Trying to make the screen wink at you when you login?

    You could install Platypus and create a little shell script with it and put it in your Login items. The script would be something like

    <pre class=command>sleep 30; sudo pmset -a halfdim 0; sleep 0.2; sudo pmset -a halfdim 1</pre>

    Those sleeps should be tweaked for the best effect. If sudo prompts you for a password, then it won't work.

    Message was edited by: jarik

    Hey man, check out the day we registered here!
    MacBook Pro, Powerbook G4, Mac OS X (10.5.1)


More Like This

  • Retrieving data ...

Bookmarked By (0)


  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.