The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
to pick up the Return Code ( RC) from the mailx command and return it to SAS uisng 's manas6 UNIX for Dummies Questions & Answers 0 06-05-2008 03:44 AM
Return code of background process c19h28O2 Shell Programming and Scripting 3 04-06-2008 08:46 AM
getting the return code of forked child process (ftp) KittyJ High Level Programming 7 08-19-2007 12:44 AM
return code of a process filedeliver High Level Programming 1 04-18-2007 10:42 PM
background process return code Vikas Sood Shell Programming and Scripting 5 06-10-2006 06:25 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-18-2007
Registered User
 

Join Date: Apr 2007
Posts: 4
Stumble this Post!
return code of a process

two programs A and B writting in c++
I am using A to B and I want to know the return code of B.
in B
------------------------
int main()
{
return 11;
}
------------------------

in A
------------------------
int main()
{
system(A);
}
------------------------

Is it the right way to call B if I want the return code? If it is not, How?
Thanks a ton
Forum Sponsor
  #2 (permalink)  
Old 04-18-2007
reborg's Avatar
Administrator
 
Join Date: Mar 2005
Location: Ireland
Posts: 3,513
Stumble this Post!
Please read rule 4 (and the others)
Google The UNIX and Linux Forums
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 08:52 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0