System()?

Thread Solved

Join Date: Jan 2009
Posts: 106
Reputation: jen140 is an unknown quantity at this point 
Solved Threads: 5
jen140 jen140 is offline Offline
Junior Poster

System()?

 
-1
  #1
Sep 27th, 2009
Hello all.
I was trying to execute wget from the perl under windows vista.
In cmd i can easily run wget because its in \windows\system32 folder. But from perl,when i try both
system('wget --h');
and
system('c:\windows\system32\wget --h');
i get the next error :
'wget' is not recognized as an internal or external command, operable program or batch file.
And it works when wget is in the same folder of the script, any way to put it using the \windows\system32's wget?
Thanks in advance.
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 57
Reputation: mitchems is an unknown quantity at this point 
Solved Threads: 2
mitchems's Avatar
mitchems mitchems is offline Offline
Junior Poster in Training
 
0
  #2
Oct 6th, 2009
Try
  1. system("c:\\windows\\win32\\wget");
And don't tell me there isn't one bit of difference between null and space, because that's exactly how much difference there is.

Larry Wall
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 106
Reputation: jen140 is an unknown quantity at this point 
Solved Threads: 5
jen140 jen140 is offline Offline
Junior Poster
 
0
  #3
Oct 7th, 2009
Forgot about that part, thanks for the help =)
Reply With Quote Quick reply to this message  
Reply

Tags
perlsystemwindows

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Perl Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC