Error: "sh: -c: line 0: syntax error near unexpected token `)'" is displayed at the end of an iPrint migration

  • 7009677
  • 01-Nov-2011
  • 26-Apr-2012

Environment

Novell iPrint for Linux
 Open Enterprise Server Support Pack 3

Situation

iPrint migration appears to have completed successfully, however the following error is seen on the terminal.
 
sh: -c: line 0: syntax error near unexpected token `)'
sh: -c: line 0: `/opt/novell/oes-install/util/getSSCert -a myserver.mydomain.com -t myTree -u myadmin.organization -x mypassword'
 

Resolution

Steps to resolve this issue:
  1. Open the /opt/novell/bin/iprintmig file in an editor.
  2. Search for "getSSCert"
  3. At the end of the line containing "getSSCert" change to the following:
    Current:
    `/opt/novell/oes-install/util/getSSCert -a $opts{'src'}  -t $src_tree_name -u $src_dn_name -x $opts{'src-pass'}`;

    Corrected:
    `/opt/novell/oes-install/util/getSSCert -a $opts{'src'}  -t $src_tree_name -u $src_dn_name -x "$opts{'src-pass'}"`;
  4. Save the file.
  5. Restart the migration and the problem should be solved.

Status

Reported to Engineering