Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Cron
Pronigo
post
Post #1





Grupa: Zarejestrowani
Postów: 117
Pomógł: 0
Dołączył: 8.05.2005
Skąd: Gdańsk

Ostrzeżenie: (10%)
X----


Szukalem i nie znalazlem wiec sie pytam...
Chce co sekunde pobrac rekord z bazy danych, trzeba wykorzystac crona, ale nie mam zielonego pojecia jak za to sie zabrac.

Moj serwer stoi na Linuxie - apache 1.3.34 (Unix). Gdzie ustawia sie tego crona i co powinienem wpisac.

Pzdr.
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
mcstar
post
Post #2





Grupa: Zarejestrowani
Postów: 14
Pomógł: 0
Dołączył: 8.07.2003

Ostrzeżenie: (0%)
-----


Nie wiem może się myle ale jak dla mnie to dziwnie masz to polecenie dla cron'a. Ja używam wywołania jakie kiedyś doszukałem się w instrukcji dla phpAdsNew - i jak do tej pory nigdy z nim nie było problemu (IMG:http://forum.php.pl/style_emoticons/default/winksmiley.jpg)

Cytat
Based on which tool your server supports add one of the following lines to the cron.txt
file:

# if your server supports curl:
0 * * * * curl -s -o /dev/null http://your.server.name.here/phpAdsNew/mai...maintenance.php
# if your server supports fetch:
0 * * * * fetch -o /dev/null http://your.server.name.here/phpAdsNew/mai...maintenance.php
# if your server supports lynx:
0 * * * * lynx > /dev/null -dump http://your.server.name.here/phpAdsNew/mai...maintenance.php
# if your server supports wget:
0 * * * * wget -q -O /dev/null http://your.server.name.here/phpAdsNew/mai...maintenance.php



To cytat z tej instrukcji (IMG:http://forum.php.pl/style_emoticons/default/winksmiley.jpg) Podobnie budowałem zolecenie do obsługi IPB też działało - może Tobie też pomoże.

P.S.
U mnie na serwerze obsługiwana jest wersja dla wget.
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 3.10.2025 - 10:11