Thanks for the reply.  I tried exactly what you suggested:
system("/var/qmail/bin/qmail-newu");

But this fails, appearing to be a permission problem.  If I telnet in as the
user that the script runs as, I get "Permission denied".  So, I changed
permissions, and then get:
"qmail-newu: fatal: unable to open users/cdb.tmp"

It looks like qmail-newu creates a cdb.tmp file, then copies it to the cdb
file.  Even if I change the permissions to allow the command to be executed
by the user the script runs as, it fails to move (copy) the cdb.tmp file to
the cdb file.

Since this is for web based email, I need to do a "qmail=newu" each time
someone signs up (each time the Perl script is run.)  For this reason,
setting up a shell script to run at certain intervals doesn't seem to be the
correct solution.  I'd like to see how you are running the command with your
Perl script, or hear other suggestions

Thanks,

Peter Janett
http://www.healthwell.com

-----Original Message-----
From: Harald Hanche-Olsen <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Tuesday, May 18, 1999 5:10 AM
Subject: Re: qmail-newu via Perl script?


>
>
>
>
>+ "Peter Janett" <[EMAIL PROTECTED]>:
>
>| Has anyone been able to execute the qmail-newu command via a Perl
>| script?
>
>I haven't tried, but can think of no reason why it should be
>impossible or even difficult: It's just another program to be run,
>which you can do using system("/var/qmail/bin/qmail-newu");.  Maybe if
>you told us what you were doing, what you expected, and what happened?
>
>| Is there another way to accomplish what qmail-new does without
>| executing the command?
>
>Not without writing your own qmail-newu replacement, which seems
>rather pointless to me.  In my own setup, BTW, I have a perl script
>generating users/assign and a Makefile organizing the running of this
>perl script and qmail-newuser.
>
>- Harald
>
>
>

Reply via email to