Cannot connect to router

view story

I'm having trouble connecting to my friends router heres some info. The router is a netgear rangemax WPN824v3This is the script i am using.  I know the password is correct (fyi its not password just didn't want to post actual password =o).#!/bin/bash rm /var/run/dhcpcd-wlan0.pid ifconfig wlan0 up iwconfig wlan0 essid NETGEAR key password ifconfig wlan0 down ifconfig wlan0 up dhcpcd wlan0Heres what happens when i try to connect.rm: cannot remove `/var/run/dhcpcd-wlan0.pid': No such file or directory dhcpcd[5717]: version 5.2.12 starting dhcpcd[5717]: wlan0: waiting for carri ()