Re: help needed urgently



I think we could all agree on the fact
that the following function will call
the script "script" with the argument "command".
exactly as if you were in the shell and typed

[user host `pwd`]$ ./script command

and that ent1, ent2 command variables are
unused.

but what is the problem ?

void okpressed()
{
    char *ent1 = "111.111.111.1";
    char *ent2 = "512";
    char command[3];
    command[0] = ent1;
    command[1] = ent2;
    system("./script command");
}


nilesh wrote:

hello,

i m new to gtk programming and now in big trouble. i m using the
following function to pass parameters

void okpressed()
{
   char *ent1 = "111.111.111.1";
   char *ent2 = "512";
   char command[3];
   command[0] = ent1;
   command[1] = ent2;
   system("./script command");
}
here i m actually calling a script. the same function is executed
if values are sent to it directly.
plz help me.

regards
nilesh

__________________________________________________________
Give your Company an email address like
ravi @ ravi-exports.com.  Sign up for Rediffmail Pro today!
Know more. http://www.rediffmailpro.com/signup/

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]