Gizmo Posted June 7, 2006 Report Posted June 7, 2006 Sveiki! Kā lai uztaisa ka PHP skripts palaižas katru dienu piemēram pkst. 24.00 Skripts nomaina vērtības MySQL tabulām... Pašam negribās katru vakaru to manuāli palaist... Linux; Apache2, PHP5
GedroX Posted June 7, 2006 Report Posted June 7, 2006 http://www.htmlcenter.com/tutorials/tutorials.cfm/155/PHP/ jeb atslēgvārdi "cron php"
Blitz Posted June 7, 2006 Report Posted June 7, 2006 caur cron japalaiz komanda: lynx -bash http://serveris/skripts man kautkaa neizdevas, ja tev iznak, uzraksti kas un kaa...
[Ya] Posted June 7, 2006 Report Posted June 7, 2006 (edited) caur cron japalaiz komanda:lynx -bash http://serveris/skripts man kautkaa neizdevas, ja tev iznak, uzraksti kas un kaa... # run five minutes after midnight, every day 5 0 * * * $HOME/bin/daily.job >> $HOME/tmp/out 2>&1 # run at 2:15pm on the first of every month -- output mailed to paul 15 14 1 * * $HOME/bin/monthly # run at 10 pm on weekdays, annoy Joe 0 22 * * 1-5 mail -s "It's 10pm" joe%Joe,%%Where are your kids?% 23 0-23/2 * * * echo "run 23 minutes after midn, 2am, 4am ..., everyday" 5 4 * * sun echo "run at 5 after 4 every sunday" minuutes stundas datums menesis diena , ar zvaigznīti apzīmejam ka jebkurā laikā .... uztaisam failu "cron" or whatever ierakstam ja ie SAPI(CGI): 0 0 * * * php /path/to/script.php 2>&1 // katru pusnakti palaidiisies skripts ja ir tikai Apache modulis: 0 0 * * * lynx -dump http://serveris/fails.php 2>&1 Edited June 7, 2006 by [Ya]
Gizmo Posted June 7, 2006 Author Report Posted June 7, 2006 bāc, jau atdūros.. - kā to Lynx palaist? uz servera jāliek? nav nekādu setup un *.exe
[Ya] Posted June 7, 2006 Report Posted June 7, 2006 bāc, jau atdūros.. - kā to Lynx palaist? uz servera jāliek? nav nekādu setup un *.exe lynx ir konsoles web paarluuks, ja tv nav linux, tad aizmirsti :) a ja linux, tad saki kaads pateikshu kaa uzlikt :)
Gizmo Posted June 7, 2006 Author Report Posted June 7, 2006 man tag kompim WinXP, serverim kautkāds Linux, bet viņam negribās ķerties klāt, ja nu vienīgi kautkas nedaudz ar putty (Linuxā galīgi neorientējos) tad jau nekas nesanāk?
[Ya] Posted June 7, 2006 Report Posted June 7, 2006 man tag kompim WinXP, serverim kautkāds Linux, bet viņam negribās ķerties klāt, ja nu vienīgi kautkas nedaudz ar putty (Linuxā galīgi neorientējos) tad jau nekas nesanāk? ja serverim linux, tad nekaada vaina, iemet man MSG ar to ko tev pateiks komanda: uname -a
Gizmo Posted June 7, 2006 Author Report Posted June 7, 2006 Linux SternwolfWeb 2.6.13-15-smp #1 SMP Tue Sep 13 14:56:15 UTC 2005 x86_64 x86_64 x86_64 GNU/Linux
Recommended Posts