From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fa528,c085aae29e0a347 X-Google-Attributes: gidfa528,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!news.compaq.com!news.cpqcorp.net!53ab2750!not-for-mail From: "banzai" Newsgroups: comp.unix.tru64 References: Subject: Re: Script problem X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Message-ID: Date: Sat, 14 May 2005 08:56:23 GMT NNTP-Posting-Host: 15.124.40.133 X-Complaints-To: abuse@HP.com X-Trace: news.cpqcorp.net 1116060983 15.124.40.133 (Sat, 14 May 2005 01:56:23 PDT) NNTP-Posting-Date: Sat, 14 May 2005 01:56:23 PDT Organization: Hewlett-Packard Company Xref: g2news1.google.com comp.unix.tru64:708 Haven't tested, but from the top of my head you coud add a second parameter to read i.e. read name1 name2 and then /usr/sbin/dop useradd_script -g 201 -d $home1 -c $name1 $name2 $user1 "Glonn" wrote in message news:d62jq7$96j$2@domitilla.aioe.org... > 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 >