Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Mik Hobbs — — source: Informix-list mailing list archive (1991-1998)
For SPL to run a SYSTEM command it must 'shell-out'. This will be done
using fork() & exec() which will copy your database process / thread and
then copy ksh over the top of it before executing the 'echo' command.
This is very expensive.
How about storing the 'text' in a working database table and viewing it
with a form ? Storing the field as varchar will keep the disk usage to a
minimum. An overnight SQL script could be used to delete / archive the
data if this is a long term requirement.
Mike.
In article <01bbdc4f$082fd460$7e8a989e@gcp-client>, George C Parobek
<george@icc-gcp.demon.co.uk> writes
>I am using SP for Client Server application.
>In order to monitor and check the update procedures I need to log the
>progress in a unix text file. e.g.:
>
> SYSTEM "echo "||text||" >> log_file";
>
>This command takes too long top process, cca. 1sec !!!!!!
>
>Is there a better way of achieving the same goal.
>
>Please HELP
--
Mik Hobbs
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.