Search Results

Search: Posts Made By: Vishal_dba
2,339
Posted By Vishal_dba
Excellent catch! I was using sh test4.sh ...
Excellent catch!

I was using sh test4.sh

When I used ./test4.sh it ran fine


Could you please help me understand the logic?


Thank you!

Best regards,
Vishal
2,339
Posted By Vishal_dba
It's still not working with bash Best...
It's still not working with bash


Best regards,
Vishal
2,339
Posted By Vishal_dba
Yes I used below code at the top #!/bin/sh ...
Yes I used below code at the top

#!/bin/sh


Should I try with bash?

#!/bin/bash



Best regards,
Vishal
2,339
Posted By Vishal_dba
I have done the corrections -it's still giving...
I have done the corrections -it's still giving error .Please see the update code


#!/bin/sh
#!/bin/prel
#set -x
while getopts ":n:t:" opt; do
case "$opt" in
n)
...
2,339
Posted By Vishal_dba
I have posted the entire script before your...
I have posted the entire script before your post.Please review.

Thanks!

Best regards,
Vishal
2,339
Posted By Vishal_dba
Below is the complete script #!/bin/sh ...
Below is the complete script


#!/bin/sh
#!/bin/prel
#set -x
while getopts ":n:t:" opt; do
case "$opt" in
n)
host=$OPTARG
;;
t)
...
2,339
Posted By Vishal_dba
It's still giving the same error: #!/bin/sh ...
It's still giving the same error:

#!/bin/sh
#!/bin/prel
#set -x
while getopts ":n:t:" opt; do
case "$opt" in
n)
host=$OPTARG
;;
t)
...
2,339
Posted By Vishal_dba
Script giving error-Unable to identfiy
#!/bin/sh
#!/bin/prel
#set -x
while getopts ":n:t:" opt; do
case "$opt" in
n)
host=$OPTARG
;;
t)
targ=$OPTARG
;;
*)
...
Showing results 1 to 8 of 8

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