| | |
System()?
Thread Solved |
•
•
Join Date: Jan 2009
Posts: 106
Reputation:
Solved Threads: 5
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.
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.
0
#2 Oct 6th, 2009
Try
Perl Syntax (Toggle Plain Text)
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
Larry Wall
![]() |
Similar Threads
- Operating System Not Found (Troubleshooting Dead Machines)
- Wanted: System/Network administrator. all levels (Tech / IT Consultant Job Offers)
- Exciting Senior Windows System Administrator (Tech / IT Consultant Job Offers)
- News Story: Crystal Ball Sunday #4: Linux and System Builders and Integrators (Getting Started and Choosing a Distro)
- Error Loading operating System (Windows NT / 2000 / XP)
- News Story: Google's operating system (Search Engine Optimization)
- system registry missing, Missing system.ini (Windows NT / 2000 / XP)
Other Threads in the Perl Forum
- Previous Thread: How to copy a directory?
- Next Thread: To control the windows services on the remote machine
| Thread Tools | Search this Thread |






