in reply to Facing prob with launching xterm!!

Just in case you don't have bash - possible since this looks like a solaris system, and bash might not be installed:

system "ENV=script /usr/openwin/bin/xterm -e ksh"

This uses what is normally used to load .kshrc to run your script instead. Well, actually, it runs the shell, which then sources your script, which is slightly different from just running the script. This will leave you with an open shell.

If all you want is to have it stay on screen until you hit enter, try:

system qq{/usr/openwin/bin/xterm -e ksh -c "script;read"}