It doesn't start at all, that's the problem, sorry for not being clearer.

word_index.l is completely standalone, it will work properly when I do

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 just tried:

(call "sh" "-c" "./p projects/rss-reader/word_index.l - 1 -go")

Which works but without the -wait part it terminates when the spawning
script terminates.

I hope this made the situation clearer for you because it didn't make
it clearer for me :)

On Sun, Feb 7, 2010 at 4:24 PM, Alexander Burger <> wrote:
> On Sat, Feb 06, 2010 at 09:42:58PM +0100, Henrik Sarvell wrote:
>> This is weird (for me). When I do sh -c ./p
>> projects/rss-reader/word_index.l - 1 -go -wait >> index.log 2>&1 & in
>> a shell the server starts but when I do (call "sh" "-c" "./p
>> projects/rss-reader/word_index.l - 1 -go -wait >> index.log 2>&1 &")
>> it doesn't.
>> I must be missing something fundamental?
> The 'call' to 'sh' looks perfectly OK. There must be some other problem.
> Is it possible that "word_index.l" depend on some environment not
> available from within the call? What exactly doesn't work?
> Cheers,
> - Alex
> --

Reply via email to