New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

Start a Discussion

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

help: lingon terminal command at startup python string

Post Reply New Thread Subscribe

Thread Tools

Member Since: Aug 31, 2009
Posts: 7
lawlist is an unknown at this point

lawlist is offline
Can anyone please help me figure out how to have a simple command string run in the terminal every time I startup, and have the terminal window close automatically when it is done? I have lingon, which should make it easy, but I still need help. I created a "user agent", but it doesn't seem to be doing the trick and there are no error messages. Here is the string I need to run from terminal every time the computer starts up (and then close the terminal after the string is run):

python /Applications/python-client/ -t 22:2222 &

Or get to the directory /Applications/python-client, and then run

python -t 22:2222 &

Attached Images
File Type: png lingon.png (89.1 KB, 4 views)
QUOTE Thanks

Member Since: Aug 31, 2009
Posts: 7
lawlist is an unknown at this point

lawlist is offline
I wrote a simple shell script with 755 permissions and used lingon to execute the shell script with a user agent -- command string "sh [path to shell script]".


# iphone usb ssh script

/Applications/python-client/ -t 22:2222 &

However, I was unable to figure out how to force the full command string to execute without a shell script just by running a user agent at logon -- the farthest I got was executing without the arguments, and am not sure why the arguments are not recognized -- looking in /var/log/system.log revealed that was being executed without arguments despite the user agent containing the arguments.
QUOTE Thanks

Post Reply New Thread Subscribe

« Backup for Windows | need help with os x!!! »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
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
Forum Jump

Similar Threads
Thread Starter
Last Post
Python Apache problem ssdesign OS X - Operating System 0 07-12-2010 12:57 AM
Creating an application to run a terminal command on startup? Starky OS X - Apps and Games 7 11-26-2007 11:57 PM
Just How Secure Are the 'Reset Safari' & 'Erase Free Space' Facility? scoot OS X - Operating System 3 05-30-2007 05:28 PM
Mac OS X startup key sequences iMaciforums OS X - Operating System 0 01-16-2007 10:50 PM
Problem with terminal, always runs Fink task at startup thomanil OS X - Operating System 3 07-03-2005 05:00 PM

All times are GMT -4. The time now is 12:57 PM.

Powered by vBulletin
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.

Welcome to

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!

(4 digit year)

Already a member?