05-30-2012
tks pravin27. I have one quick question.
After I get the decrypted files i need to encrypt them. I need to attach .pgp at the end of the filenames i just derived. How can I do that.
8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
My local server is :/usr/abcd/
Remote server is :/Usr/host/test/
I want to send files from local unix directory(All files starting with O_999) to
remote host unix directory.
Can any body give me the Unix Shell script to do this.
One more doubt: Shall we need to change the file... (1 Reply)
Discussion started by: raja_1234
1 Replies
2. Shell Programming and Scripting
Hi Gurus,
I am using the following code to parse the output of a file. This code basically parses the file and adds | at the end of each field. But I am getting it wrong in some cases. I have explained it below
#----- parse output file, get each field position, -----
#----- and construct... (13 Replies)
Discussion started by: ragha81
13 Replies
3. Shell Programming and Scripting
Hi,
When I run the following command in terminal it works. The string TEST is appended to a file silently.
echo TEST | tee -a file.txt &>/dev/null
However, when I paste this same line to a file, say shell1.sh, and use bourne shell .
I run this file in terminal, ./shell1.sh.
However I... (1 Reply)
Discussion started by: shahanali
1 Replies
4. Shell Programming and Scripting
I'm trying to output the contents of the infile to the outfile using Append.
I will want to use append but the syntax doesn't seem to be working !
Input file (called a.txt) contains this:
a
a
a
b
b
b
I'm running shell script (called k.sh) from Unix command-line like this:
./k.sh .... (1 Reply)
Discussion started by: script_op2a
1 Replies
5. AIX
Is IBM System Director good for collecting error and notifications from IBM servers such as x3250 x336 etc... or Please give me brief description for the purpose of IBM system Director
Thanks in advance (1 Reply)
Discussion started by: Vit0_Corleone
1 Replies
6. AIX
dears
is IBM Systems Director free to downlad and install or i must pay to have this application? (2 Replies)
Discussion started by: thecobra151
2 Replies
7. AIX
Hi all,
the DIRDB on DB2 used by system director was dropped.
It's possible to reinstall only the container DIRDB, instead of reinstall all system director software?
P.S.
If i use "smreset" i have an error: DB21005E An error occurred while accessing the file "db2/temp-connect.sql"
I find... (1 Reply)
Discussion started by: Zio Bill
1 Replies
8. Shell Programming and Scripting
hi,
Can anybody help me about the odd output file yielded by the following command:
plink --noweb --allow-no-sex --bfile input_file --assoc --adjust --out output_file
In fact, I'd like to perform a simple Bonferroni basic association test, and I obtains the following output file (extract... (1 Reply)
Discussion started by: boro82
1 Replies
LEARN ABOUT SUNOS
encrypt
encrypt(3C) Standard C Library Functions encrypt(3C)
NAME
encrypt - encoding function
SYNOPSIS
#include <crypt.h>
void encrypt(char block[64], int edflag);
Standard conforming
#include <unistd.h>
void encrypt(char block[64], int edflag);
DESCRIPTION
The encrypt() function provides (rather primitive) access to the hashing algorithm employed by the crypt(3C) function. The key generated by
setkey(3C) is used to encrypt the string block with encrypt().
The block argument to encrypt() is an array of length 64 bytes containing only the bytes with numerical value of 0 and 1. The array is mod-
ified in place to a similar array using the key set by setkey(3C). If edflag is 0, the argument is encoded. If edflag is 1, the argument
may be decoded (see the USAGE section below); if the argument is not decoded, errno will be set to ENOSYS.
RETURN VALUES
The encrypt() function returns no value.
ERRORS
The encrypt() function will fail if:
ENOSYS The functionality is not supported on this implementation.
USAGE
In some environments, decoding may not be implemented. This is related to U.S. Government restrictions on encryption and decryption rou-
tines: the DES decryption algorithm cannot be exported outside the U.S.A. Historical practice has been to ship a different version of the
encryption library without the decryption feature in the routines supplied. Thus the exported version of encrypt() does encoding but not
decoding.
Because encrypt() does not return a value, applications wishing to check for errors should set errno to 0, call encrypt(), then test errno
and, if it is non-zero, assume an error has occurred.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
|MT-Level |Safe |
+-----------------------------+-----------------------------+
SEE ALSO
crypt(3C), setkey(3C), attributes(5)
SunOS 5.10 2 May 2001 encrypt(3C)