From 1915e0f1d2b2d435c5f88c703b43ef7a1a3af4be Mon Sep 17 00:00:00 2001 From: mikec Date: Wed, 16 Apr 2008 19:14:39 +0000 Subject: [PATCH] Added check to see if they have wget installed git-svn-id: svn://192.168.202.10@837 3d104415-ff17-0410-8863-d5cf3c621b8a --- agc_2-X/trunk/bin/ADMIN_area_code_populate.pl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/agc_2-X/trunk/bin/ADMIN_area_code_populate.pl b/agc_2-X/trunk/bin/ADMIN_area_code_populate.pl index 7cd49567..3a260834 100644 --- a/agc_2-X/trunk/bin/ADMIN_area_code_populate.pl +++ b/agc_2-X/trunk/bin/ADMIN_area_code_populate.pl @@ -73,6 +73,13 @@ $slash_star = '\*'; #### download the latest phone code table #### chdir("$PATHhome"); +$wget = `which wget`; +print "$wget\n"; +if ( $wget eq "" ) { + print STDERR "Please install the wget command\n"; + exit(); +} + print STDERR "Downloading latest phone codes tables\n"; `wget $URL1`;