Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!i2unix!inria!bull.bull.fr!clbull.cl.bull.fr!rudrak From: rudrak@saphir.cl.bull.fr (Rudrakshala Purushotham) Newsgroups: comp.unix.shell Subject: % /bin/sh -c /bin/ls -l -R ??? Message-ID: <346@clbull.cl.bull.fr> Date: 16 Nov 90 10:19:00 GMT Sender: news@clbull.cl.bull.fr Organization: BULL Les Clayes, FRANCE Lines: 19 Originator: rudrak@saphir I want run the command in subject from c-shell prompt. The problem is it goes through .login and runs /bin/ls only. I tried % /bin/sh -c "/bin/ls -l -R" it works as expected. What are the other ways of doing this. How does shell escape functions handle this in a C program using execv () ? Thanks for any help in advance. -- Purush -- R. Purushotham Email: rudrak@saphir.cl.bull.fr F7 1 D5 BULL SA Tel Off: 34627000 ext 3928 78340 Les Clayes sous Bois FRANCE Tel Res: 34604752 =======================================================================