java & php

Finally got this fixed. Ended up not needing to use a php, all i had to do was
cd /home/account/public_html/admin/files/ && java Autoingestion arguments

So if anyone is having the same issue, instead of trying to change the folder in the script, just change it in the command line, save yourself the migrane it’ll cause when all it’ll say is that it can’t find the class.

Do you know how the && differs from what I posted before?

cd /home/venzo/public_html/admin/files; java Autoingestion <parameters>

I wonder if it’s a server specific (OS) problem. What OS does your server use?

Simple Google search answered my question :slight_smile:

&& will execute only if the first command is true. So that must mean that the cd /path command failed. Did you change the path to “account” instead of “venzo”?

Just glad you got it working. There’s nothing more satisfying than solving problems yourself :smiley:

CentOS i think. What you had was for php - neither worked btw. What i just posted is what was entered in the command line to setup the cron job. Its the same concept as what we were trying to do, just not done through php.

No, account is just a generic term. I took out the real folder name for security purposes, but the number of folders is right.

Sponsor our Newsletter | Privacy Policy | Terms of Service