Page 1 of 1
Plesk 10 Event Manager Paramaters
Posted: Sun Mar 13, 2011 3:02 am
by jpkelly
How can I pass parameters to my scripts with the Plesk 10 event manager?
I have tried the following syntax
/usr/sbin/clientcreated <NEW_LOGIN_NAME>
But it does not work.
Re: Plesk 10 Event Manager Paramaters
Posted: Sun Mar 13, 2011 10:43 am
by scott
Id double check the PTN docs, I've noticed that the API's have changed for 10. Heres one example I used in atomic-accelerator:
"Subdomain ${NEW_SUBDOMAIN_NAME} for domain ${NEW_DOMAIN_NAME} created" >> /tmp/event_handler.log # Subdomain's name
Presumably the tokens are still the same, you just need to use ${} around them
Re: Plesk 10 Event Manager Paramaters
Posted: Sun Mar 13, 2011 4:48 pm
by jpkelly
Yup that works!
Thanks Scott!