I have not used sd_event with Unix but the principle will be the same as for Windows.
1. Set up an import mapping for the item type and field you want to update. You must specify one field to be the unique key. For example, in a SC, ID might be unique key and if Field1 was the one you want to update, your mapping might be ID for ID (unique key) and FIELD1 for field1.
2. Set up a config file which specifies the server, port, user/password, mapping, class, log file etc.
Hi, Simone and Ruth! Many thanks for your very quick replies. I have got an idea how to move further.
If I develope this idea little bit further: sd_event can only send data into SD. But if I want to get some value out, it can't. Is there such a way? For example, sd_event has created a new Call in SD, then I want to get ID out of SD.
You can use a DB rule to execute a command to put the value of ID somewhere you could use it - e.g. in a file, or send down a pipe, or as an argument to some script you have; it is a while since I used Unix scripting so there may be other ways,