473,406 Members | 2,713 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Running a script within a loop

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
1 1779
dwblas
626 Expert 512MB
If you want to run the program from another Python program, see the info on subprocess.call.
Jul 5 '12 #2

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

Similar topics

3
by: runes | last post by:
Is it a more pythonic way of finding the name of the running script than these? from os import sep from sys import argv print argv.split(sep) # or print locals().split(sep) # or
2
by: Joe | last post by:
Iıve got a bunch of email addresses in a mysql table. I need a php script that will loop the results of a selection and format them so I can put them in a php mail() function. Iım not too swift...
7
by: markturansky | last post by:
I'd like to dynamically find and invoke a method in a Python CGI. In javascript, the running script is 'this' (Python's 'self'), except that 'self' is not defined. I want to do this: var m...
2
by: Rvo | last post by:
I have written an application that manipulates files, while doing so the program is running in a loop and any actions on the GUI will not get any response. When I try to stop the processing of the...
7
by: gmax2006 | last post by:
Hi, I use RedHat linux. How can I find where exactly the current python script is running? I use this code: #test.py import os,sys
0
by: mhodkin | last post by:
Is there a way to run a script within the editor of pyalamode? Or does one need to open and run the saved .py file?
1
by: Sean Farrow | last post by:
Hi: Is there any way to obtain the full path to the currently running script under win32? I am using the pythonw.exe file is that helps. Sean.
8
by: grikdog | last post by:
How to I capture stdout output from a system call and pipe it back into my running script? system "echo foobar"; # how to continue here with "foobar" in stdin ?? ... I can fake it with...
4
by: Bullitt | last post by:
Hey, I have a problem with a small program that I want to make. It's a script that keeps running by using a Do While loop. I want to stop the script when a certain key is pressed. But the problem...
2
by: gintrado | last post by:
I am very new to Python I'm trying to run a python script from within another python script. I can run the script from a unix command line by typing: nohup python script.py password >...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.