Plesk 10 Event Manager Paramaters

Community support for Plesk, CPanel, WebMin and others with insight from two of the founders of Plesk. Ask for help here! No question is too simple or complicated. :-)
jpkelly
Forum User
Forum User
Posts: 85
Joined: Sat Jan 20, 2007 6:57 pm

Plesk 10 Event Manager Paramaters

Unread post 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.
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: Plesk 10 Event Manager Paramaters

Unread post 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
jpkelly
Forum User
Forum User
Posts: 85
Joined: Sat Jan 20, 2007 6:57 pm

Re: Plesk 10 Event Manager Paramaters

Unread post by jpkelly »

Yup that works!
Thanks Scott!
Post Reply