By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,385 Members | 1,115 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,385 IT Pros & Developers. It's quick & easy.

Running a script within a loop

P: 1
Hello,

I have a basic question. I would like to make running Arc.py several times with different input (R0.arg)and output (V0.art)
The idea is to repeat the command like this:

Arc.py R0.arg V0.art
Arc.py R1.arg V1.art
Arc.py R2.arg V2.art
Arc.py R3.arg V3.art
Arc.py R4.arg V4.art
Arc.py R#.arg V#.art
...
..
.
until #=1000.

Could you help me, please?
Jun 28 '12 #1
Share this Question
Share on Google+
1 Reply

Expert 100+
P: 626
If you want to run the program from another Python program, see the info on subprocess.call.
Jul 5 '12 #2

Post your reply

Sign in to post your reply or Sign up for a free account.