bedoune@[EMAIL PROTECTED]
wrote, on 06/16/08 06:20:
> Hello :)
>
> I restart to fight with my program ^^
>
> the solution proposed by Andrew works fine (arigatou Andrew-san!)
> but it does not work for all unix command ?
>
> I mean, before running my command "Calibre ..." i need to run a setup
> script, by sourcing it. if i don't source it, calibre doesn't run.
>
> so my full command is : "source Myfile ; Calibre ..."
>
> I realized that ipcBeginProcess runs command like "sh" command. I can
> not source any file with ipcBeginProcess nor sh.
>
> That's why, initially, i used the command "csh()" to execute my batch
> of commands (but freezes dfII during execution).
>
> So i tried things like :
>
> Com = "csh | source myfile && calibre ..."
> ipcBeginProcess(Com ...)
>
> or
>
> Com = "csh ; source myfile ; calibre ..."
> ipcBeginProcess(Com ...)
>
>
> do you have an idea on how to source my file, run calibre and using
> ipc at the same time ??
>
> thanks a lot for your help.
>
> regards,
>
> b.
Use
Com="csh -c 'source myfile ; calibre ...'"
Andrew.


|