Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. vittopaparazzi

    How to get value of "$?", determine if program terminated with error.

    Both of your solutions save the output of the C program to disk before processing with the AWK script. I wish this was an option, but the AWK script is running on a small, embedded device with extremely limited DOC (Disk On Chip) memory. In fact, I didn't mention this before, but the main...
  2. vittopaparazzi

    How to get value of "$?", determine if program terminated with error.

    I'm using AWK to parse the output of an executable program written in C. In some circumstances, the C program will terminate with an error and return a non-zero value. In regular shell scripting you could always check the value of the $? variable to see if it was non-zero, and then branch...

Part and Inventory Search

Back
Top