On Sun, Feb 07, 2010 at 04:42:35PM +0100, Henrik Sarvell wrote:
> sh -c ./p projects/rss-reader/word_index.l - 1 -go -wait >> index.log 2>&1 &
> in the bash window.
> So therefore it shouldn't be a problem doing the same with (call) I think?

I think so too.

For a simple test, I tried

: (call "sh" "-c" "./p -'prinl 123' -'wait 20000' -bye >>x.log 2>&1 &")

and it works as expected, running 20 seconds in the background and
writing '123' to "x.log".


How does "word_index.l" handle the arguments following the single '-'?

   .../word_index.l - 1 -go -wait ...

A single dash inhibits the evaluation of further arguments, so
"word_index.l" must be doing something like (opt) to retrieve the '1'.
But then the following commands ('go' and 'wait') will never be
executed. What I don't understand then is why it works when called from
the shell.

Cheers,
- Alex
-- 
UNSUBSCRIBE: mailto:picol...@software-lab.de?subject=unsubscribe

Reply via email to