gEDA-user: pcb -> shell command

DJ Delorie dj at delorie.com
Thu Feb 1 18:05:25 EST 2007


>   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.


More information about the geda-user mailing list