[wellylug] Programming Question
Jonny Robertson
jonny at prophecy.net.nz
Sat Nov 29 12:13:19 NZDT 2003
At that point, look at man exec() again, or snprintf() the string you
want to execute into an appropriate buffer, and call system(buf);
-jonny
Jethro Carr wrote:
> On Thu, 2003-11-27 at 20:55, Chris Harris wrote:
>
>>>>> hi,
>
>
>>/* docp.c */
>>int main(){
>> system("cp docp.c docp.copy&");
>> return 0;
>>}
>
>
> Ahh, a new question....
>
> How can I use a variable for the input, ie:
>
> system("touch <variable>");
>
> thanks,
>
>
--
Jonny Robertson
Security Engineer
Prophecy Networks Ltd
+64 21 890505
More information about the wellylug
mailing list