Blog dedicated to Oracle Applications (E-Business Suite) Technology; covers Apps Architecture, Administration and third party bolt-ons to Apps

Saturday, January 17, 2009

Unrecognized character \x7F at /usr/local/bin/vncpasswd line 1

Today, Raju reported this error while trying to change vnc password:

$ perl /usr/local/bin/vncpasswd
Unrecognized character \x7F at /usr/local/bin/vncpasswd line 1.

This indicates that there is something wrong with the file vncpasswd.  I checked the file:

$ cd /usr/local/bin
$ file vnc*
vncconnect:     ELF 32-bit MSB executable SPARC Version 1, dynamically linked, not stripped
vncpasswd:      ELF 32-bit MSB executable SPARC Version 1, dynamically linked, not stripped
vncserver:      executable /usr/local/bin/perl script
vncviewer:      ELF 32-bit MSB executable SPARC Version 1, dynamically linked, not stripped

This error comes because vncpasswd is not a perl script but a binary executable file.  So the correct way to invoke vncpasswd is:

$ /usr/local/bin/vncpasswd
Password:
Verify:

No comments: