473,672 Members | 2,506 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

compiled program input


i have a compiled program named m.exe. when i execute it asks me to
enter a parameter like "me.dat". the coder didn't manage the argv for
this program and i only have the executable.

is there a vay to call this executeable from python and give parameters
to it?
m.exe
input1 ? me.dat
....


something like this

Feb 28 '06 #1
3 1221

i found something like

import os

os.system("c\\m .exe")

but it gives

An endfile record was detected in a READ statement (unit=40).
Error occurs at or near line 51 of _MAIN__
12

still don't have anything :(

Feb 28 '06 #2
me************* @gmail.com wrote:
i have a compiled program named m.exe. when i execute it asks me to
enter a parameter like "me.dat". the coder didn't manage the argv for
this program and i only have the executable.

is there a vay to call this executeable from python and give parameters
to it?
m.exe
input1 ? me.dat
....


something like this


does

echo me.dat | m.exe

work ?

</F>

Feb 28 '06 #3
:) yes it does. thank you very much fredrick.

Feb 28 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
4391
by: byte biscuit | last post by:
Hi there everybody! The problem is the following: we have a DLL (H2O.dll) - compiled in Visual Fortran - depending in turn on another DLL. H2O.dll contains only one (1) function, with a known name (WATER). The WATER function is called with the following parameters: - TT (datatype: double precision) - PP (datatype: double precision) - State (datatype: integer)
11
9462
by: James Hu | last post by:
This program is long. I don't really want to bore everyone with the details, but it handles wierd cases like: /\ * this is a comment *\ / #define FOO ??/* this is not a comment */ char *a = /* this is a comment "\*/"this is a string"/*" another comment */;
13
3321
by: walter | last post by:
I wrote a program, and found one line of source code not compiled out. I rewrote it for simplicity as below. The comment in the program is big5 code text. --- my program --- main(){ int i, a; for (i=0;i<3;i++) a=0; // ÁקK³Q·j´M¦¨¥\ a=-1;
12
2239
by: Wardeaux | last post by:
All, Wanting to find a way to create web pages to add to my website without having to recompile the codebehind everytime I want to add a new one... Here's the deal: I have a web app that takes work orders for 7 different items, each item gets 1 page for input specs. All works well. I want to add a new item. I do not want to recompile and redistribute my app everytime just to add a new input page. Can ASPX resources be compiled into a...
5
2085
by: Brian Kitt | last post by:
I have a C# application that builds dynamic HTML and renders it. Because it is rendered in this way, the input controls are not server controls. I write the entire page, which has a variable number of detail lines for an order. I want the user to be able to change values on these detail lines and hit an 'update' button. I know how to do this in Javascript, but I'd like to be able to inspect the controls that come back to my C# program...
3
2069
by: Chozomaster747 | last post by:
I'm in my last week in High School and my last program has seemed to have been shot. My teacher blames it on the computers and says that my program should run, but I have an error opening my files. This is my header: --------------------------------------------------------------------------- #include<iostream.h> #include<string.h> #include<fstream.h> #include<IO.h> struct carinfo { char vehicle,manu,model;
1
1235
by: David T. Ashley | last post by:
Hi, I'm using RSA Securid Tokens, and I'm going to write a little 'C' program that takes as input the userid (i.e. "jsmith") and the number displayed on the token (i.e. "123456") and returns a result code indicating whether authentication is successful. The compiled 'C' program will be called from a PHP script. I know that if I pass the parameters on the command line, i.e.
4
2518
by: =?Utf-8?B?Q1IgU3VwcG9ydA==?= | last post by:
Hi experts, We are trying to migrate from Visual Studio 6 (C++ project) on Windows 2000 to Visual Studio 2005 SP1 on Windows Vista but found that the migrated program runs slower in both OS. A looping section of the original program (compiled with VC6) running in Windows 2000 takes 400ms but the same program (compiled with VS 2005) in Windows Vista but copied to the Windows 2000 machine (together with the VC Redistribution libraries) to...
40
2340
by: castironpi | last post by:
I'm curious about some of the details of the internals of the Python interpreter: I understand C from a hardware perspective. x= y+ 1; Move value from place y into a register Add 1 to the value in the register Move the addition's result to place x
0
8418
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8940
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8840
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8628
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8694
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5718
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4237
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4433
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2083
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.