I’m trying to run a c++ program on my server, which, for now, is updating a MySQL database. I’m running it with Cron. The program is compiling and running on my own computer (Ubuntu 10.10), but I can seem to get something working on my server.
I checked if cron is working for me with a PHP script, but I don’t know what to do to run a c++ program. In directAdmin I’m using the command:
/home/rogier/domains/ditiseenwinkel.nl/public_html/test/program &>/home/rogier/domains/ditiseenwinkel.nl/public_html/test/testsql2.log
Where program is my compiled program. Strange thing: the logfile is empty.
What am I doing wrong? And how should I run a c++ program via Cron?
Thanks in advance!
Was the program compiled on the same server? If not – you should compile the sourcecode on the same server.