I have a C code..
i which I have following code for UNIX:
l_iRet = system( "/bin/cp -p g_acOutputLogName g_acOutPutFilePath");
when I am running the binary generated..I am getting the following error:
cp: cannot access g_acOutputLogName
Can any one help me out?
Presumably
g_acOutputLogNameandg_acOutPutFilePatharechar[](orchar*) variables in your program, rather than the actual paths involved.You need to use the values stored therein, rather than the variable names, for example: