<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>A K Chauhan's Blog &#187; lynx</title>
	<atom:link href="http://www.akchauhan.com/tag/lynx/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.akchauhan.com</link>
	<description>PHP, MySql, JavaScript, JQuery, Prototype, Drupal, HTML, CSS and more...</description>
	<lastBuildDate>Mon, 02 Jan 2012 03:29:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Use lynx to run php file in crontab manager</title>
		<link>http://www.akchauhan.com/use-lynx-to-run-php-file-in-crontab-manager/</link>
		<comments>http://www.akchauhan.com/use-lynx-to-run-php-file-in-crontab-manager/#comments</comments>
		<pubDate>Tue, 19 May 2009 10:50:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[cron]]></category>
		<category><![CDATA[crontab]]></category>
		<category><![CDATA[lynx]]></category>

		<guid isPermaLink="false">http://www.akchauhan.com/?p=370</guid>
		<description><![CDATA[Today, I was trying to set a php script file in crontab on Godaddy Virtual Dedicated server. Crontab executing that PHP script with warning. Actually, its not including the files which I am including using &#8216;require_once()&#8216; function. I have used the relative path for all the included files and its not possible to me to [...]]]></description>
			<content:encoded><![CDATA[<p>Today, I was trying to set a php script file in crontab on <strong>Godaddy Virtual Dedicated server</strong>. Crontab executing that PHP script with warning. Actually, its not including the files which I am including using &#8216;<strong>require_once()</strong>&#8216; function. I have used the <strong>relative path</strong> for all the included files and its not possible to me to give <strong>absolute path</strong> for all files which are included. So, to solve this problem I have used <strong>lynx</strong>.</p>
<p><strong>LYNX</strong> &#8211; lynx is the <strong>command line browser</strong> which is available on almost all the Linux versions. For more detail <a href="http://lynx.isc.org/" target="_blank">click here</a>.</p>
<p>Instead, of using this command</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">/</span>usr<span style="color: #339933;">/</span>bin<span style="color: #339933;">/</span>php <span style="color: #339933;">/</span>html<span style="color: #339933;">/</span>abc<span style="color: #339933;">/</span>public_html<span style="color: #339933;">/</span>cron<span style="color: #339933;">.</span>php</pre></div></div>

<p>I have used this command</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">/</span>usr<span style="color: #339933;">/</span>bin<span style="color: #339933;">/</span>lynx <span style="color: #339933;">-</span>source http<span style="color: #339933;">:</span><span style="color: #666666; font-style: italic;">//www.mywebsite.com/cron.php</span></pre></div></div>

<p>in crontab manager. So, what <strong>lynx </strong>did is Its opens my <strong>cron.php</strong> files when this cron job execute.<br/><br />
<strong>-source</strong> Outputs HTML source instead of formatted text. To see all the available options of lunx <a href="http://lynx.isc.org/lynx2.8.6/lynx2-8-6/lynx_help/Lynx_users_guide.html" target="_blank">click here</a>.<br/><br />
If you don&#8217;t know the path of lynx on your server you can use <strong>&#8221;whereis lynx&#8221; command</strong> using <strong>SSH</strong>. It will give you path of <strong>lynx directory</strong> on your server.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.akchauhan.com/use-lynx-to-run-php-file-in-crontab-manager/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

