linux - change terminal directory using c language -
i trying alter directory of linux terminal using c language. thing using threads. have tried utilize chdir() not working, n yes chdir() process function. thing trying implement is, trying create multi threaded programme compiles linux kernel, , not possible without specifying directories( have tried without specifying directories failed :) )
can help me out issue?
thanks in advance :)
you can't! no process can alter working directory of another. process can alter own wd. when launch external command such c program, new process launched. cd
command of shell internal one.
c linux terminal
No comments:
Post a Comment