Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about execv

Read more about execv

python (65.2k questions)

javascript (44.3k questions)

reactjs (22.7k questions)

java (20.8k questions)

c# (17.4k questions)

html (16.3k questions)

r (13.7k questions)

android (13k questions)

Questions - execv

c pipe ls returned strings to parent

I'm currently trying to run an ls command in my C code and then pipe the outputted strings to the parent process via a fd. The problem I'm currently facing is, that I execv the ls command but I don't ...
test-img

SourceCodeEngineer

c

pipe

execv

Votes: 0

Answers: 1

Latest Answer

To start, must call pipe on an int [2] to create a pipe. You have not done this. In the parent process: This read call read(fd2[0], "", 100); does not make sense. "" is a read-on...
test-img

Oka

Fork() and execv() not running in parallel, why?

I'm trying to run a series of commands through execv() and forking a new process in C to run each one, and yet for some reason they aren't running in parallel. The following code is run for each proce...
test-img

Fathom820

c

fork

wait

waitpid

execv

Votes: 0

Answers: 1

Latest Answer

If you don't want to wait for each child process, don't call waitpid immediately; as written, you fork a child, then immediately stop all processing in the parent until the child process exits, preven...
test-img

ShadowRanger

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved