cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
686
Views
0
Helpful
1
Replies

CIFS Directory Script

james.robinson
Level 1
Level 1

When I run this script:

#!/bin/sh

if [ `echo $1 | grep "\.\."` ]; then

            echo "Elipses (..) not allowed in path."

            exit 1

            fi

if [ -d /disk??-??/data/cifs ]; then

            cifsdir=`ls -d /disk??-??/data/cifs`

elif [ -d /obj?/data/cifs ]; then

            cifsdir=`ls -d /obj?/data/cifs`

else

            echo "No CIFS cache found."

            exit 1

fi

echo Directory: $cifsdir/$1

ls -al $cifsdir/$1

*****************************************************************************************************************************

I get this error:

script execute cifsdirsh.sh

Error: cifsdirsh.sh has a bogus checksum character 'l' (offset 1 from start of l

ast line)

** File cifsdirsh.sh is corrupt or is not a script file **

----------------------------------------------------------------------------------------------------------------------------------------------------------------

Can anyone please help find the error?

1 Reply 1

ahskhan
Cisco Employee
Cisco Employee

Hi,

This normally means that script is corrupt or may have been

modified. You either needs a new copy of this script signed by Cisco

(unmodified) to use or try to copy the same script again to WAE using binary

FTP mode. Most commonly this can happen if the script was open in notepad in

windows. If you do have original zip file, please unzip and do not open on

windows machine. If this do not help then you may need to contact TAC to get

the new copy of the script. Thanks.

Ahsan