RSS

Run mysql connect in php on cron tab

13 Sep

run the following commands in terminal of ubantu:

1. crontab -e

2. Once it opens press i (for insert) and type the cron command.

3.  * * * * * /opt/lampp/bin/php -q /opt/lampp/htdocs/test1.php >> /home/a3logics/Desktop/log.txt

4. Press esc (escsape, you will taken out of insertion mode)

5. Press: :wq this will write(w) the file and quit (q), don’t forget the leading :

OR

5. Press:  :x to quit

6. Show the listing of crontab by command crontab -l

for more details:

http://codeigniter.com/forums/viewthread/199279/#934603

 
Leave a comment

Posted by on Sep 13, 2011 in cron job

 

Tags: ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: