Today (Saturday) We will make some minor tuning adjustments to MySQL.

You may experience 2 up to 10 seconds "glitch time" when we restart MySQL. We expect to make these adjustments around 1AM Eastern Daylight Saving Time (EDT) US.


Execute a encrypted shell script


 
Thread Tools Search this Thread
# 1  
Execute a encrypted shell script

Hi All,

I have a shell script test.sh. I encrypted it using the command
Code:
vi -x test.sh

, and protected it with a password to view the file.

When i tried to execute the file with ./test.sh..It is trying to execute the encrypted file but not he original one.

Can someone help me with how to execute a encrypted file or to decrypt and execute the same.

Any help is appreciated.

Last edited by vbe; 12-19-2013 at 10:06 AM.. Reason: code tags please
# 2  
leaves you using -C option of vi... or learn to use crypt
You would have to write a new script that decrypt the encrypted script for it to be executed...
 

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Batch script to execute shell script in UNIX server
bhupeshchavan
Hi team, My requirement is to transfer pdf files from windows machine to unix server and then from that unix server we should sftp to another server. I have completed the first part i.e From windows to using to unix server with the help of psftp.exe code: psftp user@host -pw password <...... Shell Programming and Scripting
1
Shell Programming and Scripting
run vi/vim encrypted shell script without decryption on multiple servers
lovesaikrishna
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...... Shell Programming and Scripting
0
Shell Programming and Scripting
How to use ssh execute other shell script on other host (shell script include nohup)?
orablue
i want use ssh on the host01 to execute autoexec.sh on the host02 like following : host01> ssh host02 autoexec.sh autoexec.sh include nohup command like follwing : nohup /home/jack/deletedata.sh & after i execute ssh host02 autoexec.sh one the host01. i can't found deletedata.sh...... Shell Programming and Scripting
1
Shell Programming and Scripting
Execute unix shell script to text file using the script
mastercar
Hi all, I am beginner in UNIX...I want to use unix shell script to create text.file...I know how to use using by command...can anybody tell me for the script? Thanks i changed the threads title from "tex file" to "text file", because "tex" would probably be misunderstood as reference to...... Shell Programming and Scripting
4
Shell Programming and Scripting
Execute shell or script encrypted
hilsie
Hi. I want to execute a script when it's encrypted with "crypt". I tried with "sh <script_crypted>", but it's incorrect because the commands into "script" can not be executed because they are encrypted. :confused:... Solaris
1
Solaris

Featured Tech Videos