Results 1 to 2 of 2
  1. #1

    Member Since
    Aug 31, 2009
    help: lingon terminal command at startup python string
    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 Attached Images

  2. #2

    Member Since
    Aug 31, 2009
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. I entered string into terminal - how to reverse action
    By rowlandville in forum Security Awareness
    Replies: 9
    Last Post: 02-04-2015, 11:04 AM
  2. Please help me with this Terminal command
    By nowakchr in forum OS X - Operating System
    Replies: 2
    Last Post: 12-12-2010, 11:39 AM
  3. Color in Terminal with Python
    By pae in forum OS X - Operating System
    Replies: 0
    Last Post: 07-15-2008, 08:31 PM
  4. Creating an application to run a terminal command on startup?
    By Starky in forum OS X - Apps and Games
    Replies: 7
    Last Post: 11-27-2007, 12:57 AM
  5. Replies: 4
    Last Post: 03-20-2005, 06:17 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts