Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: glenn.morris@hinchingbrooke.nhs-dot-uk.no-spam.invalid (Glonn)
Subject: Script problem
Date: Fri, 13 May 2005 16:15:14 +0000 (UTC)	[thread overview]
Message-ID: <d62jq7$96j$2@domitilla.aioe.org> (raw)

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



             reply	other threads:[~2005-05-13 16:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-13 16:15 Glonn [this message]
2005-05-14  8:56 ` Script problem banzai
2005-05-14 13:22 ` vishal
2005-05-14 18:21 ` Stuart Fuller
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