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


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting run vi/vim encrypted shell script without decryption on multiple servers
# 1  
Old 03-13-2012
run vi/vim encrypted shell script without decryption on multiple servers

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.

Code:
[user@redhat ~]$ sh filename.sh
filename.sh: line 2: syntax error near unexpected token `)'
filename.sh: line 2: `*«f<´¨^
                          ¿ZW:)I*ÌØÿAÓYÝÖ³ÄÌ4ÜF4foÖ*>¿õ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Âʤ?¯


Last edited by Franklin52; 03-14-2012 at 05:09 AM.. Reason: Please use code tags for code and data samples, thank you
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Shell script for connecting multiple servers and then copying 30 days old files

Shell script for connecting multiple servers and then copying 30 days old files from those server . HI , I have 6 multiple servers pla1,pla2,pla3,pla4,pla5,pla6 1. These six servers have common shared mount point /var/share 2. Running script from /var/share to connect these servers.I... (1 Reply)
Discussion started by: rcroyal88
1 Replies

2. Shell Programming and Scripting

Shell script to ping multiple servers

Hi I did the following script to ping multiple servers, but I keep on receiveing duplicate emails for one server that is down: #!/bin/bash date cat /var/tmp/servers.list | while read output do ping -c 1 "$output" > /dev/null if ; then echo "node $output is up" else ... (10 Replies)
Discussion started by: fretagi
10 Replies

3. Shell Programming and Scripting

Run a shell script on all 15 servers at the same time?

We have 15 servers. Hostnames for these 15 servers are stored in a text files and loop through each server to connect to the remote server and run a command, but this loop process runs the command one after another. However, the requirement is to run the same command on all 15 servers at the same... (10 Replies)
Discussion started by: laknar
10 Replies

4. Shell Programming and Scripting

Run a script on multiple servers

I need to run a script on a bunch of remote servers. how can this be done without ssh into each individual server and run it its under /sbin/script.sh on each server (1 Reply)
Discussion started by: tdubb123
1 Replies

5. HP-UX

Decryption of files on HP-UX servers?

I am pulling a file from sfdc to HP-UX servers. But in HP-UX servers, the file data shows encrypted. Can anyone tell me how to decrypt them? The file data is like- ... (1 Reply)
Discussion started by: saga20
1 Replies

6. Shell Programming and Scripting

Shell script to connect to multiple ssh servers

Hello, I have access to several linux servers (mostly centos based) located in a DC in another country. from day to day I need to login to each of them to do some work (they dont have gui/window manager installed, I work only from console), or even to just do a check like df -h for disc usage.... (3 Replies)
Discussion started by: MaRiOsGR
3 Replies

7. Shell Programming and Scripting

Shell script to change the password on multiple servers in linux

Can any one please let me know the shell script to change the password for a particular user on multiple linux servers. (2 Replies)
Discussion started by: s_madras
2 Replies

8. Shell Programming and Scripting

help needed with shell script to append to the end of a specific line in a file on multiple servers

Hi Folks, I was given a task to append three IP's at the end of a specific (and unique) line within a file on multiple servers. I was not able to do that with the help of a script. All I could was: for i in server1 server2 server3 server4 do ssh $i done I know 'sed' could be used to... (5 Replies)
Discussion started by: momin
5 Replies

9. Shell Programming and Scripting

Prevent wrong user from using shell script for multiple remote servers

Hi, I am running a shell script from a central server to multiple remote servers using the following code: application_check() { # Linux/UNIX box with ssh key based login SERVERS=`cat /tmp/server-details` # SSH User name USR="user" # create new file > /tmp/abc.log # connect... (2 Replies)
Discussion started by: mystition
2 Replies

10. Shell Programming and Scripting

Need a script to run on multiple mail servers..

Hello, I am a Unix newbie and I need a script in which I can run a command on multiple servers at work. The command is to start a storage process and I am sick of doing it manually on all servers.. Here's the command: /opt/bss/bin/snmptable -CB -v2c -c P67LzuBm hostname hrStorageTable... (4 Replies)
Discussion started by: kinyyy
4 Replies
Login or Register to Ask a Question