Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Apple Computing Products:
macOS - Operating System
This command doesn't work in terminal of Leopard Server
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="txn" data-source="post: 539944" data-attributes="member: 33330"><p>I tried it and it gives me this:</p><p></p><p>[code]</p><p>sh-3.2# sh --verbose start-cumulus.sh</p><p>#!/bin/sh</p><p>#----------------------------------------------------------------------------</p><p># start-cumulus.sh</p><p># Version 6.00</p><p># (c) 2003 Canto GmbH</p><p>#----------------------------------------------------------------------------</p><p></p><p></p><p>ECHO=darwinecho</p><p>NATIVE_ECHO=echo</p><p>LS=ls </p><p>AWK=awk </p><p>GAWK=$AWK</p><p>NAWK=$AWK</p><p>TAR=tar </p><p>TARPARAM=xf</p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p>#_____________________________________________________________</p><p>#</p><p># Get the current dir</p><p>#_____________________________________________________________</p><p></p><p>getCurrentDir()</p><p>{</p><p> DIR=`dirname "$1"`</p><p> cd "$DIR" ; $ECHO `pwd`</p><p>}</p><p></p><p></p><p>darwinecho()</p><p>{</p><p> if [ -z "$1" ]; then</p><p> echo</p><p> else</p><p> echo -n $1 $2 $3 $4 $5 $6 $7 $8 | sed 's/\\@/?/; s/\\b/ /g; s/\\t/ /g; s/\\n/\</p><p>/g; /\\c/!a\</p><p>\</p><p></p><p>s/\\c//g'</p><p> fi </p><p>}</p><p></p><p></p><p></p><p>CUMULUSHOME=`getCurrentDir "$0"`</p><p>getCurrentDir "$0"</p><p>dirname "$1"</p><p>pwd</p><p>export CUMULUSHOME</p><p></p><p>### start Cumulus server</p><p></p><p>sh "$CUMULUSHOME/bin/service.sh" -start cumulus6d</p><p>sh: - : invalid option</p><p>Usage: sh [GNU long option] [option] ...</p><p> sh [GNU long option] [option] script-file ...</p><p>GNU long options:</p><p> --debug</p><p> --debugger</p><p> --dump-po-strings</p><p> --dump-strings</p><p> --help</p><p> --init-file</p><p> --login</p><p> --noediting</p><p> --noprofile</p><p> --norc</p><p> --posix</p><p> --protected</p><p> --rcfile</p><p> --restricted</p><p> --verbose</p><p> --version</p><p> --wordexp</p><p>Shell options:</p><p> -irsD or -c command or -O shopt_option (invocation only)</p><p> -abefhkmnptuvxBCHP or -o option</p><p>sh-3.2# </p><p></p><p>[/code]</p><p></p><p>any ideas ?Thanks</p></blockquote><p></p>
[QUOTE="txn, post: 539944, member: 33330"] 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# [/code] any ideas ?Thanks [/QUOTE]
Verification
Post reply
Forums
Apple Computing Products:
macOS - Operating System
This command doesn't work in terminal of Leopard Server
Top