There is a program that I need to run several times and pass different arguments to it every time. For this, I tried to write a simple python script as follows:
import sys, os from os.path import join
The reason I use "open" is the ability to run the application several times. Is the correct command to use open? Any suggestions on how to do this? Working with linux / mac is very new to me.
Thank!
Edit - Here is the code that solved the problem for me:
p0 = subprocess.Popen(['./AppName.app/Contents/MacOS/AppName', '-AppCommandLineArg']) p1 = subprocess.Popen(['./AppName.app/Contents/MacOS/AppName', '-AppCommandLineArg'])
Hurrah!
command-line macos
user111343 Oct 15 '09 at 2:14 2009-10-15 02:14
source share