Search Results

Search: Posts Made By: leemalloy
33,369
Posted By Chubler_XL
You were pretty close with your original code,...
You were pretty close with your original code, just use double [ and ] :


if [[ "$test" != [0-9] ]];then
echo "not in range"
else
echo "number within range"
fi
33,369
Posted By franzpizzo
@RudiC Hi, queston is: the request is a...
@RudiC
Hi, queston is: the request is a validation check or only a check for the range?
This check have not sense for alphanumeric value of test variable.
Thanks
33,369
Posted By RudiC
@franzpizzo: if LOWER is less or equal 0, and...
@franzpizzo: if LOWER is less or equal 0, and test is alpha, it will be considered "in range"!
33,369
Posted By itkamaraj
read about the relational operators and boolean...
read about the relational operators and boolean operators in shell ( google it )
13,556
Posted By spacebar
Ok, Try this: #!/usr/bin/expect set timeout...
Ok, Try this:
#!/usr/bin/expect
set timeout 10
set host [lindex $argv 0]
set user [lindex $argv 1]
set password [lindex $argv 2]

proc login {host user password} {
expect {
...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 03:34 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy