473,404 Members | 2,187 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,404 software developers and data experts.

How do I rerun a progrom outside the shell?

I wrote a very basic program to calculate the slope of a pipe

Expand|Select|Wrap|Line Numbers
  1. firstElev = input ("Enter first elevation")
  2. secondElev = input ("Enter second elevation")
  3. length = input ("Enter Length")
  4.  
  5. promil = ((firstElev - secondElev)/length)*1000
  6.  
  7. print "Promil =",promil
  8.  
Currently I run the program in the python shell and have to run it every time I need it to calculate the slope.
This can be tedious when I have many slopes to calculate.
How can I:
1. Have the program run outside the shell in it's own window
2. Have the program keep running until I type something like 'quit'?
Dec 21 '10 #1
0 1072

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

Similar topics

7
by: Oliver Gräser | last post by:
Hej, I want to run batchfiles via the Shell, but accessible in the Browser via IIS. Actually, I'd like the server to start a command line ntbackup if a users selects to do so on an ASP in his...
3
by: Eli Criffield | last post by:
I'm try run an ssh command in pexpect and I'm having trouble getting everything escaped to do what i want. Here's a striped down script showing what i want to do. -- #!/usr/bin/env python...
10
by: Spencer | last post by:
Is it possible to execute procedural language outside of a procedure in DB2 Command Center? For instance I need the ability to declare some variables and do some conditional processing similar to...
5
by: Stuart Dee | last post by:
Hi, I have created a com+ component with vb dot net using jit activation and transactions If i call it like this x=createobject("mycomp") x.dispose
5
by: portroe | last post by:
Hi, how can I get my forms program to perform a particular action again if the incorrect format is entered, I have tried GOTO line xxx
1
by: Feng | last post by:
Hi, I am currently experiencing a wired issue. Every time I start my my dev server machine to run my ASP.Net app, the IIS server is not functioning - I get page can not be displayed error and I...
6
by: bill | last post by:
I have a VB .net 2.0 site that needs to run a dos app upon a button click. I found Shell too unreliable using parameters and so used system.diagnostic.process. simple troubleshooting...
0
by: tomko | last post by:
Hi, When I start a console program using the Process calss inside the Visual Studio IDE (debug) all the output is redirected to my stream reader. But when I run the same program from outside the...
6
by: Aggelos | last post by:
Hello, Is it possible to run a script that will be used from all the websites on the server outside of the web dir ? At the moment for every site I have I upload the script in the web dir of the...
63
by: socondc22 | last post by:
So i have a question on how i should start doing this... pretty new at c++ i have to ask the user for an integer, an operator, and then another integer to give an answer. But i also have to show...
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.