It would seem that after the line:
you would want to run command something like:
presumably replacing the printf command with a call to logger. Instead of redirecting the cmp output to /dev/null you might want to save it in another file and also include the contents of that file with the data you send to logger.
This User Gave Thanks to Don Cragun For This Post:
I have a folder called {homedata}
Within this folder there are 12 subfolders 200601.......200612
Within each subfolder there are 8 sets of files
Each filename commences with A B C D E F G or H,
so {filename}* can be used.
I am trying to write a script which will from the top level
go... (2 Replies)
im a bit new to this and have been playing quite a bit and cant figure it out :(
I have made a basic script:
cd /folder/software1/bin/;
echo "software1," >> /in/local/var/trace/davescripts/software.txt "\c";
ls -tm >> /in/local/var/trace/davescripts/software.txt;
and this basically... (1 Reply)
I am a beginner to all of this but undertand the basic principles. I am currently working on a large task and struggling with a the final part.
I have two files,
folder 1 contains a list of around 20 files in binary (possibly treated as arrays?)
folder 2 contains several files and sub... (2 Replies)
Hello. I'm here again.
I have a script in python and bash, and I need execute this script over all files in all folders.
Example:
Folder: CMDB
Subfolders: router1
router2
switch1
switch2
and in this folders exists a file called... (3 Replies)
Hi All,
I am new to Forums, as i am struggling for one script i am launched here.
I need to move more than 60,000+ folders in 1,00,000 folders to another server. I have the list of folders which should be moved. can anybody help me in sharing with the script for the above requirement.
... (4 Replies)
Hello again,
A little while back I got help with creating a command to search all directories and sub directories for files from daystart of day x.
I'm wondering if there is a command that I've overlooked that may be able to search for / write folder names to an output file which ideally... (2 Replies)
hi again,
having an issue with the code here because it doesnt work :D
can someone point what and how to change, please.
#!/bin/bash
#create directory mylabs, inside create 6 directories named by user.
DIR1="$1"
DIR2="$2"
if ; then
echo -n " there is a folder named mylabs,
what... (1 Reply)
I hope this thread is in the right forum...
This is for a .deb package that will be installed on Cydia.
Pre'note': I am installing a custom 'hosts' file and AdSheet.app directory. My problem is during a reinstall/upgrade. Cydia will run the entire installation process again, which means it... (1 Reply)
Hi all new to the forums. Very beginner at shell scripting. What I'm trying to do is this:
Is the directory empty prior to removal of it? If not, inform the user that the directory is not empty and if the user wants to remove it remove or move the files in it first.
But I'm stuck.. It checks... (3 Replies)
Discussion started by: rduckett1456
3 Replies
LEARN ABOUT CENTOS
openpgp-tool
OPENPGP-TOOL(1) OpenSC Tools OPENPGP-TOOL(1)NAME
openpgp-tool - utility for accessing visible data OpenPGP smart cards and compatible tokens
SYNOPSIS
openpgp-tool [OPTIONS]
DESCRIPTION
The openpgp-tool utility is used for accessing data from the OpenPGP v1.1 and v2.0 smart cards and compatible tokens like e.g. GPF
CryptoStick v1.x, which might not be present in PKCS#15 objects but available in custom files on the card. The data can be printed on
screen or used by other programs via environment variables.
OPTIONS --exec prog, -x prog
Execute the given program with data in environment variables.
--help, -h
Print help message on screen.
--raw
Print values in raw format, as they are stored on the card.
--pretty
Print values in pretty format.
--user-info, -U
Show card holder information.
--reader num, -r num
Use the given reader. The default is the first reader with a card.
--verify pintype
Verify PIN (CHV1, CHV2 or CHV3).
--pin string
The PIN text to verify.
--gen-key ID, -G ID
Generate key. Specify key ID (1, 2 or 3) to generate.
--key-length bitlength, -L bitlength
Length (default 2048 bit) of the key to be generated.
--version, -V
Print the version of the utility and exit.
--verbose, -v
Verbose operation. Use several times to enable debug output.
--wait, -w
Wait for a card to be inserted.
AUTHORS
openpgp-tool utility was written by Peter Marschall <peter@adpm.de>.
opensc 06/17/2014 OPENPGP-TOOL(1)