From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fa528,c085aae29e0a347,start X-Google-Attributes: gidfa528,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.glorb.com!news.newsland.it!news.cdlan.net!ilaria.aioe.org!aioe.org!not-for-mail From: glenn.morris@hinchingbrooke.nhs-dot-uk.no-spam.invalid (Glonn) Newsgroups: comp.unix.tru64 Subject: Script problem Date: Fri, 13 May 2005 16:15:14 +0000 (UTC) Organization: Aioe.org NNTP Server Message-ID: NNTP-Posting-Host: USvn5tYT+r37wx6WauFuUg.domitilla.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org NNTP-Posting-Date: Fri, 13 May 2005 16:15:14 +0000 (UTC) User-Agent: newsSync (niXdoc.net Forum) 144551 Xref: g2news1.google.com comp.unix.tru64:706 I am trying to create a user account adding script using 'useradd' the problem is I cannot seem to enter the persons name with a space in the text field i.e. -c 'Jack Burton' see script below echo "Enter Username" read user1 echo "Type Home Directory" echo "i.e. /home/IOP" read home1 echo "Type First Name Surname" read name1 /usr/sbin/dop useradd_script -g 201 -d $home1 -c $name1 $user1 exit The script above replies with a syntax error because $name1 has a space in it how do I enter it with the ' ' enclosing the string Thanks in advance Glonn