LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Closed Thread
  Search this Thread
Old 11-02-2012, 10:06 AM   #1
mrneo
LQ Newbie
 
Registered: Nov 2012
Posts: 4

Rep: Reputation: Disabled
Question execlp() doesnt wait for the input??


i am just starting with programming in linux.i am trying to fork a child process and replace it with the "sort" program. below is the code iam using for this.

i expeceted that when i invoked sort programm it would wait for me to give it input but instead the program just terminates.

how can i make the child process take input interactively?
 
Old 11-02-2012, 10:16 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529
Please post your thread once and in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread should be closed because it is a duplicate of http://www.linuxquestions.org/questi...ut-4175435282/.

*Next time don't use your browsers "back" button but use the edit button below your original post to modify it.
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] bash script: wait for input from kdialog before doing sth. musonio Linux - Software 3 05-30-2011 12:28 PM
C++. cin does not wait for an input by the operator iqbala Programming 7 01-11-2010 01:32 PM
PHP (CGI) Wait For User Input? br00tal Programming 2 05-21-2008 12:03 PM
How to make a script wait for input farmerjoe Linux - General 2 12-28-2004 06:18 AM
Make script wait for input farmerjoe Linux - General 4 12-28-2004 02:49 AM


All times are GMT -5. The time now is 12:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration