Linux xdg-open — replacement for start in windows

2009-11-05 1 min read Fedora Linux

if you want to open any document with the default document handler from the bash prompt or command prompt in linux then the simplest way to do that is use ”xdg-open”.

This can also be used in bash scripts to allow users to select which document to open without worrying about if a particular application is installed or not. Example could be where you have list of documents in the current directory (same kind or of different format.) and you want the user to select the document. In such a scenario you can take the user input for the filename and user ”xdg-open filename” to open the file irrespective of the file type or worrying about if xpdf is installed or abiword is installed or not.

Continue reading

Get your external IP address

2009-11-04 1 min read Bash Linux

$ echo -e "GET /automation/n09230945.asp HTTP/1.0rnHost: whatismyip.comrn" | nc whatismyip.com 80 | tail -n1

  • <a href="http://www.commandlinefu.com/commands/view/3962/get-your-external-ip-address">View this command to comment, vote or add to favourites
  • <a href="http://feeds2.feedburner.com/commands/by/Marko">View all commands by <a href="http://feeds2.feedburner.com/commands/by/Marko">Marko

<a href="http://www.commandlinefu.com"><img src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/header-logo.jpg" alt="" align="bottom" />

by David Winterbottom (<a href="http://codeinthehole.com">codeinthehole.com)

<a href="http://feedads.g.doubleclick.net/~a/JcVSM9r0yMSf6O0G2eSK5vyQGsU/0/da"><img src="http://blog.amit-agarwal.com/wp-content/uploads/img.zemanta.com/~a/JcVSM9r0yMSf6O0G2eSK5vyQGsU/0/di" alt="" align="bottom" />
<a href="http://feedads.g.doubleclick.net/~a/JcVSM9r0yMSf6O0G2eSK5vyQGsU/1/da"><img src="http://blog.amit-agarwal.com/wp-content/uploads/img.zemanta.com/~a/JcVSM9r0yMSf6O0G2eSK5vyQGsU/1/di" alt="" align="bottom" />

<img src="http://blog.amit-agarwal.com/wp-content/uploads/img.zemanta.com/~r/Command-line-fu/~4/7xln2n56mnk" alt="" width="1" height="1" align="bottom" />

URL: <a href="http://feedproxy.google.com/~r/Command-line-fu/~3/7xln2n56mnk/get-your-external-ip-address">http://feedproxy.google.com/~r/Command-line-fu/~3/7xln2n56mnk/get-your-external-ip-address<h6 class="zemanta-related-title" style="font-size: 1em;">Related articles by Zemanta <ul class="zemanta-article-ul"> <li class="zemanta-article-ul-li"><a href="http://www.computer-realm.net/how-find-computers-ip/">How to Find Out Your Computer&#8217;s IP (computer-realm.net) <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/42c8d78f-7105-47fc-9f21-6df9065a21a3/"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/reblog_e29.png" alt="Reblog this post [with Zemanta]" /><span class="zem-script more-related pretty-attribution">

Continue reading

Citibank Doesn\’t Want Your Business, Linux Users

2009-11-03 1 min read Linux Uncategorized

This is an article from the Citibank customers in US.

The Consumerist: &#8221;Citibank won&#8217;t let customers using Linux computers log in to their online accounts. Adam argues that in 2009 this doesn&#8217;t make sense, especially when no other major corporate website blocks him like this.&#8221;

URL: <a href="http://linuxtoday.com/news_story.php3?ltsn=2009-10-31-001-39-IN-BZ-SW">http://linuxtoday.com/news_story.php3?ltsn=2009-10-31-001-39-IN-BZ-SW

But in India too we don&#8217;t have much too different environment. Though I do not have any issues with the Citibank site, but I have HDFC Insurance. I always pay the premium online. This time the payment failed couple of times and the amount was deducted from my account. When checked with the Customer Service Desk, the confirmed that the payment option does not work on Firefox with Linux. For this time I have made the payment using Cash, but why should there be OS discrimination.

Continue reading

what is my user agent

2009-11-02 1 min read Uncategorized

Wonder what your browser is sending to all the websites that you visit.

Check out at <a href="http://whatsmyuseragent.com/">http://whatsmyuseragent.com/

Using autologin for ftp sessions.

2009-10-30 1 min read Linux

A simple example of the .netrc file. Keep this file in your homedir and then chmod to 600.

machine skyware login raj password ********

macdef init

ls -lRt

macdef hello

bye

Older posts Newer posts