Sponsored Content
Full Discussion: encrypting Unix flatfile
Top Forums UNIX for Dummies Questions & Answers encrypting Unix flatfile Post 50665 by rkumar28 on Thursday 29th of April 2004 12:28:02 AM
Old 04-29-2004
Data encrypting Unix flatfile

Hi,

I am new to unix. I have a flat file that needs to be pgp encyrpted in ASCII format and ftped in Ascii format to remote location.

Can any one tell me the steps involved in the pgp encryption of the unix file. I will really appreciate if any one can help me with the pgp encryption shell script.

Thanks
Raj
rkumar28
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Finding a column in a flatfile

I have a file which is fixed width columns. This is an offset buffer - rather than space or tab delimited. There are upto about 8 columns and I need to get all of the column 5's values into another file. The problem is that because the delimiter is a space - and some fields are blank - the 5th... (3 Replies)
Discussion started by: peter.herlihy
3 Replies

2. Shell Programming and Scripting

Adding field of flatfile by an index.

Hey guys, I was given a task that involved parcing a large file that looked somthing like this... A1-0999999,SMITH,.25 A1-0999999,JOHN,.75 A1-0999999,HELMET,.1.25 A1-0999999,HOOP,.10.25 D1-1212121,SMITH,4.00 D1-1212121,TH,9.00 D1-1212121,MITCH,10.20 D1-1212121,RETAL,3.00 A1-9909555,,3.00... (2 Replies)
Discussion started by: djsal
2 Replies

3. Shell Programming and Scripting

Traverse a flatfile and check for errors

Hi, I need to check a flatfile for various parameters like length of the record, format of record, any tab character present in the record etc., for checking presence of tab character, i'm trying to use the following code and i'm not sure if the same is right. Pls Help. nawk '{print... (1 Reply)
Discussion started by: aravindc
1 Replies

4. Shell Programming and Scripting

Deleting column from a flatfile with delimiter

I have a set of flatfiles which have columns delimited by #. How can a particular column be deleted in all the flatfiles. All flatfiles have same number of columns. (5 Replies)
Discussion started by: rsprabha
5 Replies

5. Shell Programming and Scripting

Deleting a line from a flatfile using Shell Script

Hi All, Can Anyone please tell me,how can I delete a line from a file. I am reading the file line by line using whil loop and validating each line..Suppose in the middle i found a particular line is invalid,i need to delete that particular line. Can anyone please help. Thanks in advance,... (14 Replies)
Discussion started by: dinesh1985
14 Replies

6. Shell Programming and Scripting

Finding a flatfile & deleting first line

I have a small script where I want to see if a file exists & then delete the first line from it. I have code to help me find if the file exists, but I am unsure as to how to then take in the answer and remove the first line from the flatfile: This is what I have so far just to output if the... (3 Replies)
Discussion started by: fatalxkiss
3 Replies

7. UNIX for Advanced & Expert Users

Delimeters Count in a FlatFile

Hi, I have the below script to check the count of delimeters for a file (here is File : test.csv Delimeter is ",") awk '{gsub(/"*"/,x);print gsub(/,/,x)}' test.csv And it return the output for each line as: 2 2 cat test.csv: abc,xyz "abc,zxyz",1 I need help one the below things: - IS... (8 Replies)
Discussion started by: venkatajay_18
8 Replies

8. Shell Programming and Scripting

sending output to flatfile

Hi, I am writing one unix script to get row count of few tables into one sequential file my script is like this $ORACLE_HOME/bin/sqlplus -s <<EOF >output.txt userid/password@databasename set verify off set heading off set feedback off select count(*) count from tablel where ; select... (4 Replies)
Discussion started by: spmsarada
4 Replies

9. Shell Programming and Scripting

Generating XML from a flatfile

Hi all, I am trying to generate an XML file from a flatfile in ksh/bash (could also use perl at a pinch, but out of my depth there!). I have found several good solutions on this very forum for cases where the header line in the file forms the XML tags, however my flatfile is as follows:... (5 Replies)
Discussion started by: ianmrid
5 Replies

10. UNIX for Dummies Questions & Answers

awk : dynamic output flatfile filename

Hello, I'm using the awk command to insert empty columns on a tab delimited flatfile - which works fine - => But I'm not able to manage dynamicaly the filename of the awk output based on the source flatfile filename I have 3 source flatfile: flatfile_Jan-2016.csv flatfile_Feb-2016.csv... (3 Replies)
Discussion started by: Tipiak
3 Replies
SENDFILE(1)						      General Commands Manual						       SENDFILE(1)

