Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* Script problem
@ 2005-05-13 16:15 Glonn
  2005-05-14  8:56 ` banzai
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Glonn @ 2005-05-13 16:15 UTC (permalink / 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



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-05-18  9:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2005-05-18  9:50 ` problem Glonn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox