ebw Posted February 18, 2008 Report Share Posted February 18, 2008 mēģinu te iebraukt tai cron padarīšanā - ne visai sanāk, ja godīgi. manam hosterim stāv ISP manager. kad es taisu cron tasku lai izpilda piem. /home/www/mansdomens.lv/_cron/mansskripts.php tad rezultātā viņš parāda kā komandu: /home/www/mansdomens.lv/_cron/mansskripts.php >/dev/null 2>&1 reāli sanāk ka hosting kantoris ir piegriezis to cron iespēju? tnx! Link to comment Share on other sites More sharing options...
Aleksejs Posted February 18, 2008 Report Share Posted February 18, 2008 Nē, tas to nenozīmē. Tas nozīmē, ka cron izpildīs (??? man jau liekās, ka jāizsauc php padodot kā parametru Tavu skriptu, nevis tā kā raksti) Tavu skriptu un visu stdout sūtīs uz /dev/null, turpat sūtīs arī stderr Link to comment Share on other sites More sharing options...
Vebers Posted February 18, 2008 Report Share Posted February 18, 2008 Izpildīs tavu skriptu, tikai kā jau Aleksejs teica viss outputs tiks sūtīts uz /dev/null (melno caurumu :) ) Tikai shada veida izpildod neaizmirsti pielikt klat php skripta augsha #!/usr/local/bin/php vai arī kur tev php (interpretators) atrodas. Link to comment Share on other sites More sharing options...
ebw Posted February 18, 2008 Author Report Share Posted February 18, 2008 nu es piem. mēģināju arī kā: /usr/local/bin/php -q /home/www/domens.lv/_cron/skripts.php >/dev/null 2>&1 visādus variantus mēģināju itkā, bet laikam kaukas ir neritīgi. visu laiku met Return code = 256 vai ko tml. Link to comment Share on other sites More sharing options...
Klez Posted February 18, 2008 Report Share Posted February 18, 2008 /dev/null 2>&1 apmaini pret /home/www/domens.lv/_cron/cron_report.txt lai vari redzeet pilnu kljuudas zinjojumu Link to comment Share on other sites More sharing options...
ebw Posted February 18, 2008 Author Report Share Posted February 18, 2008 diemžēl es nevaru to dev/null nomainīt. nav tāda iespēja. viņš viņu pieliek galā automātiski. ja es lieku komandu: /usr/local/etc/php -q /home/www/domens.lv/_cron/skripts.php tad viņš piekabina klāt to >/dev/null 2>&1 rezultātā sanāk /usr/local/etc/php -q /home/www/domens.lv/_cron/skripts.php >/dev/null 2>&1 Link to comment Share on other sites More sharing options...
marcis Posted February 18, 2008 Report Share Posted February 18, 2008 (edited) Tev jau teica, izsauc php padodot tam skriptu nevis izsauc skriptu, kas aizceļo uz miskasti EDIT: Neņem vērā - mana kļūda Edited February 18, 2008 by marcis Link to comment Share on other sites More sharing options...
Paulinjsh Posted February 18, 2008 Report Share Posted February 18, 2008 a tu saproti, ka nevar viņš mainīt, kur jamie aizceļo? Link to comment Share on other sites More sharing options...
Klez Posted February 19, 2008 Report Share Posted February 19, 2008 nu es diju domaajis ka uz /dev/null suuta tad ja vinsh neko nenoraada uz kurieniim suutiit .... tad tev php failaa visas kljuudas jaapaarker un jaaieraksta kaadaa txt failaa vai db ... Link to comment Share on other sites More sharing options...
ebw Posted February 19, 2008 Author Report Share Posted February 19, 2008 skripts pats pa sevi itkaa ir straadaajoshs. bet teiksim vai pati cron komanda pa seviim buutu pareiza ja es rakstu piemeeram? : /usr/local/etc -q /home/www/domens.lv/_cron/script.php >/dev/null 2>&1 peec phpinfo sanaak tachu ka php uz servera atrodas /usr/local/etc ? ja pareizi saprotu. .. Configuration File (php.ini) Path /usr/local/etc .. Link to comment Share on other sites More sharing options...
Aleksejs Posted February 19, 2008 Report Share Posted February 19, 2008 Nē, php, visticamāk atrodas: /usr/bin/php Link to comment Share on other sites More sharing options...
ebw Posted February 19, 2008 Author Report Share Posted February 19, 2008 arii ar /usr/bin/php nesanaak. man liekas ka vinjam jabuut kautkur /usr/local/etc jo phpinfo saka: Configuration File (php.ini) Path /usr/local/etc Loaded Configuration File /usr/local/Zend/etc/php.ini Scan this dir for additional .ini files /usr/local/etc/php additional .ini files parsed /usr/local/etc/php/extensions.ini tieshaam nezinu. tik daudz varianti jau izmeegjinaati un nekaa :( Link to comment Share on other sites More sharing options...
Aleksejs Posted February 19, 2008 Report Share Posted February 19, 2008 /usr/local/bin/php Link to comment Share on other sites More sharing options...
Recommended Posts