New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

OS 10.5 - This command doesn't work in terminal of Leopard Server


Post Reply New Thread Subscribe

 
Thread Tools
txn

 
Member Since: Jun 25, 2007
Posts: 11
txn is on a distinguished road

txn is offline
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.
QUOTE Thanks
lifeafter2am

 
lifeafter2am's Avatar
 
Member Since: Aug 25, 2006
Location: Central Florida
Posts: 1,395
lifeafter2am is a jewel in the roughlifeafter2am is a jewel in the rough
Mac Specs: MacBook Pro Unibody

lifeafter2am is offline
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.
QUOTE Thanks
txn

 
Member Since: Jun 25, 2007
Posts: 11
txn is on a distinguished road

txn is offline
Thanks for the output, it still doesn't work with ./start-cumulus.sh and it gives me the same error above.
QUOTE Thanks
lifeafter2am

 
lifeafter2am's Avatar
 
Member Since: Aug 25, 2006
Location: Central Florida
Posts: 1,395
lifeafter2am is a jewel in the roughlifeafter2am is a jewel in the rough
Mac Specs: MacBook Pro Unibody

lifeafter2am is offline
For some reason it seems like it is wanting an option when you invoke it. Try:
Code:
# sh --verbose start-cumulus.sh
QUOTE Thanks
txn

 
Member Since: Jun 25, 2007
Posts: 11
txn is on a distinguished road

txn is offline
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
QUOTE Thanks

Post Reply New Thread Subscribe


« Anoying spotlight problem | URGENT: Sudden Black Screen On Tiger »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Problems with MySQL scorpionbilli Web Design and Hosting 18 04-29-2008 07:07 PM
Programs that work with leopard? Hazzfq Switcher Hangout 1 11-19-2007 09:33 AM
X server wiz561 OS X - Development and Darwin 1 11-18-2004 11:29 AM
eMac as a Server? lokerd Other Hardware and Peripherals 11 09-13-2004 10:53 PM

All times are GMT -4. The time now is 11:22 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?