🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #1789

% /bin/sh -c /bin/ls -l -R ???

#1789
From: Rudrakshala Purushotham
Date: Fri, 16 Nov 1990 10:19
19 lines
1065 bytes
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
=======================================================================
Technical Details
Message-ID: <346@clbull.cl.bull.fr>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!i2unix!inria!bull.bull.fr!clbull.cl.bull.fr!rudrak

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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