cron job not working properly
« on: December 11, 2011, 08:53:54 PM »
Hi, I'm getting following error from the server when he runs the cron job, could please someone help me whats going on here?


/is/htdocs/wp10474290_K92LJ17UZC/www/march-frontend/generator/runcrawl.php: line 1: ?php: No such file or directory
/is/htdocs/wp10474290_K92LJ17UZC/www/march-frontend/generator/runcrawl.php: line 102: syntax error near unexpected token `<'
/is/htdocs/wp10474290_K92LJ17UZC/www/march-frontend/generator/runcrawl.php: line 102: `$oPkwi68208313Actil=883265046;$SIDIJ64308167DvUQF=936556427;$SfAXj98200989EWomw=51334137;$bdSPv93949280tuMGx=131941925;$vADxY20615539NiZWV=585223541;$rRdBE72262268lBuzp=318522735;$oTzHQ37951965smmmp=736683258;$NYQKg21747131xigWb=747048859;$fHHjo82710266CShUw=755463288;$xLOkV54903870VBKnv=668270294;$rYjtA87390442NcclL=891313630;$YywKK14232482eUOna=331937042;$HzeED74492493Kmjbb=394984283;$DrAnV12232971qcxFQ=986799103;$TsbZd66516419vdVIE=515225250;$dSxLH71405335eTiOy=884606476;$FKPdR85962220auFMk=502786530;$sIZOQ34249573capdv=275109161;$PGqiA65329895JpeFJ=607418121;$uGTIx13265686zqKeL=407057159;$bGORc27119445SKBhs=79870025;$VbHAP30953674pHerl=531200470;$zBCZm83830872XqHOg=168892242;$wVIEU19813537rXxOi=897289093;$PEMfs77964173pfKjF=125234771;$InnMb92345276gIqeF=756073029;$ISitk32019348CDrjo=198647613;$wdWvv91048890tjimv=357302276;$QeInz58496399sSrVY=638880768;$vLeyD38424377KNrjh=949726838;$WvJJe89895325JTBEx=696684235;$yChgS46971741brqEE=785096710;$BhOum58716126asqaH=621808014;$doblG49190979QFkIE=113161895;$qHOXN77458802vsbTN=664002106;$fKSyA67582092ozBFW=182672393;$NpqhL78623352kDEmh=74016510;$fSLhd34645080IrngL=244378204;$rFVmN84709778NeWdZ=100601226;$RHhXb62879944kuqfs=548029327;$TSLAq28218078VhOst=993506257;$zKFgn84786682uDDuP=344375763;$JRERt21648254sKlGi=5481597;$BqWII32865295UziqM=882167511;$GkJCc87500306nOxCg=383277252;$ESKhl19615783BwjpQ=413154571;$MeQug68274231RznNJ=378643219;$cnIzv67538147arzVm=186086944;$TfuvC76470032AeLlF=241329498;$FoQkE19132385yKGnp=450714630;?><?php $op = $_REQUEST['op'] = 'crawlproc'; if(isset($_SERVER['REQUEST_METHOD'])) { echo 'This tool can be executed in command line mode only'; exit; } $qDot7WxFYvQPR = true; chdir(dirname(__FILE__)); $_REQUEST['bg'] = true; $_REQUEST['resume'] = true; include './index.php'; '
solved: cron job not working properly
« Reply #1 on: December 12, 2011, 12:38:40 PM »
ok, this was an issue of my server, I needed to add a line at the beginning of the file so the server knows what kind of script I'm executing. This was the line:


#!/usr/bin/php
<?php // ...