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  >  Operating System  >  Shell Scripting

 Print  |  
Question:  Shell Scripting Commands

Answer: In shell scripting How to indentify that the previous command was run successfully?


May 05, 2009 11:46:06 #2
 dominic_pc1   Member Since: May 2009    Total Comments: 1 

RE: Shell Scripting Commands
 
echo $?

if the output of command is 0 than succesfully executed
if the output is non -zero than not successfully executed.
     

 

Back To Question