Re: help needed urgently



--- Tristan Van Berkom <vantr touchtunes com> wrote:
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
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


=====
"We should do smart things with stupid technology before we do stupid 
things with smart technology."
                              --Bill Buxton, Alias Research


Harring Figueiredo

__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site
http://webhosting.yahoo.com



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