Sponsored Content
Top Forums Shell Programming and Scripting Looking for config file in home directory first?? Post 302808183 by Little on Thursday 16th of May 2013 04:55:52 AM
Old 05-16-2013
Code:
pgp --encrypt --text filename --user "pgp_user_id" --output filename.pgp

i used it like this.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Searching a file withoug leaving home directory!!

hello there ! I am in my current working directory, and i want search a file in "dev" directory which is under root(/), but i donot want leave my current working directory. is it possible to find file like that ? let us say i am in /home/bin/user/malik/abid directory and i want find a file... (2 Replies)
Discussion started by: abidmalik
2 Replies

2. Solaris

Restricting SFTP user to a defined directory and home directory

Hi, I've created solaris user which has both FTP and SFTP Access. Using the "ftpaccess" configuration file options "guest-root" and "restricted-uid", i can restrict the user to a specific directory. But I'm unable to restrict the user when the user is logged in using SFTP. The aim is to... (1 Reply)
Discussion started by: sftpuser
1 Replies

3. Shell Programming and Scripting

parsing config file to create new config files

Hi, I want to use a config file as the base file and parse over the values of country and city parameters in the config file and generate separate config files as explained below. I will be using the config file as mentioned below: (config.txt) country:a,b city:1,2 type:b1... (1 Reply)
Discussion started by: clazzic
1 Replies

4. UNIX for Dummies Questions & Answers

How to get the latest modified file name in /home directory?

I only know how to list all sub-directories or files in specified directory. I don't know how to order them by modified date, furthermore, I don't know how to get the top one file in the sorted list. Wish you can do me a favor. Thanks in advance! (3 Replies)
Discussion started by: crest.boy
3 Replies

5. Shell Programming and Scripting

Shell script that will compare two config files and produce 2 outputs 1)actual config file 2)report

Hi I am new to shell scripting. There is a requirement to write a shell script to meet follwing needs.Prompt reply shall be highly appreciated. script that will compare two config files and produce 2 outputs - actual config file and a report indicating changes made. OS :Susi linux ver 10.3. ... (4 Replies)
Discussion started by: muraliinfy04
4 Replies

6. Shell Programming and Scripting

rename all file with blank in directory from home root , please help me

hi , :wall: I've in directory home user 3 file with blank space in name file, I would like erase the all character that no have alphanum more dot in namefile from home root , below the script. If I execute the shell script from directory where stay it's execute well done.But I would like... (1 Reply)
Discussion started by: giankan
1 Replies

7. Shell Programming and Scripting

Cannot run this .java file from the home directory??

I wrote a simple test.java program in vi. I know it compiles correctly because I went into the directory where test.java was and compiled it and it created a java.class. I then ran test.java by staying in the same directory where it was and it worked great. However, when i backed out of the... (3 Replies)
Discussion started by: syregnar86
3 Replies

8. UNIX for Dummies Questions & Answers

Duplicated file names with home directory symbol appearing in ls .

Why are there duplicated file names listed when I execute ls ? Result of my ls /root/Desktop : aaa ca new file~ what what~ Thanks. (4 Replies)
Discussion started by: Hijanoqu
4 Replies

9. Solaris

SunOS confusing root directory and user home directory

Hello, I've just started using a Solaris machine with SunOS 5.10. After the machine is turned on, I open a Console window and at the prompt, if I execute a pwd command, it tells me I'm at my home directory (someone configured "myuser" as default user after init). ... (2 Replies)
Discussion started by: egyassun
2 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 07:45 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy