I have been trying to figure out how to do this for ages. I can't work it out. Basically, I normally have to run a .pl (perl) script that I was given to set-up a user on my web server. This perl script was not coded by me, it's a powerful pre-made script.
In PHP, I have created a very simple 'auto-signup' system for users. For the user to actually be created on the system, the perl script has to be ran (by me) from the command line (I use telnet). An example being:
perl client.pl -create 'Martin Hill' -cname 'marthill' -passwd 'phpbuilder'
As I've said, I have tried many ways and it won't work. I contacted the company that created the script earlier in the week asking if this was possible, and was sent the following:
Hello Martin,
I apologize for the delay. Yes, you can run this scripts on web. There
are several variations how this can be done.
- You can call the scripts from PHP from Admin apache.
- You can call them as cgi's from Admin apache cgi-bin.
- You can create some virtualhost and add ftpuser of this vhost to
/etc/sudoers with NOPASSWD parameter, then call sudo util_name.pl
[params].
--
Thanks,
Eugene Tarasov
Technical Support Department
Does anyone know how to do this? I e-mailed the script maker again and they said they can't help me with it, as it's not officially ment for running in an auto-creation process, although they say this is indeed possible.
Many Thanks,
Martin Hill