rebuild_database = { label = "Rebuild Database" shortcut = "rd" requires_profile = true parameters = { } expression = ` echo("rebuild_database"); # ------------------------------ # Start build_database via exec # ------------------------------ volatile.options.1 = "background"; volatile.options.2 = "-p"; volatile.options.3 = internal.profile_name; volatile.options.4 = "-a"; volatile.options.5 = "bd"; echo("exec: " . node_as_string("volatile.options")); string pid = exec("", "volatile.options", true); # Generate the XML result, for use in network action node result = new_action_result(command_line.action); @result{"Result"} = "Success"; string xml_result = action_result_to_xml(result); #echo("xml_result: " . xml_result); xml_result; ` # expression } # rebuild_database