Results 1 to 5 of 5
  1. #1


    Member Since
    Jun 25, 2007
    Posts
    11
    This command doesn't work in terminal of Leopard Server
    Hi everyone,

    I just upgraded from Tiger Server to Leopard server, everything going ok so far but only one problem i have with running this command. Here is what i did

    server:~ administrator$su root
    password
    sh-3.2# sh start-cumulus.sh
    sh: - : invalid option
    Usage: sh GNU long option option ...
    sh GNU long option option script-file ...
    GNU long options:
    --debug
    --debugger
    --dump-po-strings
    --dump-strings
    --help
    --init-file
    --login
    --noediting
    --noprofile
    --norc
    --posix
    --protected
    --rcfile
    --restricted
    --verbose
    --version
    --wordexp
    Shell options:
    -irsD or -c command or -O shopt_option (invocation only)
    -abefhkmnptuvxBCHP or -o option
    sh-3.2#
    I was able to run 'sh start-cumulus.sh' with tiger is just fine. Did i do something wrong here ? Any ideas why it doesn't work with Leopard Server? Thanks.

  2. #2

    lifeafter2am's Avatar
    Member Since
    Aug 25, 2006
    Location
    Central Florida
    Posts
    1,395
    Specs:
    MacBook Pro Unibody
    Just a guess, but I never really invoke the sh, try this:
    Code:
    # ./start-cumulus.sh
    Are you in the directory where that command resides? I have ZERO experience with any Mac servers, but I work on Unix and Linux servers daily.

  3. #3


    Member Since
    Jun 25, 2007
    Posts
    11
    Thanks for the output, it still doesn't work with ./start-cumulus.sh and it gives me the same error above.

  4. #4

    lifeafter2am's Avatar
    Member Since
    Aug 25, 2006
    Location
    Central Florida
    Posts
    1,395
    Specs:
    MacBook Pro Unibody
    For some reason it seems like it is wanting an option when you invoke it. Try:
    Code:
    # sh --verbose start-cumulus.sh

  5. #5


    Member Since
    Jun 25, 2007
    Posts
    11
    Quote Originally Posted by lifeafter2am View Post
    For some reason it seems like it is wanting an option when you invoke it. Try:
    Code:
    # sh --verbose start-cumulus.sh
    I tried it and it gives me this:

    Code:
    sh-3.2# sh --verbose start-cumulus.sh
    #!/bin/sh
    #----------------------------------------------------------------------------
    # start-cumulus.sh
    # Version 6.00
    # (c) 2003 Canto GmbH
    #----------------------------------------------------------------------------
    
    
    ECHO=darwinecho
    NATIVE_ECHO=echo
    LS=ls       
    AWK=awk     
    GAWK=$AWK
    NAWK=$AWK
    TAR=tar 
    TARPARAM=xf
    
    
    
    
    
    
    
    
    
    
    #_____________________________________________________________
    #
    # Get the current dir
    #_____________________________________________________________
    
    getCurrentDir()
    {
        DIR=`dirname "$1"`
        cd "$DIR" ; $ECHO `pwd`
    }
    
    
    darwinecho()
    {
        if [ -z "$1" ]; then
            echo
        else
            echo -n $1 $2 $3 $4 $5 $6 $7 $8 | sed 's/\\@/?/; s/\\b/ /g; s/\\t/        /g; s/\\n/\
    /g; /\\c/!a\
    \
    
    s/\\c//g'
       fi       
    }
    
    
    
    CUMULUSHOME=`getCurrentDir "$0"`
    getCurrentDir "$0"
    dirname "$1"
    pwd
    export CUMULUSHOME
    
    ### start Cumulus server
    
    sh "$CUMULUSHOME/bin/service.sh" -start cumulus6d
    sh: - : invalid option
    Usage:  sh [GNU long option] [option] ...
            sh [GNU long option] [option] script-file ...
    GNU long options:
            --debug
            --debugger
            --dump-po-strings
            --dump-strings
            --help
            --init-file
            --login
            --noediting
            --noprofile
            --norc
            --posix
            --protected
            --rcfile
            --restricted
            --verbose
            --version
            --wordexp
    Shell options:
            -irsD or -c command or -O shopt_option          (invocation only)
            -abefhkmnptuvxBCHP or -o option
    sh-3.2#
    any ideas ?Thanks

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Left Command N doesn't work
    By Brian1618 in forum Other Hardware and Peripherals
    Replies: 1
    Last Post: 06-16-2015, 12:59 AM
  2. Tried to remove WD Smartware with terminal command and now doesn's show up
    By aaon in forum Other Hardware and Peripherals
    Replies: 0
    Last Post: 07-02-2010, 10:25 AM
  3. Command ln -s does not work (no feedback at all in terminal)
    By dysprosium in forum OS X - Operating System
    Replies: 0
    Last Post: 01-27-2010, 05:28 AM
  4. Snow Leopard terminal command problem
    By Whitewings in forum OS X - Operating System
    Replies: 2
    Last Post: 11-06-2009, 03:14 PM
  5. Sleep command doesn't work in terminal
    By greenapple in forum OS X - Operating System
    Replies: 1
    Last Post: 02-08-2005, 11:25 AM

Posting Permissions

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