Re: spawn question [message #60600 is a reply to message #60590] |
Sun, 01 June 2008 15:41   |
Vince Hradil
Messages: 574 Registered: December 1999
|
Senior Member |
|
|
On Jun 1, 2:25 pm, russ <rlaybe...@hotmail.com> wrote:
> On 1 Jun, 19:33, Vince Hradil <hrad...@yahoo.com> wrote:
>
>> On Jun 1, 1:09 pm, russ <rlaybe...@hotmail.com> wrote:
>
>>> On 31 May, 17:21, Vince Hradil <hrad...@yahoo.com> wrote:
>
>>>> On May 31, 5:20 am, russ <rlaybe...@hotmail.com> wrote:
>
>>>> > this may be a tupid question and it might be that i am an idiot,
>>>> > but...
>
>>>> > i want to spawn a process
>
>>>> > cmd='ls -l'
>>>> > spawn,cmd
>
>>>> > i am actually doing this with a GET command and it sometimes hangs
>
>>>> > if i try
>
>>>> > spawn,cmd,/nowait
>
>>>> > it tells me
>
>>>> > Keyword NOWAIT not allowed in call to: SPAWN
>
>>>> > but it says it is in the help?
>
>>>> > any ideas?
>
>>>> > thanks
>
>>>> > russ
>
>>>> Your using the GET command? So what exactly are you spawning?- Hide quoted text -
>
>>>> - Show quoted text -
>
>>> I'm spawning
>
>>> cmd='GEThttp://www.etc> outfile.txt'
>>> spawn,cmd
>
>>> to get a webpage into a filer which then i can read
>
>> Now I'm confused - and I'm no expert on this, but don't you have to
>> have some kind of http connection to run a "GET" command? The OS
>> won't know what to do with "GET" (unless you have some program called
>> GET that opens a connection and executes a GET).- Hide quoted text -
>
> sorry if i'm not being clear. the GET command gets the contents of a
> website and the > operator puts it in a file which i subsequently
> read.
>
> sometimes the GET command hangs. there is a timeout option on GET
> which I can't make work.
>
> i think i will just ask if the file has been created and if it hasnt
> after sometime, kill the GET command and do another one with a
> different http site
>
> russ
Yes, but GET is not an OS command. You need to have a stream from
which to GET the data? Maybe I'm wrong, like I said, I don't really
understand the whole thing. But if I type "GET http://www.yahoo.com"
at the command prompt, my OS says - "unknown command: GET" or
something like that.
|
|
|