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
          =================================================

Reply via email to