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.
Plesk 10 Event Manager Paramaters
-
- Atomicorp Staff - Site Admin
- Posts: 8355
- Joined: Wed Dec 31, 1969 8:00 pm
- Location: earth
- Contact:
Re: Plesk 10 Event Manager Paramaters
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
"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
Yup that works!
Thanks Scott!
Thanks Scott!