Re: [PHP] Execute shell script from PHP

2005-01-18 Thread Jason Wong
On Tuesday 18 January 2005 18:59, Tom wrote: > Khan wrote: > > Tom wrote: > >> shell_exec() > > > > yes, I have try that but nothing happenes. here is my code. Is this > > correct? > > > > > shell_exec('/test/acct.sh'); > > ?> Note that shell_exec() expects a filesystem path and not your webserv

Re: [PHP] Execute shell script from PHP

2005-01-18 Thread Tom
Khan wrote: Tom wrote: shell_exec() yes, I have try that but nothing happenes. here is my code. Is this correct? looks fine to me, except that I tend to run a check to make sure that it has run ok, like $myReturn = shell_exec('/test/acct.sh'); or if (shell_exec('/test/acct.sh'); On some syste

Re: [PHP] Execute shell script from PHP

2005-01-18 Thread Khan
Tom wrote: shell_exec() yes, I have try that but nothing happenes. here is my code. Is this correct? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Execute shell script from PHP

2005-01-18 Thread Tom
shell_exec() Tom Khan wrote: Hello, I have a shell script for ading users to LDAP. It looks like this: #!/bin/bash MUID=userlogin FULLNAME="First Last" LASTNAME="Last" DOMAIN=example.org SERVER=qmail.example.org PASS=userpass cat > .ldif.tmp.$MUID << EOF dn: uid=$MUID,ou=accounts,dc=example,dc=org