Im getting an error when running a script
: bad interpreter: No such file or directory
That's when I use the command im supposed to.

I tried using sh and the script...

[EMAIL PROTECTED] nessus-php]# sh nsr
: command not found
: command not found
'sr: line 30: syntax error near unexpected token `do
'sr: line 30: `for x in "$@"; do

Bad error, I alter the script and put the first do command on the same line as the do and I get

[EMAIL PROTECTED] nessus-php]# sh nsr
: command not found
: command not found
nsr: line 49: syntax error near unexpected token `)'
'sr: line 49: `) | php -q -f nsr-php

GRRRRRRRRR

Heres the script...Ive tried all the usual mailing lists and help areas and cant find shit....GRRRRRR

#!/bin/bash
#
#########################################################################
#                                                                       #
#                       The Nessus PHP Interface                        #
#                                                                       #
# Copyright 2002, Kristofer T. Karas                                    #
#                                                                       #
# This file is part of the Nessus PHP Interface                         #
#                                                                       #
# The Nessus PHP Interface is free software; you can redistribute it    #
# and/or modify it under the terms of the GNU General Public License    #
# as published by the Free Software Foundation; either version 2 of     #
# the License, or (at your option) any later version.                   #
#                                                                       #
# The Nessus PHP Interface is distributed in the hope that it will be   #
# useful, but WITHOUT ANY WARRANTY; without even the implied warranty   #
# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the      #
# GNU General Public License for more details.                          #
#                                                                       #
# You should have received a copy of the GNU General Public License     #
# along with Foobar; if not, write to the Free Software Foundation,     #
# Inc., 59 Temple Place, Suite 330, Boston, MA   02111-1307  USA        #
#                                                                       #
#########################################################################

# Script to add a .NSR or .NBE to the Nessus database.
# Most of the work is done by the nsr-php script.

for x in "$@"; do x="`echo "$x" | sed -e 's/^.*\.\([^.]\+\)$/\1/'`"
 if [ "$x" != "nsr" -a "$x" != "nbe" ]; then
   echo "Usage:        $0 file.{nsr|nbe} [ file.{nsr|nbe} ... ]" >&2
   exit 1
 fi
done

if [ -z "$1" ]; then
 echo "Usage:  $0 file.{nsr|nbe} [ file.{nsr|nbe} ... ]" >&2
 exit 1
fi

( for x in "$@"; do echo "$x"; done
 find /usr/local/lib/nessus/plugins -name '*.nasl' -print
 # Add static script entries, then recompute latest.
 cat <<EOF
-n
-l
EOF
) | php -q -f nsr-php

_________________________________________________________________
Hotmail is now available on Australian mobile phones. Go to http://ninemsn.com.au/mobilecentral/signup.asp



-- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to