11-12-2014
One way to verify is to compare the file sizes of the two files.
An 'ls -l' command would tell you lots about each file, including size.
What have you tried, and what have you written so far for your process?
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
hi i have small shell script as follows
cd /utilities/promoter/tmp
grep SENDREPLY $1 | grep 'zzzzz@zzz.com' | awk -F" -f1 > /tmp/$LOGNAME/$1.request
cd /tmp/$LOGNAME
grep -e "\.sql" -e "\.md" $1.request > upd_$1.txt
grep -v -e "\.sql" -e "\.md" $1.request > copy_$1.txt
... (1 Reply)
Discussion started by: zedex
1 Replies
2. UNIX for Dummies Questions & Answers
Hi
How can I test inside a shel script whether the last action was successful or not.
I have the following line which is executing inside a script
. ./runProcess.sh $i $var_num>> error.txt 2>&1
This is occuring in a loop. How can i test whether it was succes for last var_num or not. How... (2 Replies)
Discussion started by: Prashantckc
2 Replies
3. UNIX for Dummies Questions & Answers
Hello everybody,
Can anybody tell me how do we comfirm the execution of a scheduled job ?
In other words, how do I know whether my scheduled script is being executed or not ?
Thanks
Jitu JK (2 Replies)
Discussion started by: jitu.jk
2 Replies
4. Shell Programming and Scripting
Need to check whether the source file(FTP'ed file) is completly copied or not such that I can further action on the same. I have created the below script to achieve this by checking for every 10secs to whether file size is same or not but it may create a problem if the file transfer is slow and if... (4 Replies)
Discussion started by: palanisvr
4 Replies
5. Shell Programming and Scripting
Hi Experts,
I am very much new to linux scripting, I am currently working on reducing my manual work and hence writing a script to automate few task.
I am running below command to snmpwalk the router..
snmpwalk -v 3 -u WANDL_SU -a MD5 -A vfipmpls -x DES -X VfIpMpLs -l authPriv... (19 Replies)
Discussion started by: Hanumant.madane
19 Replies
6. Shell Programming and Scripting
Hi All,
I have written a shell script that creates a backup of my MySQL database. The script performs the following functions:
Creates a Backup of the MySQL database
Compresses the Backup
Copies the Backup to a Remote Server
Send an E-Mail displaying the size of the Backup
Removes any... (6 Replies)
Discussion started by: SalientAnimal
6 Replies
7. Shell Programming and Scripting
below is the output xml string from some other command and i will be parsing it using awk
cat /tmp/alerts.xml
<Alert id="10102" name="APP-DS-ds_ha-140018-componentFailure-S" alertDefinitionId="13982" resourceId="11427" ctime="1359453507621" fixed="false" reason="If Event/Log Level(ANY) and... (2 Replies)
Discussion started by: vivek d r
2 Replies
8. Shell Programming and Scripting
Hello,
I have written a command n shell script :
srvctl relocate service -d t1 -s s1 -i i1 -t t1 -f
If the above command executes successfully without error I need to echo
"Service relocated successfully
and If it errors out I need to trap the errors in a file and also need to make... (1 Reply)
Discussion started by: Vishal_dba
1 Replies
9. UNIX for Dummies Questions & Answers
All,
I have to copy huge file from one location to another using python . I want to make sure the execution of Copy command is successful and all the files are copied properly (there has not been any abrupt interruption to the copy process or error like no space available is encountered during... (2 Replies)
Discussion started by: IshuGupta
2 Replies
10. Red Hat
hi guys,
booting centos7 and use systemd execute system command ulimit -SHn 202400 is fail.i dont know what's reason.can you give me help.
------------------------------------------
set-ulimit.service
Description=test service
After=systemd-update-utmp-runlevel.service #the last... (1 Reply)
Discussion started by: shean
1 Replies
LEARN ABOUT DEBIAN
dscverify
DSCVERIFY(1) General Commands Manual DSCVERIFY(1)
NAME
dscverify - verify the validity of a Debian package
SYNOPSIS
dscverify [--keyring keyring] ... changes_or_dsc_filename ...
DESCRIPTION
dscverify checks that the GPG signatures on the given .changes or .dsc files are good signatures made by keys in the current Debian
keyrings, found in the debian-keyring and debian-maintainers packages. (Additional keyrings can be specified using the --keyring option
any number of times.) It then checks that the other files listed in the .changes or .dsc files have the correct sizes and checksums (MD5
plus SHA1 and SHA256 if the latter are present). The exit status is 0 if there are no problems and non-zero otherwise.
OPTIONS
--keyring keyring
Add keyring to the list of keyrings to be used.
--no-default-keyrings
Do not use the default set of keyrings.
--no-conf, --noconf
Do not read any configuration files. This can only be used as the first option given on the command-line.
--nosigcheck, --no-sig-check, -u
Skip the signature verification step. That is, only verify the sizes and checksums of the files listed in the .changes or .dsc
files.
--verbose
Do not suppress GPG output.
--help, -h
Display a help message and exit successfully.
--version
Display version and copyright information and exit successfully.
CONFIGURATION VARIABLES
The two configuration files /etc/devscripts.conf and ~/.devscripts are sourced by a shell in that order to set configuration variables.
Environment variable settings are ignored for this purpose. If the first command line option given is --noconf or --no-conf, then these
files will not be read. The currently recognised variable is:
DSCVERIFY_KEYRINGS
This is a colon-separated list of extra keyrings to use in addition to any specified on the command line.
KEYRING
Please note that the keyring provided by the debian-keyring package can be slightly out of date. The latest version can be obtained with
rsync, as documented in the README that comes with debian-keyring. If you sync the keyring to a non-standard location (see below), you can
use the possibilities to specify extra keyrings, by either using the above mentioned configuration option or the --keyring option.
Below is an example for an alias:
alias dscverify='dscverify --keyring ~/.gnupg/pubring.gpg'
STANDARD KEYRING LOCATIONS
By default dscverify searches for the debian-keyring in the following locations:
- /org/keyring.debian.org/keyrings/debian-keyring.gpg
- /usr/share/keyrings/debian-keyring.gpg
- /usr/share/keyrings/debian-maintainers.gpg
SEE ALSO
gpg(1) and devscripts.conf(5).
AUTHOR
dscverify was written by Roderick Schertler <roderick@argon.org> and posted on the debian-devel@lists.debian.org mailing list, with several
modifications by Julian Gilbey <jdg@debian.org>.
DEBIAN
Debian Utilities DSCVERIFY(1)