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

General support questions including new installations
Post Reply
Saikrishna
Posts: 14
Joined: 2012/01/12 22:55:06

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

Post by Saikrishna » 2012/03/14 14:11:30

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 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.


Code:

[user@redhat ~]$ file filename.sh
filename.sh: Vim encrypted file data

[user@redhat ~]$ sh filename.sh
filename.sh: line 2: syntax error near unexpected token `)'
filename.sh: line 2: `*?f??W???t.Ï?Zi ???kZ3q:?E???Ã?G3??L#???D%<?`?E?{D?ä??F50?(?d4Q?y?(Q|?;l??v-???al?
????J?Ipu.u
I?!?j??,??_??Hn?ÃÔ?%?i???u?G??j;?CGar?wsj?
?*?»?*A?S??????"?+u)n?*F
?&%!Ï\UF|?}sG?}!q??#???0??ä:?'W'??\??u?????

User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

run vi/vim encrypted shell script without decryption on mult

Post by TrevorH » 2012/03/14 16:20:11

You can't run it while it's encrypted if that's what you're trying to do

Post Reply