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

Re: gEDA-user: pcb -> shell command



>   for (i = 0; i < argc; i++)
>     {
> 	system(argv[i]);
>     }

Are you sure this is what you want?  I.e. System(make,ls,echo) runs
three commands?  The lesstif GUI allows spaces in its command window,
so ":system ls -l" tries to run "ls" then runs "-l".

Maybe you should concatenate the arguments with spaces into a single
command line?

Also, you should check the exit code of the command, and fail the
action if the command fails.


_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user