Hi, Write a simple shell script and put the line "ls -l" in it.
Harshal. ----- Original Message ----- From: "Yash Dayal" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 04, 2002 1:11 AM Subject: [ilugd]: how to pass c output to shell?? > hello shell script gurus > > i have this query, > > i want to redirect the output of one c program directly to the shell.. > eg: > > test.c > void main() > { > cout << "ls -l" > } > I want the output of test.c to be passed to shell ..how do i do that. > > one way I found was > > ./test > tempFile > chmod +x tempFile > ./tempFile > > is there a direct way to do the above? > > Yash > > ================================================ > To subscribe, send email to [EMAIL PROTECTED] with subscribe in subject header > To unsubscribe, send email to [EMAIL PROTECTED] with unsubscribe in subject header > Archives are available at http://www.mail-archive.com/ilugd%40wpaa.org > ================================================= > ================================================ To subscribe, send email to [EMAIL PROTECTED] with subscribe in subject header To unsubscribe, send email to [EMAIL PROTECTED] with unsubscribe in subject header Archives are available at http://www.mail-archive.com/ilugd%40wpaa.org =================================================