domain expiry date


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting domain expiry date
# 1  
Old 03-21-2008
Power domain expiry date

Hi all,

I want to write a shell script that read line by line of a file that have all domain names written, after reading complete file it will give us following output.

Domain Name Expiry Days-Left
abcd.com 20-Feb-200 6 10

How can i acheive that script will only print above format.

I am waiting for Folks reply.

Regards,
Bash Learner
# 2  
Old 03-21-2008
Please post a few lines of the input file
# 3  
Old 03-23-2008
The real problem is that the whois databases, where you would presumably get this information, use a plethora of different formats.

telnet whois.internic.net 43 # for some fun

For example, if you type in unix.com, you will see that whois.godaddy.com will give detailed information about this particular domain name. So you telnet whois.godaddy.com 43 and see what you get when you type unix.com there. Try it again with some other friendly domain names you like, especially outside the .com and .net domains, and weep.

domaintools.com have already solved this problem, by and large, and charge a very reasonable fee. I would simply go there, unless you have a pressing urge to reinvent a very hairy wheel (or no money and lots of time). I don't personally use their services, but those friends of mine who do seem to be very satisified.

Last edited by era; 03-23-2008 at 09:00 AM.. Reason: Pointer to Domaintools
# 4  
Old 05-20-2008
Quote:
Originally Posted by jim mcnamara
Please post a few lines of the input file
I have this output
uscast.us - Domain Expiration Date: Sat Dec 13 23:59:59 GMT 2008
better-posture.com - Expiration Date: 17-mar-2009
eonigeria.org - Expiration Date:09-Jul-2014 16:27:43 UTC
alpha-male.ca - Renewal-Date: 2008/12/20

But i want to show like all above domain only

uscast.us -> YYYY-MM-DD
better-posture.com -> YYYY-MM-DD
eonigeria.org -> YYYY-MM-DD
alpha-male.ca -> YYYY-MM-DD
# 5  
Old 05-21-2008
still waiting can anyone answer.

Regards,
Noman Liaquat
# 6  
Old 05-22-2008
It's not allowed to bump up questions, please read the rules.

Regards
# 7  
Old 05-22-2008
There are many threads on this site about normalizing dates, although it took me a while to come up with a link to one. https://www.unix.com/shell-programmin...onversion.html is not a particularly brilliant example but might work for you, and has pointers to more.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

How to check ssl certificate expiry date using openssl command?

hi how to check ssl certificate expiry date using openssl command try below code it is not working, any help echo q | openssl s_client -connect akamai.com:443 | openssl x509 -noout -enddate socket: Bad file descriptor connect:errno=9 unable to load certificate... (0 Replies)
Discussion started by: raghur77
0 Replies

2. Solaris

expiry date of an account

can an user see the expiry date of its own account,also can the user know whether it is having peer access or not. Thanks, Megh (2 Replies)
Discussion started by: megh
2 Replies

3. Shell Programming and Scripting

Calculating expiry date using date,sed,grep

Hi, I would greatly appreciate it if someone can help me with my problem. I have a crawler which collects spam URLs everyday & this data needs to be published in a blacklist. Here's the catch: The "Time To Live" (TTL) for each URL is 3 months (or whatever for that matter). If i see the... (5 Replies)
Discussion started by: r4v3n
5 Replies

4. Shell Programming and Scripting

Password expiry date check for hp servers

Hi All, Can anybody help me, to find the command to check for the password expiry date for the hp servers. Thanks, Deepak (3 Replies)
Discussion started by: dswain
3 Replies

5. Shell Programming and Scripting

Expiry date of shell script

Hello folks, I have question about my expiry of shell script, today date is 2009-11-11, i will have to deploy a script today, how i should setup that my script will not work after 2010-05-11, Between if someone will change the date of server then script will again not work, please give... (3 Replies)
Discussion started by: learnbash
3 Replies

6. UNIX for Advanced & Expert Users

expiry date for files?

Hi, Is there any way i can give an expiry date for files that i create? For example, i would like to get a file deleted automatically after 60 days from the creation date. Is there any possibility for this in Unix? Thanks, RRVARMA (3 Replies)
Discussion started by: RRVARMA
3 Replies

7. SuSE

Disable the password expiry date

Hi, We are going to create the new user, using that user we are automate the work, but every 90 days password get expired how can i create or avoid the expiry the password. (1 Reply)
Discussion started by: kingganesh04
1 Replies

8. UNIX for Dummies Questions & Answers

Find user password expiry date

Does anyone know a simple way to find out the expiry date of my UNIX user password? I do not have root access to the box. Surely there is a way to so this... (4 Replies)
Discussion started by: oztoma
4 Replies

9. Shell Programming and Scripting

Extract Expiry date and server_name from the following file

Hi Guys, I am trying to write one ksh script where I have to go to lots of unix boxes and read one text file which will have data like this though this is not complete data. And I just have to extract expire date ( which is 2nd date value 08/31/2009 in the first one ) and the server name ( astro... (0 Replies)
Discussion started by: pareshan
0 Replies

10. UNIX for Advanced & Expert Users

Digital Certificate Expiry Date

HI, I want to know the certificate expiry dates and who is owner of the certificate installed in UNIX. example certiface name 1)SSL 2)Veri Sign Trust Network (1 Reply)
Discussion started by: RG18173
1 Replies
Login or Register to Ask a Question