GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  Programming  >  C

 Print  |  
Question:  Execute Shell Command

Answer: How will you execute shell command without using system command in C-language? Write a program to execute ls -l and redirect the output to a file, without using system command ?


April 04, 2009 03:00:41 #1
 phanirvcse   Member Since: April 2009    Total Comments: 1 

RE: Execute Shell Command
 

You can use exec family of system calls to get the job done. Its a nice experience, go ahead and explore it.

     

 

Back To Question