Xref: utzoo comp.sys.att:9990 unix-pc.bugs:130 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!inria!geocub!geocub.greco-prog.fr!lath From: lath@geocub.greco-prog.fr (Laurent Lathieyre) Newsgroups: comp.sys.att,unix-pc.bugs Subject: problem with using system(3S) on 3b1 v3.51 Keywords: system(3s) - 3b1 - bug Message-ID: <203@geocub.greco-prog.fr> Date: 16 Jul 90 13:58:26 GMT Sender: lath@geocub.greco-prog.fr Organization: University of Bordeaux I - FRANCE Lines: 29 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 =\/= -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-