Jump to content

Error Running Wp3.sh


Recommended Posts

I am running on Ubuntu 11.10 and when I try and run the wp3.sh I get "[[: not found" after each line if I enter a value or not.

I do not see this behavior under BT but due to hardware incompatibilities(or my stupidity) I am having difficulties with that distro at the moment.

lostngone@lostngone-MacBookPro:~$ sudo ./wp3.sh

Input Pineapple Netmask [or ENTER for 255.255.255.0]:

./wp3.sh: 8: [[: not found

Input Pineapple Network [or ENTER for 172.16.42.0/24]:

./wp3.sh: 14: [[: not found

Input Interface between PC and Pineapple [or ENTER for eth0]:

./wp3.sh: 20: [[: not found

Any ideas?

Link to comment
Share on other sites

Okay a colleague at the office figured this one out...

Ubuntu links /bin/sh to dash not bash. I did do "ps -p $$" and "echo $0" and they both reported bash so I thought I was good. After I fixed that I did not get that error.

im having the same issue, can you elaborate on this for me ? how exactly did you fix this error in the script ?

nevermind.. fixed it

Edited by allisonmagic
Link to comment
Share on other sites

all i did was mv /bin/sh to /home/ , ran wp3, then moved the /home/sh back to /bin

but removing all the #!/bin/sh and whatever commented line out of there does the trick too. just use strait commands and dont tell it to pick a shell

I was about to say, you should NEVER move that file. Ever.

Changing that upper part of the script will do just fine..

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...