Hi, I am trying to write a ftp script which will read a file for filenames and ftp those files to another server. Here's my ftp script, but it's scanning the current directory for file names.
My question is how can I pass multiple files (these files will have the name of data files that need to... (0 Replies)
Hi all, I have a shell script which invoke a sql script using command
db2 -tf /home/me/db_housekeep.sql -z /home/me/db_housekeep.log
however, this mentioned sql script requires several input arguments, I wonder if one can pass variables from shell script to sql script? thanks! (0 Replies)
Hi,
I am running a script from a client machine X which does "SSH" to around 100 other machines in a farm and invokes a local script on each of those machines. Local script localscript.sh on each of those 100 target machines, does some machine specific function like fetch the specific machine's... (1 Reply)
Hi,
In the below C code , i want to pass the array to a unix shel script.
my script should called as ex myscript 1,2,3
#include <stdio.h>
int main()
{
int a={1,2,3};
}
Thanks,
Arun (1 Reply)
Hi,
i am new to awk. I am using csv2pipe script(shown below)
BEGIN { FS=SUBSEP; OFS="|" }
{
result = setcsv($0, ",")
print
}
# setcsv(str, sep) - parse CSV (MS specification) input
# str, the string to be parsed. (Most likely $0.)
# sep, the separator between the values.
#
#... (6 Replies)
I am working on an embedded linux router and trying to make a webpage where the user can input a desired number of CPE and have a script update that number on the router. I have a CLI where I can log in and type the following to change that number
echo "20">/proc/net/dbrctl/maxcpe which then... (7 Replies)
I am new to Unix. Could some tell me what are all the possible ways of invoking/executing a script, doesnt matter which shell you are in. Thanks (4 Replies)
Hello..
I am developing a Graphical User Interface using GTK. As part of our project I need to take inputs from GTK entries and pass those inputs to shell script and use them in shell script. The problem which struck me is only limited number of inputs are getting passed to shell script. For now... (14 Replies)
hi all,
is there a way to run a script upon invoking an application . for eg if i click on mozilla i want a script to run , before runniing mozilla , maybe ask a password or something only then open mozilla (2 Replies)
OS version: RHEL 6.7
myTextFile.txt file is referred within Script1.sh script,
I only execute Script1.sh and I want the input variable to be passed inside myTextFile.txt . Any idea how I can do this ?
$ cat script1.sh
cat myTextFile.txt
$ cat myTextFile.txt
$1
Requirement1.... (4 Replies)
Discussion started by: kraljic
4 Replies
LEARN ABOUT CENTOS
gpg-zip
GPG-ZIP(1) GNU Privacy Guard GPG-ZIP(1)NAME
gpg-zip - Encrypt or sign files into an archive
SYNOPSIS
gpg-zip [options] filename1 [ filename2, ... ] directory1 [ directory2, ... ]
DESCRIPTION
gpg-zip encrypts or signs files into an archive. It is an gpg-ized tar using the same format as used by PGP's PGP Zip.
OPTIONS
gpg-zip understands these options:
--encrypt
-e Encrypt data. This option may be combined with --symmetric (for output that may be decrypted via a secret key or a passphrase).
--decrypt
-d Decrypt data.
--symmetric
-c Encrypt with a symmetric cipher using a passphrase. The default symmetric cipher used is CAST5, but may be chosen with the
--cipher-algo option to gpg.
--sign
-s Make a signature. See gpg.
--recipient user
-r user
Encrypt for user id user. See gpg.
--local-user user
-u user
Use user as the key to sign with. See gpg.
--list-archive
List the contents of the specified archive.
--output file
-o file
Write output to specified file file.
--gpg gpgcmd
Use the specified command gpgcmd instead of gpg.
--gpg-args args
Pass the specified options to gpg.
--tar tarcmd
Use the specified command tarcmd instead of tar.
--tar-args args
Pass the specified options to tar.
--version
Print version of the program and exit.
--help Display a brief help page and exit.
EXAMPLES
Encrypt the contents of directory 'mydocs' for user Bob to file 'test1':
gpg-zip --encrypt --output test1 --gpg-args-r Bob mydocs
List the contents of archive 'test1':
gpg-zip --list-archive test1
DIAGNOSTICS
The program returns 0 if everything was fine, 1 otherwise.
SEE ALSO gpg(1), tar(1),
The full documentation for this tool is maintained as a Texinfo manual. If GnuPG and the info program are properly installed at your site,
the command
info gnupg
should give you access to the complete manual including a menu structure and an index.
GnuPG 2.0.22 2014-06-10 GPG-ZIP(1)