On Tue, 2006-03-21 at 01:42 +0100, Gerrit Jasper wrote: > Gentlemen/ladies,
I'm not sure that I completely understand the 'curl part is skipped' part of your description, but ... Have you checked the environment that OOo executes the script in? I see that the soffice script modifies and exports LD_LIBRARY_PATH and PATH by adding locations to the head of the list, so a conflicting library and utility name may change behaviour somehow. I would check the environment of your working and non-working shells using 'ps' with the 'e' flag, or look in the /proc filesystem. (Put a long 'sleep' call in your script to make it wait while you check). If it is the environment, you could perhaps ensure that your script is not dependent on the inherited environment. Hope that helps. > 1. After reading reassurances on the lists (dev, api-dev) that > previously written code can be run > on OOo 2.0 without a problem, I switched from 1.1.4 (I think it was) to > 2.0.1 some weeks ago, > and then to 2.0.2. Indeed my Basic macros run happily, I can use the > mouse to select points > in charts where I want trend lines, have them do calculations on that, > etc. Happily, until they > (the macros) need to use the 'shell' command or call one of my dialogs > (separate e-mail). > > 2. Some years ago I made a bunch of bash scripts to collect data from > the internet, have them > convert html2text, select data I want as plain text, and trigger my OOo > spreadsheet to "come and > get it". That worked fine with pre-2.0 OOo. Not any more. > > 3. The bash script removes an existing file and then issues a 'curl' > command to get a webpage > (http://curl.haxx.se; it came with SuSE 10.0), checks progress and > finally calls the spreadsheet. > With OOo 2.0.2 the command 'shell( "/usr/gerrit/nt_web/crl_opt_dB" )' > does get to the bash script, > because the existing file will be removed, /but the 'curl' part is > skipped or doesn't work/, the progress > check times out and the script quits. > > 4. When I run this same script from the KDE browser or from the > console it works perfectly, calls > the spreadsheet and that imports the plain text data all right. That is > why I think there is something > wrong with the 'shell' command, but I have no idea what. Is this a bug > or did I miss something? > I checked the Basic Help and I have been tinkering with commas, bSync > true and false. Default > is false, so 'shell' should let go immediately after issuing the command. > > Does anybody have any idea? > > Sincerely, > > Gerrit Jasper > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]