I have a shell script which opens sqlplus and select some data from db containing chinese characters. When I execute it manually, the output contains those characters. When I do it via cron or jenkins job, it displays question marks instead of chinese characters. Any advice ?
1 Answer
It was enviroment variable issue. I just added . $HOME/.bash_profile beofre main script execution in crontab.
00 10 * * * . $HOME/.bash_profile; /home/scripts/script.sh
man 5 crontab
?