unmerge 565483 567472
severity 567472 normal
retitle 567472 document that *-connection scripts should contain the path to an 
external script
thanks

Hello Ritesh,
ok, this seems a different "bug", un-merging.

On Friday 26 February 2010 17:04:49, Ritesh Raj Sarraf wrote:
> There seems to be problem with scripts that are executed from within wicd.
> 
> This is what I am getting:
> 
> 2010/02/26 21:29:16 :: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67
> interval 5
> 2010/02/26 21:29:17 :: DHCPOFFER from 192.168.2.1
> 2010/02/26 21:29:17 :: DHCPREQUEST on wlan0 to 255.255.255.255 port 67
> 2010/02/26 21:29:17 :: DHCPACK from 192.168.2.1
> 2010/02/26 21:29:18 :: bound to 192.168.2.102 -- renewal in 37222 seconds.
> 2010/02/26 21:29:18 :: DHCP connection successful
> 2010/02/26 21:29:18 :: not verifying
> 2010/02/26 21:29:18 :: Executing post-connection script
> 2010/02/26 21:29:18 :: Expanded '/usr/bin/sudo /usr/sbin/vpnc-connect' to
> '/usr/bin/sudo /usr/sbin/vpnc-connect'
> 2010/02/26 21:29:18 :: Executing '/usr/bin/sudo /usr/sbin/vpnc-connect'
>  with params
> 2010/02/26 21:29:18 :: '/usr/bin/sudo /usr/sbin/vpnc-connect' returned 127
> 2010/02/26 21:29:18 :: Connecting thread exiting.
> 2010/02/26 21:29:18 :: ifconfig wlan0
> 2010/02/26 21:29:18 :: IP Address is: 192.168.2.102
> 2010/02/26 21:29:18 :: Sending connection attempt result Success
> 2010/02/26 21:29:18 :: ifconfig eth0
> 2010/02/26 21:29:18 :: iwconfig wlan0
> 
> 
> As you can see, the error code returned is 127 which as per exit's manpage
>  is:
> 
>         127   A utility to be executed was not found.

Yes. And $PATH isn't involved here :)
I'm curious to know how this worked in 1.6.2.*, since that particular piece of
code didn't change -- or maybe I just remember wrong.

You should be able to fix this problem by putting a full path to a script --
those fields are not meant to contain any "command", just something like
/home/ritesh/my-wicd-preconnect.sh (it could also be something different from
Bash, if you wish -- it's run by python's subprocess.Popen()).

If this fixes the problem for you, I'll proceed in fixing the manpage about
it.

Thank you,
David

-- 
 . ''`.   Debian developer | http://wiki.debian.org/DavidPaleino
 : :'  : Linuxer #334216 --|-- http://www.hanskalabs.net/
 `. `'`  GPG: 1392B174 ----|----
   `-   2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to