in reply to How to exit a system call

G'day boardman411,

Welcome to the monastery.

Without seeing the context of the system call within your code, or knowing what ProgramName does, it's a little hard to give a definitive answer. I'm also unsure as to what you specifically want to do: suppress output? capture output? send a Ctrl-C? run in the background? some combination of these? something else?

Here's a few suggestions, in no particular order:

[Aside: A better question will get better answers. Take a look at the guidelines in "How do I post a question effectively?" to find out how to do this. Also, "How do I change/delete my post?" explains how to update what you've already posted.]

-- Ken