Run command at login/startup. - Tech & Computer Forums

Go Back   Tech & Computer Forums > Computer Software > Apple and Mac
Closed Thread
 
Thread Tools Display Modes
 
Old 03-21-2012, 10:05 AM   #1 (permalink)
Wizard Techie
 
Join Date: Sep 2005
Location: /home/jason
Posts: 3,012
Send a message via AIM to Jayce
Default Run command at login/startup.

I'm finding nothing but dead ends in this department and it's making me wonder if there's a way I can actually do what is seemingly a basic task. I want to run a command at either startup or login, either one will work. How would I do it?

I see /etc/rc.local has been deprecated, so that's out. I read a little bit about some sort of a custom plist but it looked like the target was different than what I was after. I also read about a login hook, which sounds like it's the best bet so far.

The only other option that I thought MIGHT work was to create a bin/bash script, chmod +x it, and add it to "login items" for my user account under system preferences.

Is there a way to make this happen?

EDIT - seems as if I can get a work around to making it function as I had hoped. If I set the .sh script to open with terminal, it'll launch terminal and complete. It's not exactly hidden, but the terminal output simply says "process completed" with the already-launched command above it. What I had to do was create a script that I just stored in my home directory. To test I just put #!/bin/bash, then mkdir /Users/Jason/Desktop/HELLOWORLD. System preferences - accounts, login items, add script to login item (but again make sure it launches in terminal).

At any rate, this will work. But, eh... is there a quieter, more backgrounded (and less cumbersome) way to accomplish this?

__________________
There's no place like /home.
Jayce is offline  
Closed Thread

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Long delay for Startup programs to run after startup fastfitzy Microsoft Windows and Software 23 07-14-2008 10:48 AM
Trying to reinstall linux suse 10.1 grub but getting a login command samuraiwarrior Linux and Open Source 4 09-13-2006 08:37 PM
How do i get rid of command prompt login in xp? suicide007 Microsoft Windows and Software 1 07-11-2006 11:02 PM
Program Startup On Login? Torx Microsoft Windows and Software 2 12-12-2005 01:23 PM
Startup command? meepins Microsoft Windows and Software 3 12-20-2004 11:28 PM


All times are GMT -5. The time now is 06:52 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO