error while opning vi in AIX
I am trying to open vi in aix.But everytime I run the command I keep getting the error as
"cannot open display" is usually an indication you're trying to open an X Windows (GUI) version of something.
I don't work on AIX but it may be whatever it is using for vi has both a character based (CLI) version and a GUI version (vim/gvim due for Linux). Often if this is the case any time it sees the DISPLAY variable set it automatically tries to use the GUI.
Type "echo $DISPLAY" to see if your DISPLAY variable is set. If so you can try doing "unset DISPLAY" to get rid of it and retry vi to see if it launches the character based version.
If you WANT the GUI version then you'd need to work on insuring you have X Windows (or emulator) running on the workstation you're trying to display back to AND insure you have some method of getting X Windows back to it (e.g. opening ports in the 6000 range or using ssh X tunneling).
Many platform automagically sets env var DISPLAY (if you have az X-server on the client-side), on AIX use sg like this:
|All times are GMT -5. The time now is 12:08 PM.|