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!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.wideopenwest.com!news.wideopenwest.com.POSTED!not-for-mail NNTP-Posting-Date: Sat, 14 May 2005 13:49:51 -0500 Message-Id: From: Stuart Fuller Subject: Re: Script problem Newsgroups: comp.unix.tru64 Reply-To: stufuller@usa.net Date: Sat, 14 May 2005 14:21:51 -0400 References: Organization: at home, in the basement User-Agent: KNode/0.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit NNTP-Posting-Host: 67.149.20.56 X-Trace: sv3-hRv5X236iteuE2YMDlod66uXHKM5veyodG73HDwffmZP4fxYqASUEat2g6gpSlSzZlh68lgKbF++Brx!2Z52QdXCEB/r/YcWuIT8UQxReCyzN+8sLRqp8z5l8nOHWA5/Ssques8ASKTRwV+SvdVMKRq9NbBp!pNfMyJTu5hiMr/lmTymmyfOdM5k= X-Complaints-To: abuse@wideopenwest.com X-DMCA-Complaints-To: abuse@wideopenwest.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news1.google.com comp.unix.tru64:710 Glonn wrote: > 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 /usr/sbin/dop useradd_script -g 201 -d $home1 -c "$name1" $user1 -- Stu