Maybe your Expect library is not called correctly at the beginning of your script. You can make sure it is where you're calling it from, in this case /usr/bin/expect, by typing "which expect".
For your second method, you should be running it as ./ss...