I want to have variable parameters for sytem command in unix
Hi! I had typed the following code in c
printf("enter directory name: ");
the programmer compiles without any error using in gcc.
but when I run it and enter dirname it says can't cd and shows some junk value.
All I want is a way to pass a variable to system command ! PLS HELP REALLY URGENT!!!!!!!!!!!
The code works for ls command but not for cd command.The earlier error I ahve debugged but ls works but cd command doesnt!!! I cant understand why?????
|All times are GMT. The time now is 07:52 PM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.