Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
138 user(s) are online (96 user(s) are browsing Forums)

Members: 2
Guests: 136

TheMagicSN, emeck, more...

Headlines

 
  Register To Post  

Return Codes
Quite a regular
Quite a regular


See User information
I want to be able to get the exit status of a C program. I can do that in the SH context:

./main ; echo $?


Can this be done in a normal shell environment without the SH context? It seems that return code is totally not the exit status of the main function. For that matter, how to set a proper Amiga return code? With a program that returns "10", followed by "why" I still see that the program did not set a return code.

Thank you.

If liberty means anything at all, it means the right to tell people what they do not want to hear.
George Orwell.
Go to top
Re: Return Codes
Just can't stay away
Just can't stay away


See User information
Not sure whether those are what you're looking for, but try echoing $RC and/or $Result2 after executing the program.

Best regards,

Niels

Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project