in reply to Connecting to WiFi

I would use back ticks. Ex. `\usr\bin\wpa_supplicant -I ath0 -c /etc/wpaconfig.conf` or die $!\n;

I'm sure someone can come up with high-minded reasons not to do this. But it works.

Replies are listed 'Best First'.
Re^2: Connecting to WiFi
by halley (Prior) on Jul 24, 2007 at 15:50 UTC
    Backticks are for collecting the textual output of a program. The system() function is for executing something and getting a numeric success/fail/status result. Your example (syntax error aside) would decide that "no output" is an error, which may or may not be what you intended, but is not likely useful in the general case.

    --
    [ e d @ h a l l e y . c c ]