<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
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/"
> <channel><title>Comments on: /bin/bash: bad interpreter: Text file busy Error and Solution</title> <atom:link href="http://www.cyberciti.biz/faq/binbash-bad-interpreter-text-file-busy/feed/" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/faq/binbash-bad-interpreter-text-file-busy/</link> <description>Every answer asks a more beautiful question.</description> <lastBuildDate>Fri, 10 Feb 2012 19:55:56 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Deepti</title><link>http://www.cyberciti.biz/faq/binbash-bad-interpreter-text-file-busy/#comment-60300</link> <dc:creator>Deepti</dc:creator> <pubDate>Tue, 28 Jun 2011 11:41:03 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=3021#comment-60300</guid> <description>My problem occurred coz I transferred the script from a windows machine to linux. Once I converted it to unix compatible file (using dos2unix command) the problem went away</description> <content:encoded><![CDATA[<p>My problem occurred coz I transferred the script from a windows machine to linux. Once I converted it to unix compatible file (using dos2unix command) the problem went away</p> ]]></content:encoded> </item> <item><title>By: David Sharnoff</title><link>http://www.cyberciti.biz/faq/binbash-bad-interpreter-text-file-busy/#comment-45192</link> <dc:creator>David Sharnoff</dc:creator> <pubDate>Tue, 15 Dec 2009 23:58:04 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=3021#comment-45192</guid> <description>How about a real solution: allow interpreters to run files that are open and locked!   This (recent) kernel change sucks.</description> <content:encoded><![CDATA[<p>How about a real solution: allow interpreters to run files that are open and locked!   This (recent) kernel change sucks.</p> ]]></content:encoded> </item> <item><title>By: richard</title><link>http://www.cyberciti.biz/faq/binbash-bad-interpreter-text-file-busy/#comment-39740</link> <dc:creator>richard</dc:creator> <pubDate>Wed, 07 Jan 2009 09:11:10 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=3021#comment-39740</guid> <description>Sorry,
for pkill command I forgot the option -f :
&lt;code&gt;pkill -f myscript.sh&lt;/code&gt;</description> <content:encoded><![CDATA[<p>Sorry,</p><p>for pkill command I forgot the option -f :<br
/> <code>pkill -f myscript.sh</code></p> ]]></content:encoded> </item> <item><title>By: Vivek Gite</title><link>http://www.cyberciti.biz/faq/binbash-bad-interpreter-text-file-busy/#comment-39739</link> <dc:creator>Vivek Gite</dc:creator> <pubDate>Wed, 07 Jan 2009 09:09:47 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=3021#comment-39739</guid> <description>Richard,
Thanks for pointing out -t option.</description> <content:encoded><![CDATA[<p>Richard,</p><p>Thanks for pointing out -t option.</p> ]]></content:encoded> </item> <item><title>By: richard</title><link>http://www.cyberciti.biz/faq/binbash-bad-interpreter-text-file-busy/#comment-39738</link> <dc:creator>richard</dc:creator> <pubDate>Wed, 07 Jan 2009 09:05:44 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=3021#comment-39738</guid> <description>I had type this command :
&lt;code&gt;pkill myscript.sh&lt;/code&gt;
but if you want use lsof the -t option show only the PID :
&lt;code&gt;kill `lsof -t myscript.sh`&lt;/code&gt;</description> <content:encoded><![CDATA[<p>I had type this command :<br
/> <code>pkill myscript.sh</code></p><p>but if you want use lsof the -t option show only the PID :<br
/> <code>kill `lsof -t myscript.sh`</code></p> ]]></content:encoded> </item> </channel> </rss>
