lath@geocub.greco-prog.fr (Laurent Lathieyre) (07/16/90)
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@geocub.greco-prog.fr | =\/= Manually =\/= -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-