• 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 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)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘shell script via php exec() command help (urgent)’ is closed to new replies.