Domain Name Forum

Domain Name Forum (http://www.domainnameforum.org/index.php)
-   Shell Scripting (http://www.domainnameforum.org/forumdisplay.php?f=130)
-   -   Shell script in C (http://www.domainnameforum.org/showthread.php?t=138170)

webdev 01-18-2011 10:55 PM

Shell script in C
 
Hi all, I have a proplem when embed shell into C code by Sytem() command. There is my code: char acCommand[512]; acCommand[0] = '\0'; sprintf(acCommand,"sed \'s/\\/\%s\\/g\' %s > %s", initParam.UDN, "/tmp/web/dmr.xml", "/tmp/web/dmr.xml.tmp"); printf("[%s]",...


All times are GMT -4. The time now is 08:50 PM.

Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.