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
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
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
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
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
cn: $FULLNAME
sn: $LASTNAME
o
5 matches
Mail list logo