Hi, I have developed a command line PNR Enquiry Script, though it is a small but useful and ofcourse my first perl script.
Dependency :
you need to have Perl on your system with commnad line browser w3m, inshort install w3m and perl bofore you download the script.
Note : you can view in lynx also, in case of lynx , replace w3m with lynx
Install It
$ cd
$ wget http://narendra.sisodiya.googlepages.com/pnrenq.pl
$ chmod +x pnrenq.pl
How to use it
./pnrenq.pl 8322181194
The first argument is 10 digit PNR number
#######################################
# pnrenq - PNR Enquiry Script version 1 #
# Author - Narendra Sisodiya #
# Mail - narendra.sisodiya@gmail.com #
# (C) Narendra Sisodiya - 2008 #
# This Script is released under GPLv2 #
#######################################
5 comments:
Nice work
Nice idea but doesn't work through proxy for some reason. Python could also be a good option for such work.
Thanks,
for viewing page with proxy , you need to specify the proxy server address.
you need to make a HTTP_PROXY variable before executing the same.
something like
$export http_proxy=”http://proxy-server-ip:port"
$export http_proxy_user="your-user-name"
$export http_proxy_pass="your-password"
Hope It will work !!
It should be ./pnrenq.pl 8322181194 instead of ./pnrenq 8322181194
Ohh Thanks shirishag75,
I have made correction in the main post.
Initially the script name was pnrenq and later changed the name to pnrenq.pl,
Thanks
Post a Comment