A
aki
Hi Guys ,
I want to use system function in C to do the following work.
1. g_config_info.cpmm_config.cpm_log_path=\var\log\
2. p_g_log_limit_info[thread_id]->file_name= cpm_cpmd_1.log
system("cp (g_config_info.cpmm_config.cpm_log_path)+
(p_g_log_limit_info[thread_id]->file_name)
+'.'+'1' (g_config_info.cpmm_config.cpm_log_path)+
(p_g_log_limit_info[thread_id]->file_name)+'.'+'2'");
I am doing like this but it is not working . It seems the command
being executed is
cp \var\log\cpm_cpmd_1.log.1\var\log\cpm_cpmd_1.log.2
CAn anybody help .
regards
Akhielsh
I want to use system function in C to do the following work.
cp said:>\var\log\cpm_cpmd_1.log.1
1. g_config_info.cpmm_config.cpm_log_path=\var\log\
2. p_g_log_limit_info[thread_id]->file_name= cpm_cpmd_1.log
system("cp (g_config_info.cpmm_config.cpm_log_path)+
(p_g_log_limit_info[thread_id]->file_name)
+'.'+'1' (g_config_info.cpmm_config.cpm_log_path)+
(p_g_log_limit_info[thread_id]->file_name)+'.'+'2'");
I am doing like this but it is not working . It seems the command
being executed is
cp \var\log\cpm_cpmd_1.log.1\var\log\cpm_cpmd_1.log.2
CAn anybody help .
regards
Akhielsh