PDA

View Full Version : حرفه ای: cronjobs setting



kazemimorteza
یک شنبه 29 تیر 1393, 00:27 صبح
سلام کرون جابز را برای اجرای یک اسکریپت php تنظیم می کنم خطای زیر برام ارسال میشه؟ لطفا راهنمایی کنید.

command: lynx -dump http://test.ir/crontest/index.php
error:
Cron Daemon
/bin/sh: lynx: command not found

us1234
یک شنبه 29 تیر 1393, 01:17 صبح
lynx
این دیگه چه کامندیه !!
از این استفاده کنید :


php -q address/file.php
آدرس فیزیکی فایل مورد نیازه اگر میخواهید با آدرس دامین لود شود این کامند ( ولی باید CURL فعال باشد )


curl -q http://test.ir/crontest/index.php

kazemimorteza
یک شنبه 29 تیر 1393, 10:38 صبح
سلام
دستور اولی را نوشتم ولی خطای زیر را میده
command: php -q http://test.ir/crontest/index.php
Could not open input file: http://test.ir/crontest/index.php (http://hamiyanweb.ir/crontest/index.php)
خواهشا راهنمایی بفرمایید

kazemimorteza
یک شنبه 29 تیر 1393, 11:06 صبح
تشکر روش دوم را که گفته بودید دوباره تست کردم جواب داد.
یعنی این:
curl -q http://test.ir/crontest/index.php