The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Carreer:Networking Programming in Unix (C programming Language) vibhory2j UNIX for Dummies Questions & Answers 5 09-05-2008 07:57 PM
Unix Systems Programming Vs Unix Programming BCarlson Shell Programming and Scripting 0 05-24-2006 02:34 PM
programming question... sorta 01000101 UNIX for Dummies Questions & Answers 2 05-17-2006 07:14 AM
programming question from a newbie, please help milenky High Level Programming 1 10-11-2002 10:15 AM
Question about Shell Programming IMPORTANT Shell Programming and Scripting 3 03-26-2002 04:22 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 09-23-2000
dragonrebornV dragonrebornV is offline
Registered User
  
 

Join Date: Sep 2000
Location: MD
Posts: 2
All right I am currently writing a c function in unix... and is trying to create a child shell to execute various command along with its arguments such as

ls

cd "directory name"

yeah it is a bit redundant, but I am just beginning and this seemed like a good exercise


but for some reason every command work except for my

cd command....

no matter what I remain in the root directory instead of going to the destrination directory....

I am using execvp if I successfully create a fork... and have the parent pid wait until the child pid has finished it functions before proceeding....

I am guessing so far now is that whenever I close the child directory, any non-permanent (such as mkdir) are ignored as I close that child thread and open a new one....

again I am only guessing at this... is there anyone who might see me through this.... Thanks....
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:47 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0