473,396 Members | 1,933 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,396 software developers and data experts.

C language "execv"

lgomez8801
Newbie
1 Posts Today
07:37 PM
#1


C language "execv" question
--------------------------------------------------------------------------------

main()
{
execv("Filter.EXE",NULL)
printf("\n executed the file\n");
getch();
}

What I am trying to do is execte the file Filter.exe and try to get the controll back to my program. Filer executes properly, but the printf statement doesnot work. I dont have the source code for filter.exe. Can some one help how to get back the control to my program.

L Gomez
Sep 25 '07 #1
2 2639
JosAH
11,448 Expert 8TB
Hi, please do ask your questions in the C/C++ Forum section, not in the C/C++
Articles section. I'll move your question to that forum for you.

kind regards,

Jos
Sep 25 '07 #2
oler1s
671 Expert 512MB
The exec family of functions are newbie traps. That's because the temptation is to guess that execv "executes" either code or an executable separately. Reading the documentation hits something more indepth:
The exec family of functions replaces the current process image with a new process image.
If you just want to run another program, use the system function, declared within stdlib.h .
Sep 26 '07 #3

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

Similar topics

2
by: Tim | last post by:
Maybe I've been working too long, but has anyon had their python interpreter stop taking commands. The IDLE version works fine, but under Windoze: 1) execute "python" in teh command shell 2)...
2
by: ramasubramanian.rahul | last post by:
i am trying to implement the unix command ls -l | wc -l in c...( using pipes and excev) its not working.... can anyone help me here ??? thanks in advance rahul #include<stdio.h> 2 #include...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
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,...

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.