Christian Rößler schrieb: Hallo everyone - answering my own posts, as usual:).
For the record, as other have similar problems, perhaps: > I have thrown this DDE stuff overboard and wrapped the things I need > into a shell command, which writes a temporary file, which I then scoop > up with an OpenOffice macro. > Now, it would be more... elegant if I just could grab the stdout of that > shell script. For asking purpose let's use the 'date' command. > shell "bash -c 'date > /home/chr/date_ausgabe.txt'" > ...will write that temporary file I talked of. How can I write the > output of 'date' immediately into a string variable? - it is not possible to directly read stout of another program directly from a script. - One solution would be the usage of temporary files, and using (in a while loop eg.) FileExists to test, whether the file is written. - Another possibility would be to call openoffice from a script and using a global variable: | #!/bin/bash | soffice "macro:///Standard.Module41.de26422( `some linux command` )" More about this way here: <http://www.oooforum.org/forum/viewtopic.phtml?t=87423> <http://de.openoffice.info/viewtopic.php?f=18&t=26422> Best regards, Christian --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
