01-12-2009
Are you sure that the mysqldump program exits with non xero value where things go wrong?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i have following if condition
if
above statement is case sensitive.....what is syntax if i have to make above comparision case insensetive (4 Replies)
Discussion started by: mahabunta
4 Replies
2. Shell Programming and Scripting
Hi friends, :)
In a shell script i found the following if condition.
echo -n "Which version of $1 do you want to restore ('0' to quit)? : "
read desired
if ${desired:=1} -ge $index ] ; then
echo "$0: Restore canceled by user: index value too big." >&2
exit 1
fi
Can... (1 Reply)
Discussion started by: ravi raj kumar
1 Replies
3. Shell Programming and Scripting
i have a paramter data_date in which i am passing a string value.i want to find out another paramter file_date from this.the logic is given below
if day of data_date = sunday or monday
then
file_date=data_date-1
else
file_date=data_date-2
i am passing data_date as 20061027.
how can i... (3 Replies)
Discussion started by: dr46014
3 Replies
4. Shell Programming and Scripting
Hi,
I am trying to execute this command, but is it not working, says "`;' unexpected"
eval $lgrep $SAM_CMD ; if ; then ; echo "No Error" ; fi
What i want is, return the command output, if it is non zero, say "No Error".
Thanks, John. (21 Replies)
Discussion started by: john_prince
21 Replies
5. HP-UX
Executed the following if conditions .. and got different results .
only (( )) gave correct o/p with all scenarios .
Can anybody please let me know what is the difference between and ] and ((condition)) when used with if condition.
And why each condition gave different result.
1.... (2 Replies)
Discussion started by: soumyabubun
2 Replies
6. Shell Programming and Scripting
hi,
I have some problems in my simple script about the redirect echo stdout command inside a condition. Why is the echo command inside the elif still execute in the else command
Here are my simple script
After check on the two diff output the echo stdout redirect is present in two diff... (3 Replies)
Discussion started by: jao_madn
3 Replies
7. Shell Programming and Scripting
if
chr1:109457160 1 109457160 99.1735537190083 +
chr1:109457233 1 109457233 99.1735537190083 -
chr1:109457614 1 109457614 99.1735537190083 +
chr1:109457618 1 109457618 100 +
chr1:109457943 1 109457943 100 -
chr1:109458224 1 109458224 99.1735537190083 -
file1.txt
If 6th column in... (3 Replies)
Discussion started by: johnkim0806
3 Replies
8. Shell Programming and Scripting
HI
My doubt may be basic one but I need to get it clarified..
When i use "if" condition that checks for many AND, OR logical conditions
like
if ]; then
return 0
fi
Even the if condition fails it returns as zero.. Any clue..
But if i add else condition like
if ]; ... (2 Replies)
Discussion started by: Priya Amaresh
2 Replies
9. UNIX for Dummies Questions & Answers
Hi all
Unix newbie - please be gentle
Am modifying an existing script to error trap a variable with a length of 0
#!/bin/bash
ipfile='/var/data/bin/ipaddress'
] && ipold="$(< "$ipfile" )"
ipnew="$( wget -q -O - checkip.dyndns.org | sed -e 's/.*Current IP Address: //;s/<.*$//' )"
#... (6 Replies)
Discussion started by: CRChamberlain
6 Replies
10. Shell Programming and Scripting
o/p of my command is given below
My requirement is
if Pnumber is 0 then
stabilization.Build.2013
else
stabilization.PBuild.2013.3 (11 Replies)
Discussion started by: nikhil jain
11 Replies
LEARN ABOUT REDHAT
isamchk
ISAMCHK(1) General Commands Manual ISAMCHK(1)
NAME
isamchk
- Description, check and repair of ISAM tables. Used without options all tables on the command will be checked for errors
USAGE
isamchk [OPTIONS] tables[.ISM]
SYNOPSIS
isamchk [-a|--analyze] [-#|--debug=...] [--character-sets-dir=...] [-C|--default-character-set=...] [-d|--description]
[-e|--extend-check] [-f|--force] [-?|--help] [-i|--information] [-k|--keys-used=#] [-l|--no-symlinks] [-q|--quick] [-r|--recover]
[-o|--safe-recover] [-O|--set-variable var=option] [-s|--silent] [-S|--sort-index] [-R|--sort-records=#] [-u|--unpack] [-v|--verbose]
[-V|--version] [-w|--wait]
DESCRIPTION
-a|--analyze
Analyze distribution of keys. Will make some joins in MySQL faster.
-#|--debug=...
Output debug log. Often this is 'd:t:o ,filename`
--character-sets-dir=...
Directory where character sets are
-C|--default-character-set=...
Set the default character set
-d|--description
Prints some information about table.
-e|--extend-check
Check the table VERY thoroughly. One need use this only in extreme cases as isamchk should normally find all errors even without
this switch
-f|--force
Overwrite old temporary files. If one uses -f when checking tables (running isamchk without -r), isamchk will automatically restart
with -r on any wrong table.
-?|--help
Display help and exit.
-i|--information
Print statistics information about the table
-k|--keys-used=#
Used with '-r'. Tell ISAM to update only the first # keys. This can be used to get faster inserts!
-l|--no-symlinks
Do not follow symbolic links when repairing. Normally isamchk repairs the table a symlink points at.
-q|--quick
Used with -r to get a faster repair. (The data file isn't touched.) One can give a second '-q' to force isamchk to modify the origi-
nal datafile.
-r|--recover
Can fix almost anything except unique keys that aren't unique.
-o|--safe-recover
Uses old recovery method; slower than '-r' but can handle a couple of cases that '-r' cannot handle.
-O| --set-variable var=option
Change the value of a variable.
-s|--silent
Only print errors. One can use two -s to make isamchk very silent
-S|--sort-index
Sort index blocks. This speeds up 'read-next' in applications
-R|--sort-records=#
Sort records according to an index. This makes your data much more localized and may speed up things (It may be VERY slow to do a
sort the first time!)
-u|--unpack
Unpack file packed with pack_isam.
-v|--verbose
Print more information. This can be used with -d and -e. Use many -v for more verbosity!
-V|--version
Print version and exit.
-w|--wait
Wait if table is locked.
SEE ALSO
isamchk (1), isamlog (1), mysqlaccess (1), mysqladmin (1), mysqlbug (1), mysqld (1), mysqldump (1), mysqlshow (1), msql2mysql (1), perror
(1), replace (1), safe_mysqld (1), which1 (1), zap (1),
AUTHOR
Ver 1.0, distribution 3.23.29a Michael (Monty) Widenius (monty@tcx.se), TCX Datakonsult AB (http://www.tcx.se). This software comes with
no warranty. Manual page by L. (Kill-9) Pedersen (kill-9@kill-9.dk), Mercurmedia Data Model Architect / system developer (http://www.mer-
curmedia.com)
19 December 2000 ISAMCHK(1)