run vi/vim encrypted shell script without decryption on multiple servers

Saikrishna <[email protected]>
Newsgroups gmane.os.solaris.managers
Message-ID <CALSWnay6NvJHLQRYJf4wbVR5uSw-Nt1f=ENA+5CyPDR8NsdAfQ@mail.gmail.com>
Hello Everyone,

How do we run vi/vim encrypted shell script without decryption on multiple
servers. It is a simple bash script and vim -nx <filename> has been used to
encrypt with desired password. Now I have few errors, the syntax is
absolutely fine as I have run that script multiple times on many servers
without encryption, tried to change file permissions to executable and
still did not work, please let me know what is it that I'm missing. Please
think of EMC grabs, Veritas grabs etc... their tech support will send us 1
or 2 files and we need to give those grabs executable permissions (while
they are encrypted) and they will collect all the necessary information,
that is exactly how I want to run the script.

Thanks,
Saikrishna

[user@redhat ~]$ sh filename.sh
filename.sh: line 2: syntax error near unexpected token `)'
filename.sh: line 2: `*+f<4(^
?ZW:)I*LXASY]V3DL4\F4foV*>?uW0Z%t.OQZi
Ab!kZ3q:mEc$*CIG3PsL#yahD%<y`8Eu{DidssF50G()d4Qvyq(Q|j;luDv-*>valv
845VJ8Ipu.u
Is!3jMK,je_@@Hn)CT(%Wi2D<ujGkNj;NCGarfwsjh
o*=;v*AgSYP~|N=".+u)nS*F
E&%!O\UF|2}sG!}!q^5#t#\0%Sd:~'W'_:\\VuBJ$?/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.