If you put up cash at the court and you want the money back, you can request that the court release you as surety and ask that the bond money be returned to you.
A hearing will be held during which the judge will ask why you want to be released as surety. If the judge grants your request, s/he will enter an Order to that effect, revoke the person's bond and set a new bond. Unless the person can post the new bond, the person will remain in jail.
If the person's court date is soon and you think that s/he will appear, you can request that you be released at the court date. That way the person will be there and the judge can revoke the bond and set a new one.
If you don't think that the person will appear for their next court date, you can indicate your fear to the court and ask that the judge hear your request before the court date.
Remember, a bond is meant to ensure that a person appears in court. If you are uneasy about losing your money because the person won't appear, or cannot afford to have your money tied up until the resolution of the case, then you need to request your money be returned (as described above).
I hope you find this information useful and that you PRESS THE GREEN ACCEPT BUTTON so that I can get credit for answering the question. Thank you.