I'm getting starting with GUIs in KSH, so this is my first example:
#! /usr/dt/bin/dtksh main() { XtInitialize TOPLEVEL dtHello DtHello "$@" XmCreateMessageDialog HELLO $TOPLEVEL hello \ dialogTitle:"DtHello" \ messageString:\ "$(print "Hello\nWorld")" XmMessageBoxGetChild HELP $HELLO\ DIALOG_HELP_BUTTON XtUnmanageChild $HELP XmMessageBoxGetChild CANCEL $HELLO\<\n> DIALOG_CANCEL_BUTTON XtUnmanageChild $CANCEL XtAddCallback $HELLO okCallback exit XtManageChild $HELLO XtMainLoop } But when I try to launch my script, I get the next:
gui.ksh: syntax error at line 15: `newline' unexpected The syntax error is in this line:
DIALOG_CANCEL_BUTTON And these are my references: reference 1 reference 2
Thanks in advance for any help.