Login To InderWeb ! Just Play !

Username:
Password:

UserSubmittedComments

cron

running php file from linux shell vi editor and command line php for non http based files

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.

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.

Syndicate content