Where a respondent shall neglect or refuse to obey an order for support or upon agreement signed by the respondent and approved by the court, and the court is satisfied thereof by competent proof, it may, with or without notice, issue a warrant to commit the respondent to jail until the order is obeyed or until the respondent is discharged by law.