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, 10:04 AM
  2. Please help me with this Terminal command
    By nowakchr in forum macOS - Operating System
    Replies: 2
    Last Post: 12-12-2010, 10:39 AM
  3. Color in Terminal with Python
    By pae in forum macOS - Operating System
    Replies: 0
    Last Post: 07-15-2008, 07:31 PM
  4. Creating an application to run a terminal command on startup?
    By Starky in forum macOS - Apps and Games
    Replies: 7
    Last Post: 11-26-2007, 11:57 PM
  5. PYTHON PROGRAMMERS!!! how do i compile/run linux-based python code on OS X
    By pkny in forum macOS - Development and Darwin
    Replies: 4
    Last Post: 03-20-2005, 05: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