The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > OS X (Apple)
Google UNIX.COM
Home Forums Register Rules & FAQ Members List Arcade Search Today's Posts Mark Forums Read


OS X (Apple) OS X is a line of Unix-based graphical operating systems developed, marketed, and sold by Apple.


Other UNIX.COM Threads You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
unix executable file problem on MAC OSX ??? please help chadb Filesystems, Disks and Memory 1 01-31-2008 03:23 PM
creating executable for every C file compbug UNIX for Dummies Questions & Answers 7 09-30-2007 01:03 PM
How to route error to log file in unix pinky UNIX for Dummies Questions & Answers 4 07-31-2007 08:48 AM
How can i read a non text file in unix - ELF-64 executable object file - IA64 alexcol UNIX for Advanced & Expert Users 4 07-20-2007 02:05 PM
problem in creating executable for a client program konas High Level Programming 2 11-17-2006 10:09 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #6 (permalink)  
Old 04-04-2008
Registered User
 

Join Date: Mar 2008
Posts: 10
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
You may want to look into the newest version of Textwrangler for OS X, I believe it has built in scripting features that allow you to write scripts and make them executable. If that is what you are looking to do.
Reply With Quote
Forum Sponsor
  #7 (permalink)  
Old 04-08-2008
Registered User
 

Join Date: Mar 2008
Posts: 12
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Wow, thanks tlarkin. You know I've seen this app before, but I just hadn't taken time to download it and play with it. I appreciate the tip, and I'll give it a whirl.

Reply With Quote
  #8 (permalink)  
Old 04-24-2008
Registered User
 

Join Date: Mar 2008
Posts: 10
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
sorry for the late follow up, but depending on what you want to do, you may want to make a launchd item.

That way it will run as a system daemon and always run, depending on what you want to accomplish.
Reply With Quote
  #9 (permalink)  
Old 04-25-2008
Registered User
 

Join Date: Mar 2008
Posts: 12
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Quote:
Originally Posted by tlarkin View Post
sorry for the late follow up, but depending on what you want to do, you may want to make a launchd item.

That way it will run as a system daemon and always run, depending on what you want to accomplish.
I'll give it a shot, thanks for the tip. -UMH
Reply With Quote
  #10 (permalink)  
Old 04-30-2008
Registered User
 

Join Date: Mar 2008
Posts: 10
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Quote:
Originally Posted by unimachead View Post
I'll give it a shot, thanks for the tip. -UMH
Basically, Apple decided to get rid of all other launch daemons and have one to rule them all, launchd. You can write a script and toss it, in lets say, /usr/sbin/myscript.sh

Next you can create a launchd item that will run at log in or start up for every user by placing the .plist file in /Library/LaunchDaemons

example:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>Label</key>
	<string>com.tlarkin.myscript.sh.plist</string>
	<key>Nice</key>
	<integer>-9</integer>
	<key>ProgramArguments</key>
	<array>
		<string>/usr/sbin/myscript.sh</string>
	</array>
	<key>RunAtLoad</key>
	<true/>
</dict>
</plist>
If you want it to run for specific users, you toss it in ~/Library/LaunchAgents for that particular user.
Reply With Quote
Google UNIX.COM
Reply



Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 03:09 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger

Search Engine Optimization by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102