![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Error Message | RDM00 | UNIX for Dummies Questions & Answers | 2 | 10-06-2006 07:43 PM |
| getting last error message | tttttt | UNIX for Dummies Questions & Answers | 1 | 07-26-2006 03:07 PM |
| Error message | ghuber | UNIX for Advanced & Expert Users | 1 | 11-14-2005 06:04 AM |
| error message vnc | Castelior | UNIX for Advanced & Expert Users | 3 | 10-21-2004 05:50 AM |
| error message | alisev | UNIX for Dummies Questions & Answers | 3 | 01-08-2002 05:01 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Error Message
I keep getting an error message in a script im writing, this line is allways pointed out.
if [ $choice =1 ] and this is the message i keep getting. line 32: [: 8: unary operator expected Whats wrong with it? Please Help. |
|
||||
|
This is the code, but when i enter an if statement saying if greater that 12 the echo an error message but when im typing X in to exit its saying its an incorrect character entered but i thought that it wouldn't affect alpha characters? Code:
clear
echo
echo
echo
echo
echo "***********************************Welcome to INET Diagnostics Utility ***********************************************"
echo "**********************************************************************************************************************"
echo
echo
echo
echo " 1) Ping Web Site"
echo " 2) Telnet"
echo " 3) Logit"
echo " 4) Pico"
echo " 5) Text Based Inetnet"
echo " 6) Files Counter"
echo " 7) File Lister"
echo " 8) Backup Directories"
echo " 9) Calculator"
echo " 10) Calender"
\echo " 11) FTP Client"
echo " 12) DNS Client"
echo " X) Exit"
echo
echo
echo
echo
echo " Choose your choice"
echo "**********************************************************************************************************************"
read choice
if [ "$choice" = "1" ]
then
echo " To Escape A Ping Cycle Hold CTRL And Press C!"
echo
echo
sleep 4
echo "Which Site Do You Wish To Ping? (Include full extension without the www) "
read name
echo
echo
echo
ping -c 10 $name
echo "Hit Enter To Return To The Main Menu!"
echo "Paused............"
read
inet
fi
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|