View Single Post
Old 26th August 2008, 17:29
dimas dimas is offline
Senior Member
Join Date: Jul 2006
Posts: 125
Thanks: 7
Thanked 27 Times in 8 Posts

Well, I've solved this problem myself, but another one's cropped up. I'll start with the solution to the first one.

I used

strace iconv -f windows-1251 -t utf-8

as root to check what system calls iconv makes and so discovered that iconv makes use of files in /usr/lib/gconv/

After this it was a simple matter to add

mkdir /usr/lib/gconv


cp /usr/lib/gconv/* usr/lib/gconv

to ""

- so now iconv works in the chrooted environment.

However, there is another problem. I'm using a shell script to download an xml file from another server (the file contains currency exchange rates) and later use it in my flash site (I'm importing this xml file into flash by using XMLConnector, but that's a little beside the point).

I'm using a shell script named (by me), it goes like this:


wget -q http://www.(anotherserver).com/XML_daily.xml -O XML_daily.xml
iconv -f windows-1251 -t utf-8 -o /web/kurs.xml XML_daily.xml

I'm using iconv because the original xml file is in windows-1251, and I need utf-8 for flash.

Now the problem. If I just type


from inside the user's shell prompt, the script works as intended.

However, if I make a cron job (by putting "./" in the "Command:" line from inside ISPConfig), any file downloaded with wget just can't be moved to /web - and I need it there, otherwise I won't be able to access it from flash.

wget itself can't download to /web and even mv doesn't work from cron.

please kindly advise why this is happening...
Reply With Quote