cron
running php file from linux shell vi editor and command line php for non http based files
Submitted by inder on Wed, 11/19/2008 - 14:48.
for creating and executing a php file from ssh you need to PHP installed as binary (CGI) and add something like at top of shell script
[root:inderweb.com]!/usr/bin/php -q
.This is to tell the shell interprator(kernal) that we are using php from bin directory for executing lines of code in script.To get started with a simple php code in shell do following steps:-
- Open shell prompt and go to your directory . e.g [root:inderweb.com ~]
Crontab Commands setup cron jobs in linux Edit your crontab file, or create one if it doesn't already exist.
Submitted by inder on Wed, 11/19/2008 - 13:29.
In linux we can change cron tab file for setting and configuring cron jobs.We can use Vi editor for opening this file.
e.g crontab -e
Crontab Commands
__________
crontab -e Edit your crontab file, or create one if it doesn't already exist.
crontab -l Display your crontab file.
![Validate my RSS feed [Valid RSS]](http://feedvalidator.org/images/valid-rss.png)