On Thu, 23 Jul 1998, Ibrahim F Haddad wrote:
> Hello all,
Hi.
This is m 1st reply.. I hope that I don't wrong in which i will say.
> However, i added some more functionality as i made the file
> name specified by the user in a (char *fileName);
>
> So, how i do a system call with a variable name since the system
> call would then search for file fileName?
The 1st method that I have think is this:
{
...
char sys_string[1024];
...
bzero(sys_string,1024);
strcpy(sys_string,"slider 10 | fit_it -f ");
strcat(sys_string,fileName);
strcat(sys_string," -xmgr | xmgr-dynamic -source stdin&");
system(sys_string);
...
}
Nothe that the system call (in my example) can not to be grater then 1024
chars (it is some limit)..
Bye bye and sorry for my bad english
ciaoz
--
Morelli 'ZioBudda' Davide Michel - Member of Pluto Linux User Group
[EMAIL PROTECTED] - http://www.dau.ing.univaq.it/~ziobudda/
Linux Problem? Ask to [EMAIL PROTECTED]
"/dev/ziobudda: access to /var/tmp/beer denied, use /var/adm/pineapple"