problem with using system(3S) on 3b1 v3.51

Laurent Lathieyre lath at geocub.greco-prog.fr
Mon Jul 16 23:58:26 AEST 1990


this a part of C code which uses the system(3s) command and
acts very strangely :

printf("command=%s\n",command);
system(command);

It must be noted that the main function uses argv, argc en env
variables.

When I execute the program, I get the following messages:
% a.out paramter1 parameter2
command=/usr/local/infotel/prog.sh
kw: is not an identifier
%

?? I don't understand what it happens, the command string is ok, but
seems to be not passed correctly to system...? I searched everywhere
the 'kw' pattern, it can be found in argv (char *argv[])...

the same code worked perfectly on HP-UX.

Strangely, system(3s) isn't in the permuted index of the ATT documen-
tation even if it can be found in 3s chapter.. ?


 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-     !\/!     It's         !\/!
|          Laurent Lathieyre          |    (oo)     Better       (o-)
| E-mail : lath at geocub.greco-prog.fr  |    =\/=     Manually     =\/=
 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 



More information about the Comp.sys.att mailing list