NAME
sendfile - send file(s) via Internet SYNOPSIS
sendfile [ -stMgduzvolSPiqQV ] [ -c=" comment" ] [ -C=program ] [ -ps=[my_ID] ] [ -pe=[to_user] ] [ -m LIMIT ] file [...] user[@host] sendfile -a="archive" [ -uviqQ ] [ -c=" comment" ] [ -C=program ] [ -ps[=my_ID] ] [ -pe[=to_user] ] file_or_directory [...] recipient DESCRIPTION
sendfile sends files to the specified recipient. On the receiving site there must be a SAFT-server (Simple Asynchronous File Transfer) installed like sendfiled which stores incoming files into the recipients spool-directory. SAFT knows about 4 file types: BINARY Byte-stream file which will not be modified. SOURCE Record oriented program source file. Only EOL will be translated. TEXT Human readable text files. EOL and the character set (like German umlauts) will be translated. MIME Multipurpose Internet Mail Extension file as defined by RFC 2045-2049. Files can be sent compressed or pgp-encrypted and/or pgp-signed. As an extension to SAFT, sendfile is able to send multiple binary files in one archive file. Default mode for sendfile is sending compressed binary files. Compression will be disabled for hosts which are inside your LAN and for files which cannot be compressed. With the helper program sfconf you can easily configure sendfile. ARGUMENTS
You have to specify at least one file name and the recipient's address. An address can be specified as: user a local user or a sendfile alias (see below), e.g.: framstag user@host an user on a remote host, e.g.: framstag@bofh.belwue.de saft://host/user like above, but in URL-syntax, e.g.: saft://bofh.belwue.de/framstag saft://host:port/user like above, but with alternate SAFT-port, e.g.: saft://bofh.belwue.de:4870/framstag OPTIONS
-4, -6 Explicitly force IPv4 or IPv6 connections. By default, the program will try to resolve the name given, and choose the appropriate protocol automatically. If resolving a host name returns both IPv4 and IPv6 addresses, sendfile will try to use the adresses in the order they are returned by the resolver. -s Send in source mode (not needed if sending to a unix host). -t Send in text mode (not needed if sending to a unix host). -M Send MIME file (must be external composed before!). -g Send in guessed mode: sendfile tries to guess the correct mode (source, text or binary). This will not work in every case and not on all platforms! -i Print more transaction information. -v Verbose mode: show SAFT protocol messages. -V Show version information and exit. -u Send uncompressed. -z Send compressed. -a Send files or whole directories as one archive (binary mode only). You have to specify an archive name. -d Delete previous sent file. No wildcards allowed. -o Overwrite already sent file(s) with same name. -P Read file from stdin. You must specify a file name, too. -S Spool file into outgoing queue for later processing. You must run a sendfiled which supports this mode. -l List files in the outgoing spool. -q Quiet mode 1: print no transfer messages. -Q Quiet mode 2: print no transfer, information or warning messages. -c Add a short comment to a single file. -C Force usage of specified compression program (gzip or bzip2). -pc Encrypt file(s) with pgp (IDEA symmetric). -pe Encrypt file(s) with pgp (public key). -ps Add pgp signature(s) to the file(s). -m Limit the maximum thruput (in KB/s). ARGUMENTS
user Recipient user name. Can be an alias, too. See below. file File name to be sent. Only when using the -a="archive" option you may specify any file or directory. EXAMPLES
sendfile -t project.txt chief@bigvax.somewhere.net sendfile -a=jokes -c 'from Gary Larson' *.gif framstag FILES
/etc/sendfile.deny Users which are not allowed to receive files or messages (set by root). /var/spool/sendfile/$USER/config/config Your configuration file. Valid entries are (the | symbol means " or"): bell = on|off add a bell when a file or message arrives. deleting = on|off allow remote users to delete their files after transmission msglog = on|off log incoming messages in /var/spool/sendfile/$USER/msglog notification = none|both|mail [user@host]|message [user@host] send a notification when a file has been arrived via mail or message or none or both mechanism. forward = user@host set a forward address. /var/spool/sendfile/$USER/config/restrictions List of addresses from where you don't want messages or files. The format is: user@host [mfb] m stands for messages, f for files and b for both. Wildcards * and ? are allowed. Examples: gates@microsoft.com b *aol.com m You may also specify the addresses in URL-syntax. /var/spool/sendfile/$USER/config/aliases The sendfile alias file. Format: alias address [sendfile-options] Example: chief grmblfz@bigvax.somewhere.net ccc chaoscomputerclub@saft.ccc.de -pe -ps You may also specify the addresses in URL-syntax. SEE ALSO
sfconf receive(1) sendmsg(1) fetchfile(1) AUTHOR
Ulli Horlacher - framstag@rus.uni-stuttgart.de 3rd Berkeley Distribution SENDFILE(1)
All times are GMT -4. The time now is 05:42 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy