I am guessing: On the problem box, there is a spurious non-printing character in the environment variable(s) you have defined. I do not know what you have defined, but if you have local (Ex: .bashrc) files or other "hidden" files sprinkled around you have to validate them to locate where you picked up the garbage.
I have file named script1 as follows:
#!/bin/bash
count="0"
echo "hello"
echo "$count"
while
do
echo "$count"
count=`expr $count + 1`
done
-----------
when I run it, I get
./script1: line 9: syntax error near unexpected token `done'
./script1: line 9: `done'
I... (6 Replies)
hello everybody,
as many, I have a problem with a script...
I wrote a shell script in which I want to read a variable value. the problem is that I can't use the arrow keys.
Here is the script I use :
#!/bin/bash
stty erase ^H
read foune
echo "$foune"
exit 0;
the problem is... (2 Replies)
Hi All,
Linux lxs3er06 2.6.9-67.ELsmp #1 SMP Wed Nov 7 13:58:04 EST 2007 i686 i686 i386 GNU/Linux
Issue:
While executing shell scripts in bash shell, following error messages are thrown:
rm:command not found
On doing little investigation, I added '/bin' to $PATH and on doing echo... (9 Replies)
Hi,
This is my program.
#!/bin/bash
today=`date +"%b-%d-%Y"`
SERVICE="pbxconnect.php"
if ; then
echo "pbx program is running"
else
nohup php pbxconnect.php > logpbx-$today.txt &
fi
On executing using "sh myprogram.sh" , i get the following error.
myprogram.sh: line 4: '
My... (7 Replies)
PLEASE HELP!
NEED LINUX SCTIPT
Need to write a bash shell script to show information of employees of a department from a company data set.
The script should accept a project number (1/2/3/10/20/30) and output
* the name of the project
* the name of the manager of the controlling... (1 Reply)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Write a bash shell script that presents work information of employees of a department from a company data... (1 Reply)
Hello All,
I am trying to gather output of df -k from remote server to local server using below line:
rsh <host> df -k >/tmp/space_remote_host.txt
Why above throws following error message:(I've deleted the IP address in below chunk)
connect to address ..: Connection refused
Trying... (2 Replies)
Migrating Unix batch jobs (Korn Shell) running in HP-UX server to Linux environment.
Hi All
Please help me to understand the easiest way to migrate Kernel Shell scripts to Linux Bash. Also let me know
1. Any automated scripts or tools available for this.
2. Challenges and issues... (5 Replies)
I am trying to initialize a file name in bash but not having much luck. For example, one of my bash scripts outputs a file named "FILE_1000G.vcf". I would like to rename FILE to match with the user's name. This is my code:
set -e
echo "Please enter your filename:"
read filename
rename... (6 Replies)
I have a csv file that looks like this
Name,Food,Sport
James,Curry,Gym
Darren,Pizza,Football
Jim,Fish,Hockey
James,Sushi,Tennis
My code looks like this
IFS=","
sed 1d $file_name | while read Name Food Sport
do
mkdir -p $Name
#echo "=================="
#echo "Name: $Name" (3 Replies)
Discussion started by: darklord173
3 Replies
LEARN ABOUT REDHAT
gpgv
gpgv(1) General Commands Manual gpgv(1)NAME
gpgv -- signature verification tool
SYNOPSIS
gpgv [options] [signed files]
DESCRIPTION
gpgv is the OpenPGP signature checking tool.
This program is a stripped down version of gpg which is only able to check signatures. It is somewhat smaller than the full blown gpg and
uses a different (and more simple way) to check that the public keys used to made the signature are trustworth. There is no options files
and only very few options are implemented.
gpgv assumes that all keys in the keyring are trustworty. It uses by default a keyring named trustedkeys.gpg which is assumed to be in the
home directory as defined by GnuPG or set by an option or an environment variable. An option may be used to specify another keyring or
even multiple keyrings.
OPTIONS
gpgv recognizes these options:
-v, --verbose
Give more information during processing. If used twice, the input data is listed in detail.
-q, --quiet
Try to be as quiet as possible.
--keyring file
Add file to the list of keyrings. If file begins with a tilde and a slash, these are replaced by the HOME directory. If the
filename does not contain a slash, it is assumed to be in the home-directory ("~/.gnupg" if --homedir is not used). The filename
may be prefixed with a scheme:
"gnupg-ring:" is the default one.
It might make sense to use it together with --no-default-keyring.
--homedir directory
Set the name of the home directory to directory If this option is not used it defaults to "~/.gnupg". It does not make sense to
use this in a options file. This also overrides the environment variable "GNUPGHOME".
--status-fd n
Write special status strings to the file descriptor n. See the file DETAILS in the documentation for a listing of them.
--logger-fd n
Write log output to file descriptor n and not to stderr.
--ignore-time-conflict
GnuPG normally checks that the timestamps associated with keys and signatures have plausible values. However, sometimes a signa-
ture seems to be older than the key due to clock problems. This option makes these checks just a warning.
RETURN VALUE
The program returns 0 if everything was fine, 1 if at least one signature was bad, and other error codes for fatal errors.
EXAMPLES
gpgv pgpfile
gpgv sigfile [files]
Verify the signature of the file. The second form is used for detached signatures, where sigfile is the detached signature
(either ASCII armored or binary) and [files] are the signed data; if this is not given the name of the file holding the signed
data is constructed by cutting off the extension (".asc", ".sig" or ".sign") from sigfile.
ENVIRONMENT
HOME Used to locate the default home directory.
GNUPGHOME If set directory used instead of "~/.gnupg".
FILES
~/.gnupg/trustedkeys.gpg
The default keyring with the allowed keys
gpgv(1)