473,729 Members | 2,064 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Execl() in windows

I am having a weird result with the execl() func under windows (i know
its meant for unix).
When I put the execl in a piece of code then run the app and when I
give a value to execl all it does is rerun the prog or rerun just
main() I dont know which.
Is this normal? Is it ok to use this if i want to loop my app?
I tried looking it up on google but didnt find anything.
This is actually pretty useful to me altough unusual.
Maxime F

Nov 15 '05 #1
1 6176
"shalombi" <sh******@gmail .com> writes:
I am having a weird result with the execl() func under windows (i know
its meant for unix).
When you post this question to a more appropriate newsgroup, probably
comp.os.ms-windows.program mer.misc, be sure to provide more details,
such as the actual arguments you're passing to the (non-standard)
execl() function. Even knowing what execl() does, I can't tell from
your description what you're trying to do.
When I put the execl in a piece of code then run the app and when I
give a value to execl all it does is rerun the prog or rerun just
main() I dont know which.

I don't know what distinction you're making here (between running the
program and running just main()). This is something else you should
clarify when you post to a Windows group.

Keith Thompson (The_Other_Keit h) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Nov 15 '05 #2

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

Similar topics

by: python newbie | last post by:
Can anyone tell me why this would cause "Invalid Number of Parameters" while trying to compile (or interpret or whatever) import os os.execl("C:/WINDOWS/system32/xcopy.exe","E:/MainWeb/dreampics/*.*","E:/Main Web/dp") Here's what the Python reference says: execl(path,arg0, arg1, ...)
by: Chris Green | last post by:
Hey folks, I'm whipping up a quick CGI to wrap a command line app and I was a bit suprised to not find a execl-like Popen3 style object. I don't want to bother with the shell interpreting metacharaters by constructing a command line. Basically, I want something that acts just like Popen3 but allows me to specify cmd as a path + args. Does something like this exist in the standard library? If not, it sounds like a good candidate...
by: Erik Johnson | last post by:
Hi, I am trying to use Python to remap stdout and stderr to a log file for an exec()'ed program. The following code seems to work fine for the script itself, but my expectation was that the exec'ed program would inherit its STDIN and STDOUT and so would be printing to the log file also. Unfortunately, that is not the case: the print statements in the spawned process come back to the screen. So... I'm a little puzzled and am not finding...
by: erniedude | last post by:
Hi, I'm a newbie and I was wondering if anyone knew a (Python) script to run 4 batch files, one after the other (assuming the directories are known). It would be better if all 4 batch files could run simultaneously, but that might break Windows... ;) The problem I had was I couldn't get the files to RUN, only to OPEN. Thanks for the help!!! pseudo-code looks like this
by: Bell, Kevin | last post by:
I'd love to be able to open up a windows folder, like c:\temp, so that it pops up visually. I know how to drill down into a directory, but I can't figure out how to open one up on screen. Would I have to make a call to windows explorer in a similar way that I hit Excel with: from win32com.client import Dispatch Excel = Dispatch("Excel.Application") Any clues?
by: PC | last post by:
Is it possible to create pipe()s (stdin/stdout) for a child process and forking a shell with execl() and controlling the shell's stdin/stdout from the parent with select()? Heres a little snippet of code. it doesnt actually work.. but it is how I envisioned it:: if((n=accept(s,(struct sockaddr *)&remote,&sz))==-1) {printf("accept\n"); exit(0);} close(0); close(1); close(2); pipe(&i);
by: kisshug | last post by:
i 'm working on a project in that i have 2 use 'execl' function can any one give how to use this function with 2 small programs in unix environment. -- kisshug Message posted via http://www.exforsys.com for all your training needs.
by: antoniosk | last post by:
I have a problem calling a compiled program (for example hello.exe which stands for hello world) from another program (let's say time.exe) with execl function /* program time.c */ #include <stdio.h> #include <unistd.h> main (int argc, char *argv) {
by: vishalgupta | last post by:
while working on vb we can work with acess and sql as backend but can we work with execl in backend ......is it efficient and easier to work with execl in backend or access in backend and why??
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
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...
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...
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
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();...
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.