Lines Matching refs:script
152 char *script, *copy = NULL;
173 nwam_value_get_string(scriptval, &script) != NWAM_SUCCESS) {
175 * If we're stopping, it's not an error for no script to
180 "no script specified for enm %s", object_name);
194 "running script %s for enm %s", script, object_name);
197 * The script may take a number of arguments. We need to
199 * (ctrun), ENM script name, arguments and NULL array
205 if ((copy = strdup(script)) == NULL ||
206 (argv = calloc(strlen(script), sizeof (char *))) == NULL) {
222 /* Store the current time as the time the script began */
228 * script is running.
235 * Find the object again, now that the script has finished
237 * comparing the object's script time with the one from above.
242 "could not find enm %s after running script",
259 * If script execution fails and we're not destroying the
265 script, object_name);
337 pthread_t script;
340 * Launch separate thread to wait for execution of script
349 if (pthread_create(&script, NULL,
352 "enm script thread for %s", name);
359 (void) pthread_detach(script);
444 * Must be a method-based ENM with start (and stop) script(s).
507 * Must be a method-based ENM with start (and stop) script(s).
768 /* (Re)set script time to now as the object has just been (re)read */
813 * nwamd_enm_deactivate() does this after running the stop script