LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-14-2004, 10:35 AM   #1
korbin
LQ Newbie
 
Registered: Jan 2004
Posts: 9

Rep: Reputation: 0
where is the problem?


#!/bin/sh
clear
echo -n "dose to onoma xristi : "
read username
while [ \( -z $username \) -o \( $username \) ]; do

clear
echo "0 an metanioses"
echo -n "den edoses onoma xristi :"
read username
done

if [ "$username" = "0" ]; then
exit 0
fi


i can not see! i can't find it! it doesn't work
 
Old 01-14-2004, 11:16 AM   #2
guygriffiths
Member
 
Registered: Jun 2003
Location: Reading, UK
Distribution: Debian 3.0, LFS
Posts: 524

Rep: Reputation: 36
I'm crap at shell scripting. I know next to nothing. Could you explain what the line:
while [ \( -z $username \) -o \( $username \) ]; do
does? Specifically the bit between [].
Also, how isn't it working? It's running certainly - I tried it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
perl problem? apache problem? cgi problem? WorldBuilder Linux - Software 1 09-17-2003 08:45 PM


All times are GMT -5. The time now is 12:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration