Sponsored Content
Full Discussion: Crontab and PHP help
Top Forums Shell Programming and Scripting Crontab and PHP help Post 302383282 by Sidabm on Tuesday 29th of December 2009 05:51:46 AM
Old 12-29-2009
You will have to bear with me, I am new to this, but i assume the line will look something like this:-
Code:
10 11 * * * php path/path/script.php like 2>&1 | mail -e -s 'err' xyz@abc.com

Sidabm

Last edited by Yogesh Sawant; 12-31-2009 at 01:47 PM.. Reason: added code tags
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Crontab help.

All, I am trying to edit the crontab but I am not able to open it. I just get 863 but nothing opens.I tried crontab -l found some entries. Could some please let me know if I am missing something. I am trying this on my application id. If I do it for my personal Id it works.. Thanks in... (2 Replies)
Discussion started by: venkyA
2 Replies

2. UNIX for Dummies Questions & Answers

Crontab

Hello everyone I´m trying to edit my crontab, with the -e option and the only thing that appears its a number for example crontab -e enter 75 I need to use crontol +d and appears the message that nothing changes in the crontab. If I use crontab -l appears my list of crons. Can... (2 Replies)
Discussion started by: lo-lp-kl
2 Replies

3. UNIX for Dummies Questions & Answers

Using PHP script with crontab (NOOB)

Hi, I am trying to use a PHP script as a test for a cron job. My crontab is 1 line: 30 * * * * /home/www/inc/crontab.php if I test the file through the browser (ie. http://www.domain.com/inc/crontab.php), the PHP script works -- so there is nothing wrong with the PHP script itself or the... (5 Replies)
Discussion started by: Bobafart
5 Replies

4. Shell Programming and Scripting

Crontab PHP scripts not ending

when i run the scripts from command line like php ./file.php they run fine and it ends. But i have them running in crontab every 5 minutes and they sometimes dont close. Can i write something to log why or force them to close after a certain amount of time by killing the pid? (2 Replies)
Discussion started by: nitrous
2 Replies

5. UNIX for Advanced & Expert Users

crontab help

I set up a simple echo script so I know its actually doing its job. * * * * * echo hi >> /home/bob/Desktop/come I have 3 video's I'm trying to play as a playlist at 8 am. I've checked in the terminal and as a regular script that this works fine. Right now I'm just trying to get it working so I'm... (7 Replies)
Discussion started by: cokedude
7 Replies

6. Shell Programming and Scripting

help in using crontab

i want to run a script automatic in time there us problem coming while i was doing s simple test i do in command prompt cat > cmdfile 50 17 * * * echo "jtgtrgtrgjtrgg" ctrl+d then crontab cmdfile so this echo command should execute on 17:50 i check in /var/spool/cron/crontabs... (3 Replies)
Discussion started by: sayurabh
3 Replies

7. Shell Programming and Scripting

Need help in crontab

Hi, I want to run a shell script for every 3 hours basis starting from 1 AM in the night. Could you please help me out ,how to set a crontab. 0 01 * * * /shell script Thx. (2 Replies)
Discussion started by: kirankumar
2 Replies

8. Linux

Run a php file using URL in crontab.

I want to run a php file from a url using cron tab. I am using a webhosting and i give a command like that 9 11 9 2 * wget -O /dev/null here-is-domain-name/cronfile.php but it does not work please tell me why this not work. I think this command must run a "cronfile.php" and i do not want to... (2 Replies)
Discussion started by: ArfanHaider
2 Replies

9. UNIX for Advanced & Expert Users

Strange bug crontab command line php / bcompiler

Hello everyone, I have a small problem that I'm stuck for several days and I do not go out. I tell you, I have a php script that I want to run crontab, it uses a compiled bcompiler file. In my php file if(file_exists("php/Alibrary.phb")){ include_once("php/Alibrary.phb"); What I do... (6 Replies)
Discussion started by: nicolas33770
6 Replies
PHP-FPM(8)							Scripting Language							PHP-FPM(8)

NAME
php-fpm - PHP FastCGI Process Manager 'PHP-FPM' SYNOPSIS
php-fpm [options] DESCRIPTION
PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML. This is a variant of PHP that will run in the background as a daemon, listening for CGI requests. Output is logged to /var/log/php-fpm.log. Most options are set in the configuration file. The configuration file is /etc/php-fpm.conf. By default, php-fpm will respond to CGI requests listening on localhost http port 9000. Therefore php-fpm expects your webserver to forward all requests for '.php' files to port 9000 and you should edit your webserver configuration file appropriately. OPTIONS
-C Do not chdir to the script's directory --php-ini path|file -c path|file Look for php.ini file in the directory path or use the specified file --no-php-ini -n No php.ini file will be used --define foo[=bar] -d foo[=bar] Define INI entry foo with value bar -e Generate extended information for debugger/profiler --help -h This help --info -i PHP information and configuration --modules -m Show compiled in modules --version -v Version number --prefix path -p Specify alternative prefix path (the default is /usr) --fpm-config file -y Specify alternative path to FastCGI process manager configuration file (the default is /etc/php-fpm.conf) --test -t Test FPM configuration file and exit If called twice (-tt), the configuration is dumped before exiting. --zend-extension file -z file Load Zend extension file FILES
php-fpm.conf The configuration file for the php-fpm daemon. php.ini The standard php configuration file. SIGNAL
Once started, php-fpm then responds to several POSIX signals: SIGINT,SIGTERM immediate termination SIGQUIT graceful stop SIGUSR1 re-open log file SIGUSR2 graceful reload of all workers + reload of fpm conf/binary SEE ALSO
The PHP-FPM website: http://php-fpm.org For a more or less complete description of PHP look here: http://www.php.net/manual/ A nice introduction to PHP by Stig Bakken can be found here: http://www.zend.com/zend/art/intro.php BUGS
You can view the list of known bugs or report any new bug you found at: http://bugs.php.net AUTHORS
PHP-FPM SAPI was written by Andrei Nigmatulin. The mailing-lists are highload-php-en (English) and highload-php-ru (Russian). The PHP Group: Thies C. Arntzen, Stig Bakken, Andi Gutmans, Rasmus Lerdorf, Sam Ruby, Sascha Schumann, Zeev Suraski, Jim Winstead, Andrei Zmievski. A List of active developers can be found here: http://www.php.net/credits.php And last but not least PHP was developed with the help of a huge amount of contributors all around the world. VERSION INFORMATION
This manpage describes php-fpm, version 5.4.4-14+deb7u14. COPYRIGHT
Copyright (C) 1997-2009 The PHP Group Copyright (c) 2007-2009, Andrei Nigmatulin This source file is subject to version 3.01 of the PHP license, that is bundled with this package in the file LICENSE, and is available through the world-wide-web at the following url: http://www.php.net/license/3_01.txt If you did not receive a copy of the PHP license and are unable to obtain it through the world-wide-web, please send a note to license@php.net so we can mail you a copy immediately. The PHP Group 2009 PHP-FPM(8)
All times are GMT -4. The time now is 12:48 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy