This command doesn't work in terminal of Leopard Server

txn


Joined
Jun 25, 2007
Messages
11
Reaction score
0
Points
1
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.
 
Joined
Aug 25, 2006
Messages
1,395
Reaction score
30
Points
48
Location
Central Florida
Your Mac's 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.
 
OP
T

txn


Joined
Jun 25, 2007
Messages
11
Reaction score
0
Points
1
Thanks for the output, it still doesn't work with ./start-cumulus.sh and it gives me the same error above.
 
Joined
Aug 25, 2006
Messages
1,395
Reaction score
30
Points
48
Location
Central Florida
Your Mac's 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
 
OP
T

txn


Joined
Jun 25, 2007
Messages
11
Reaction score
0
Points
1
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
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top