Linux -Blue forest free software | Return to home page | Site Map | Search WWW | Contact Us |
Your current position : Homepage > Free Software > Technological exchanges >Application Programming


    

Blue Forest http://www.lslnet.com at 10:18 on June 6, 2006


Int system () problem

Why do I
#include "Sys/types.h"
Int main (void)
{
System ( "cd usr/acce/var");
Exit (0);
}

Unable to change the current list? ? ?

Int system () problem

Brothers, each process has a current catalog, but the process can influence a father son process.
So ah, indeed to change the current system catalog, but it is to change the system deployed in the process of formation, and the shell or not.

I humbly believe that programming to knock a few small changes to achieve the current list is not alphabetical (lazy pressure always think of only a few keys will be able to enter a long list).

But I have a solution can be achieved :

CDLOG= first [code]export "cd /usr/home/flw/chat/server/log" [/code]
In this way, we can then reuse $CDLOG!

Can also export sentence wrote. Profile, some of this easier.

Int system () problem

Indeed, we will not be able to see how the order cd system call!

Int system () problem

Chdir man

Int system () problem

To flw

Sure enough writer, what we can see of my mind. Really want to save. I also think it is not a sub-process can not change the process of the catalog father. But would like to know the specific reasons, know these, I wonder why they still play very painful.

Int system () problem

TO flw

Above understanding, it is not true. Sorry



 Privacy Policy  Copyright © 1999-2000 LSLNET.COM. All rights reserved. Blue Forest website owners. E-mail : Webmaster@lslnet.com