The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
changing multiple directory names w/ sed RahJiggah OS X (Apple) 1 11-05-2007 09:55 AM
Changing Directory Using SFU ilak1008 Windows & DOS: Issues & Discussions 1 05-21-2007 11:50 PM
/root directory - date keeps changing??? Alux Linux 1 03-16-2006 02:28 AM
Changing directory through script mrgubbala UNIX for Dummies Questions & Answers 5 02-11-2005 06:12 AM
Changing directory on Unix taher_n UNIX for Advanced & Expert Users 3 06-04-2002 09:45 PM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-05-2003
Registered User
 

Join Date: Sep 2002
Posts: 25
Question changing directory on server

hi,
I'm doing to some simple socket programming.
I have a client that connects to the server and request stuff.
For example, if the client type in "ls", that command will be sent to the server and the server will send back the ls information the client requested. Similarly, if the client type "pwd", the server will send back the current working directory (ie, /home/program) to the client. Now if the client type in "cd newfolder" to change directory to a new folder, and since the program is running on the current directory already, it can't change to another directory. How can this be done?
thanks.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 12-05-2003
PxT's Avatar
PxT PxT is offline
Registered User
 

Join Date: Oct 2000
Location: Sacramento, CA
Posts: 905
In C you generally use chdir()
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 10:15 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0