vim – get names of the scripts and the details from the command line

2010-05-19 1 min read Learning Linux Vim Tips

For the below commands either you can set the two variables in bold and then run the scripts or change the following in the commands and run the scripts.

If you have html2text installed then you can use this:

wget -o /dev/null -O $script_id_file ’http://www.vim.org/scripts/script.php?script_id=’$script_id |html2text

If you dont have html2text installed then you can use:

wget -o /dev/null -O $script_id_file &#8217;http://www.vim.org/scripts/script.php?script_id=&#8217;$script_id<h6 class="zemanta-related-title">Related articles by Zemanta <ul class="zemanta-article-ul"> <li class="zemanta-article-ul-li"><a href="http://www.inquisitr.com/55496/twilight-eclipse-script-allegedly-leaked/">Twilight Eclipse Script Allegedly Leaked (inquisitr.com) <li class="zemanta-article-ul-li"><a href="http://huddledmasses.org/powershell-script-club-in-rochester-on-wednesday/">PowerShell Script Club in Rochester on Wednesday (huddledmasses.org) <li class="zemanta-article-ul-li"><a href="http://blogs.adobe.com/acrolaw/2010/02/add_a_flatten_document_menu_item.html">Add a Flatten Document Menu Item to Acrobat (blogs.adobe.com) <li class="zemanta-article-ul-li"><a href="http://codebetter.com/blogs/james.kovacs/archive/2010/02/25/the-exec-problem.aspx">The Exec Problem (codebetter.com) <div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a class="zemanta-pixie-a" title="Reblog this post [with Zemanta]" href="http://reblog.zemanta.com/zemified/d25e9b6c-aca3-4008-9a3c-3403140d32e0/"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/reblog_e38.png" alt="Reblog this post [with Zemanta]" /><span class="zem-script more-related pretty-attribution">

Continue reading

core dump checking script.

2010-04-11 2 min read Bash Linux Solaris

I was testing a program which crashing every now and then. It is very difficult in such scenarios to keep looking for the <a class="zem_slink" title="Core dump" rel="wikipedia" href="http://en.wikipedia.org/wiki/Core_dump">core file or keep checking for the running process. So I wrote this simple script that can check for core file in the particular path and keep running until it finds one. You can hack this script to send a mail once the core is found. This is a very simple script. And this should work on solaris too..

Continue reading