"Fossies" - the Fresh Open Source Software Archive

Member "unix/Darwin/dmg/files/pandorafms/inst_utilities/get_group.scpt" (15 Sep 2021, 542 Bytes) of package /linux/misc/pandorafms_agent_unix-7.0NG.757.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/usr/bin/osascript
    2 
    3 set first_time to 1
    4 set text_display to "Please set your Pandora FMS IP address:"
    5 
    6 repeat
    7 	if (first_time = 1) then
    8 		set text_display to "You can set a specific group for this agent (must exist in Pandora):"
    9 	end if
   10 	set my_group to display dialog ¬
   11 		text_display with title ¬
   12 		"Target group" default answer "Servers" ¬
   13 		buttons {"Continue"} ¬
   14 		default button "Continue"
   15 	if ((text returned of my_group) = "") then
   16 		set first_time to 0
   17 	else
   18 		exit repeat
   19 	end if
   20 end repeat
   21 
   22 return (text returned of my_group)