Hi,
Im doing a testing for taking the previous values of dbgname and export the values to the new variable (CDUMAPDBGNAME_NEW), but it doesn't output the value when i do the echo $CDUMAPDBGNAME_NEW statement. Anyone can help me on this?
#include <stdio.h>
#include <string.h>
main (int argc, char **argv)
{
char dbgname [300];
char g_route [3+1];
char g_area [3];
char command[300];
int status;
strcpy (g_route, "1000");
strcpy (g_area, "AAA");
sprintf(dbgname,"mobileup.%s.%s.debug", g_route, g_area);
//printf("mobileup.%s.%s.debug", "1000","AAA");
printf("dbgname=[%s]\n",dbgname);
sprintf(command,"export CDUMAPDBGNAME_NEW=%s",dbgname);
printf("command=[%s]\n",command);
status=system (command);
printf("status=[%d]\n",status);
return 0;
}