Results 1 to 2 of 2

Thread: SCRIPT WITH "displayName" $FULLNAME

  1. #1
    Join Date
    Aug 2011
    Posts
    8
    Rep Power
    4

    Post SCRIPT WITH "displayName" $FULLNAME

    Thanks for the help so far! I finally got the server!

    Need help in creating a script has to treat "displayName"
    I'm using a scirpt that reads the username and namefull

    example of the main part of the script ...
    #zmprov ca $username@mydomain.com passwd displayName $namefull

    The variables comes from my list users.txt
    ...
    richard.matthew, Richard Matthew Stallman
    linus.torvalds; Linus Torvalds
    mad.dog; mad
    ....

    Problem with namefull, has first name and second name in an error!

    error = usage: createAccount (ca) {name @ domain} {password} [attr1 value1 [value2 ... attr2]]
    For general help, type: zmprov - help

    If namefull is only first name, and script works ok in that case would only create the User of mad.dog and assign the namefull with "mad"

    how I can make the parameter "displayName" accepted names as
    Richard Matthew Stallman
    Linus Torvalds

    HOW TO UNDERSTAND ZIMBRA FULNAME!

    ps: if use echo $ namefull returns the namefull correctly.

    I do not know if it was clear, but I tried to drill.!

    Thank you again!

  2. #2
    Join Date
    Jul 2007
    Location
    US
    Posts
    67
    Rep Power
    8

    Default

    I'll guess you're using a shell script, perhaps bash. If you're using bash, then you'll likely want to use double quotes around the variable so spaces embedded in the variable don't end up as separate arguments to the zmprov command.

    References:
    - Bash Reference Manual: Double Quotes
    - Quoting Variables

    Hope this helps!

Similar Threads

  1. "Cold" recovery without script - just plain directory
    By juergenmw in forum Installation
    Replies: 0
    Last Post: 05-24-2013, 03:19 AM
  2. Trying To Reinstall "Can't Find Script Engine "VBScript"
    By Jeff225 in forum Installation Help
    Replies: 1
    Last Post: 05-24-2012, 11:23 PM
  3. Deleting messages causes "Unresponsive script" error
    By Ryan1 in forum General Questions
    Replies: 7
    Last Post: 06-27-2011, 09:53 AM
  4. Backup help needed. Using "Simple Shell Script Method"
    By physikal in forum Administrators
    Replies: 3
    Last Post: 05-18-2009, 09:49 AM
  5. Replies: 0
    Last Post: 01-20-2008, 12:42 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •