cant get a shell script to run

micromacro

2002-05-05 18:04:00

im trying to get a shell script (ssh-brute.sh) to run. ive tried everything. chmod 777, chmod +x and cping it to the /bin but nothing is working im doing all of these in root termnial using pseudo. [img]images/icons/confused.gif"%20border="0[/img]

orange1

2002-05-08 12:47:00

ummm
if you you've got a root terminal, you don't need sudo.

what's the command you're using to run the script?

micromacro

2002-05-08 17:21:00

what i mean is, that i drop the terminal program into psudo the program for osx. ive been ./'n it and just trying the command ssh-brute

orange1

2002-05-09 18:43:00

well, most of what you said didn't make any sense whatsoever. maybe try some punctuation, and this:
sh <script>

or, if it's a tcsh script:
tcsh <script>

consequently, if it's a bash script:
bash <script>

and again, it's "sudo", not "psudo" or "pseudo". two of those will give you a command not found error.

matthewg42

2002-05-19 11:41:00

Please post a little more info:

your shell (echo $SHELL)
your PATH
the output of head -1 [scriptname]

I had one thought:

If the script starts with a
#!...
line that doesn't point towards an executable shell on your system, you'll get a message like one of these, depending on your shell (my test script is called "test", executed using
./test)

in ksh:
ksh: ./test: No such file or directory

in bash:
bash: ./test: bad interpreter: No such file or directory

in tcsh:
./test: Command not found.

in zsh:
zsh: no such file or directory: ./test

Good luck.

Anonymous

2002-07-16 01:16:00

Hmm. It seems ssh-brute is an Expect script that uses a dictionary to apply a brute force attack on an ssh server. While it does have legit uses, I somehow doubt our friend is a sysadmin trying to test the security of his network . . .

Nice try, Micromacro.