From: Stuart Fuller <stufuller@usa.net>
Subject: Re: Script problem
Date: Sat, 14 May 2005 14:21:51 -0400 [thread overview]
Message-ID: <v6shl2-rmt.ln1@dadsys2.fuller.com> (raw)
In-Reply-To: d62jq7$96j$2@domitilla.aioe.org
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
next prev parent reply other threads:[~2005-05-14 18:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-13 16:15 Script problem Glonn
2005-05-14 8:56 ` banzai
2005-05-14 13:22 ` vishal
2005-05-14 18:21 ` Stuart Fuller [this message]
2005-05-18 9:50 ` problem Glonn
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox