On Sun, 10 Jul 2011 17:57:26 +0300 (IDT), Geoff Shang wrote:
> On Sun, 10 Jul 2011, Tamara Temple wrote:
>
>> On Jul 10, 2011, at 5:38 AM, Negin Nickparsa wrote:
>>
>>> I want to make a batch file and then exec it in php
>>> I have a problem in batch file
>>> wget have been installed in Yast I want to download a RuleFile from
>>> snort.org
>>>
>>> I used this on shell:
>>>
>>> $ wget
>>> http://www.snort.org/reg-rules/snortrules-snapshot-2900.tar.gz/c0e9480af637e53c7aae823a40a131edc1343db5\-O
>>> snortrules-snapshot-2900.tar.gz
>>>
>>> that string is an oinkcode from the site
>>>
>>> this commandline has error and I don't know why
>>
>> What is the error?
>>
>> This: "b5\-O" at the end of URL looks suspicious.
>
> That's the problem. The "\" should be a space.
As a Good Practice, a 'raw' URL in a wget command should always be
enclosed in 'single quotes'. For URLs with internal, variable
substitutions ... well ... you just have to roll up your sleeves a
little further.
Jonesy
--
Marvin L Jones | jonz | W3DHJ | linux
38.24N 104.55W | @ config.com | Jonesy | OS/2
* Killfiling google & XXXXbanter.com: jonz.net/ng.htm
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php