Openssl scripting problem


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Openssl scripting problem
# 8  
Old 10-07-2016
What is the shell you use in your script ?
This syntax <(...) not work in sh.
Regards.
# 9  
Old 10-07-2016
Quote:
Originally Posted by disedorgue
What is the shell you use in your script ?
This syntax <(...) not work in sh.
Regards.

im using "sh" in my script.

thank you!
# 10  
Old 10-07-2016
What is your final goal ?
Because, this method is very slow for crypt or decrypt a lot of password and if it is your goal, you should use perl or python.

Regards.
# 11  
Old 10-07-2016
Quote:
Originally Posted by Corona688
You are probably running your script in a different shell.
Sure.
Your scripting shell might be ksh and your working shell bash.
You can change the shell in your script by adding this in first line
Code:
#!/bin/bash 

# here comes your commands:
echo ...

This User Gave Thanks to blastit.fr For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Problem of encrypt openssl RC4

Hi Guys sorry about post the code in portuguese but now i fix almost parts of code. now i can encryped and decryped the files but have a small problem. When not writte nathing generate automatically a random cypher but after the value of this cypher not appear igual than variable $saved_key. And... (2 Replies)
Discussion started by: Xremix30
2 Replies

2. Solaris

Solaris v Ubuntu using OpenSSL paste problem

Hello, I hope this means something to someone. I have an odd problem that just started happening recently. I am not the system admin, so I don't have full info on any changes to the system lately. Except that I did upgrade OpenSSL to version 1.0.1.c from 1.0.0j. Anyway, I am trying to... (4 Replies)
Discussion started by: jonycp
4 Replies

3. UNIX for Dummies Questions & Answers

openssl dgst cat header problem

I am trying to run an old script to modify an image file with a modified header to bypass the md5 check but it comes up with an error message. The image file is for use on a Expressgate SSD so that I can add sqx files to it. This is a link from where I got the script:-... (3 Replies)
Discussion started by: r1speedyrider
3 Replies

4. Solaris

NRPE Compiling problem with OpenSSL 1.0

I am trying to compile nrpe 2.12 against openssl 1.0 on Solaris 10 however I am getting core dumps for some reason. Anyone know a way to fix this? Here is the output of make: bash-3.00# make all cd ./src/; make ; cd .. gcc -g -fPIC -Wall -O2 -I/usr/local/ssl/include... (0 Replies)
Discussion started by: _JPL_
0 Replies

5. Shell Programming and Scripting

openssl DES3 in scripting

hi, I have this script in python #!/usr/bin/env python from Crypto.Cipher import DES3 def desEncrypt(key, data): d = des4me(key) return d.encrypt(data) def des4me(key): return DES3.new(key, DES3.MODE_ECB) ... (8 Replies)
Discussion started by: kazikamuntu
8 Replies

6. UNIX for Advanced & Expert Users

scripting problem

hI I m very new to unix ,... I m facing an issue I have to search though a list of directorys, find all .gz files which are older than 7 days and delete that ,,, Any one knows a single command to do this .. Thnks in advance BInu (3 Replies)
Discussion started by: msbinu
3 Replies

7. Shell Programming and Scripting

scripting problem

Sorry everyone, i was able to fix it (0 Replies)
Discussion started by: bebop1111116
0 Replies

8. Shell Programming and Scripting

scripting problem

I hv the below script , that is work fine on unix sytem ( ksh ) , but it is not work in my RH system , the script can kill the idle user who have idel for 120 minutes but exclude the user in the exception.lst the error happen when run the statemnt " (( time = $TIMEOU + 1 )) " , could suggest... (3 Replies)
Discussion started by: ust
3 Replies

9. UNIX for Advanced & Expert Users

solaris 9 openssl make problem with ld

i've seen a few posts regarding this issue, and i've tried the resolutions, but i keep running into the same problem. i'm trying to compile OpenSSL with the use of rsaref-2.0 (i'm running through this tutorial... (1 Reply)
Discussion started by: xyyz
1 Replies

10. Shell Programming and Scripting

Scripting problem

I'm hoping one of you scripting experts can help me. I'm trying to find out the IP Address of every printer on my HP-UX server. (There's 256 of them) I'm trying to do it using the PERIPH= value in /etc/lp/interface/<printername>, but I'm having problems scripting it as I'm a bit of a newbie. ... (2 Replies)
Discussion started by: Robin
2 Replies
Login or Register to Ask a Question