Title: shell script via php exec() command help (urgent)
Last modified: August 18, 2016

---

# shell script via php exec() command help (urgent)

 *  [Denis de Bernardy](https://wordpress.org/support/users/denis-de-bernardy/)
 * (@denis-de-bernardy)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/shell-script-via-php-exec-command-help-urgent/)
 * I’m looking for someone who could help me solve a small shell script problem.
 * I’d like to create an email account from a php script, along the lines of:
 * exec(“create_blog $blog_id $username $password”);
 * I’m not super familiar with shell script, but I’m pretty sure this is very straightforward
   for a sysadmin. I need it to:
 * – check if the email account called $username exists, return -1 if it does
    –
   create an email account called $username with password $password – set up a cron
   job to hit [http://localhost/?action=check_email&blog_id=$blog_id](http://localhost/?action=check_email&blog_id=$blog_id)
   every 5 minutes – return 1 on success, -1 on failure
 * And I need another one, to undo all of the above, i.e.
 * exec(“delete_blog $blog_id $username $password”);
 * I have root access to the server if necessary. And I’ll readily paypal a reasonable
   donation if you can assist me through this.
 * my email account is denis at semiologic dot com, and my msn account is ddebernardy
   at hotmail dot com.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [Denis de Bernardy](https://wordpress.org/support/users/denis-de-bernardy/)
 * (@denis-de-bernardy)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/shell-script-via-php-exec-command-help-urgent/#post-258724)
 * dump?
 *  [dreamerfi](https://wordpress.org/support/users/dreamerfi/)
 * (@dreamerfi)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/shell-script-via-php-exec-command-help-urgent/#post-258770)
 * Denis, I’ll email you seperately. I may be able to help you.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘shell script via php exec() command help (urgent)’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [dreamerfi](https://wordpress.org/support/users/dreamerfi/)
 * Last activity: [20 years, 9 months ago](https://wordpress.org/support/topic/shell-script-via-php-exec-command-help-urgent/#post-258770)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
