os.system("D:\\C++ Projects\\basic.exe <arg here> ")
How can i make this working..
I want the arguments to enter in python too when calling the program.
tnx for your time




Posted 31 January 2011 - 02:49 PM
os.system("D:\\C++ Projects\\basic.exe <arg here> ")
Posted 01 February 2011 - 05:51 AM
my $arg="me";
system("\"C:\\Program Files\\c++\" program.exe \"$arg\"\r\n");
Posted 01 February 2011 - 06:07 AM
arg = raw_input("Enter an argument") #Ask the user to enter an argument
os.system("D:\\C++ Projects\\basic.exe %s ") % arg
This post has been edited by Simown: 01 February 2011 - 06:11 AM
Posted 01 February 2011 - 06:14 AM
Quote
Posted 01 February 2011 - 09:09 AM
arg = 2
os.system("D:\\C++ Projects\\basic.exe %i ") % arg
arg = 2
os.system("D:\\C++ Projects\\basic.exe %s ") % str(arg)
This post has been edited by Simown: 01 February 2011 - 09:10 AM
|
|
Query failed: connection to localhost:3312 failed (errno=111, msg=Connection refused).
|
