> printf "%s %s\n", strftime("%Y-%m-%d %H:%M:%S", localtime(time)), $item
>
> (untested, and I am not a regular Perl programmer, its but File::Tail is the
> best library I know of to do this sort of thing)
>
Ah if I am going to do that I suppose something like this would work.
#!/bin/sh
while read data; do
echo "`date +%H:%M:%S` : $data" >> logfile.log
done
--
Sent via pgsql-general mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general