I'm trying to run a cron job on my web server. I used the cron module at the cPanel to add the file and used this command..
The problem was that it takes the root folder context for all the followed processes i.e. I call run.sh from cron job which has the following code
./public_html/test/test.exe -h -s > ./public_html/test/output.txt
The code apparently doesn't work as ./test calls a few files within that folder. I originally used
./test -h -s > output.txt
as the code inside run.sh because I wanted it to work in that directory context. It would be nice if someone told me how I can get this done. I have to use cron jobs because my web host disabled exec(),passthru() and other such commands in PHP to get my exe running! The problem I right now have is that ./test calls some files in that folder but due to context it doesn't work. Plus ./test source code isn't with me so that's a bummer! :(