Обсуждение: JDBC connection by crontab

Поиск
Список
Период
Сортировка

JDBC connection by crontab

От
"NSB)Hiroshi Kasamatsu"
Дата:
I am sorry that this is a specific problem because of its language.

I am testing periodic insertion into PostgreSQL table by cron.

First of all,I wrote kasa.sh.

PATH=$PATH:/usr/local/jdk1.3/bin:/usr/local/pgsql/bin
CLASSPAHT=.:/usr/local/lib/postgresql.jar:/home/postgres
export PATH CLASSPATH
/usr/local/jdk1.3/bin/java crontest

,where crontest is a java application.

Next,I edited cron using crontab -e.

0 4 * * * /bin/sh kasa.sh

The result was good except for insertion of japanese language.

Please tell me how japanese can be inserted into text column.

Thanks in advance.

Hiroshi Kasamatsu