Guest
Hello All,
Once again, i need your help.
I wrote a skill program that runs Calibre in background with a GUI.
Thanks to your advices, Calibre does not freeze dfII during the run.
To run Calibre, i need first to source a setup file.
The code i used was almost this one:
com = strcat("source " Myfile)
csh(com)
com = strcat("calibre ... ")
CCSipcBeginProcessWithUserData(
Com ;; run calibre
"" ;; hostname
'DataHandler
'DataHandler
'ExitProc
CvList
)
where CCSipcBeginProcessWithUserData is a function written by andrew
and found on sourcelink.
Sometimes, this code works very fine. and sometimes, i get the error
message:
sh : calibre : not found
I think i need to run my 'source...' and my 'calibre ...' on one
stroke, like
com = strcat(" ' csh -c source" Myfile " ; calibre ...' " )
CCSipcBeginProcessWithUserData(
Com
...
)
but in this case, the error message i get is:
sh: csh -c source ... : not found
so , do you have an idea on how to merge my 2 commands to be executed
in one stroke by CCSipcBeginProcessWithUserData() function ??
Thanks a lot for your help.
Regards,
b.
Once again, i need your help.
I wrote a skill program that runs Calibre in background with a GUI.
Thanks to your advices, Calibre does not freeze dfII during the run.
To run Calibre, i need first to source a setup file.
The code i used was almost this one:
com = strcat("source " Myfile)
csh(com)
com = strcat("calibre ... ")
CCSipcBeginProcessWithUserData(
Com ;; run calibre
"" ;; hostname
'DataHandler
'DataHandler
'ExitProc
CvList
)
where CCSipcBeginProcessWithUserData is a function written by andrew
and found on sourcelink.
Sometimes, this code works very fine. and sometimes, i get the error
message:
sh : calibre : not found
I think i need to run my 'source...' and my 'calibre ...' on one
stroke, like
com = strcat(" ' csh -c source" Myfile " ; calibre ...' " )
CCSipcBeginProcessWithUserData(
Com
...
)
but in this case, the error message i get is:
sh: csh -c source ... : not found
so , do you have an idea on how to merge my 2 commands to be executed
in one stroke by CCSipcBeginProcessWithUserData() function ??
Thanks a lot for your help.
Regards,
b.