LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-09-2009, 12:54 PM   #1
bpeck
LQ Newbie
 
Registered: Feb 2009
Posts: 9

Rep: Reputation: 0
Unhappy perl question!!!!!!!!


- Issues an NSLOOKUP command 50 consecutive times against the DNS name www.amd.com using your own DNS server to resolve the requests. Again, flush the resolver cache between each command and display the elapsed time before the first and after the last NSLOOKUP command.

how could i plug this into this script??? or what would be an easier way to do this???

Last edited by bpeck; 02-09-2009 at 04:55 PM.
 
Old 02-09-2009, 01:38 PM   #2
Telemachos
Member
 
Registered: May 2007
Distribution: Debian
Posts: 754

Rep: Reputation: 60
Huh?

Please put code into [code][/code] blocks, and please slow down and tell us more clearly (1) what you are trying to do and (2) what you've already done.

Usually, it's also helpful to tell us (3) what went wrong when you tried whatever you did in (2).
 
Old 02-09-2009, 02:02 PM   #3
bpeck
LQ Newbie
 
Registered: Feb 2009
Posts: 9

Original Poster
Rep: Reputation: 0
I AM TRYING TO MAKE A PERL SCRIPT TO DO THE FOLLOWING

- Issues an NSLOOKUP command 50 consecutive times against the DNS name www.amd.com using your own DNS server (ip address 192.168.1.100) to resolve the requests. Again, flush the resolver cache between each command and display the elapsed time before the first and after the last NSLOOKUP command.

i am lost....i didnt mean to post all of that stuff before that!!
 
Old 02-09-2009, 04:21 PM   #4
bpeck
LQ Newbie
 
Registered: Feb 2009
Posts: 9

Original Poster
Rep: Reputation: 0
anyone????? any ideas???? bump for some help fast!!!!!
 
Old 02-09-2009, 05:26 PM   #5
Telemachos
Member
 
Registered: May 2007
Distribution: Debian
Posts: 754

Rep: Reputation: 60
Double posting and bumping it won't help. If you want to try for more immediate help, try an irc #perl room.
 
Old 02-09-2009, 05:41 PM   #6
bpeck
LQ Newbie
 
Registered: Feb 2009
Posts: 9

Original Poster
Rep: Reputation: 0
sorry guys....just i am new at this, and just get nervous!! I wont bump anymore!!!! Telemacho would you be able to help me?
 
Old 02-16-2009, 05:05 PM   #7
adam999
Member
 
Registered: Sep 2006
Posts: 105

Rep: Reputation: 18
Code:
#!/usr/bin/perl

use Time::HiRes qw( clock gettimeofday tv_interval );


while ($p < 50)
{
 $time1 = [gettimeofday];
 system("nslookup www.amd.com");
 $time2 = [gettimeofday];
 print("Elapsed: " . ($elapsed = tv_interval $time1, $time2 ) . "\n");
 $p ++;
}
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
perl question cmontr Programming 2 11-26-2008 09:31 AM
Perl Question for perl hackers. linuxlover1 Programming 1 06-27-2006 06:56 PM
reinstall perl question.. (urpme perl) rjcrews Mandriva 2 01-28-2006 06:19 PM
Hiding code in PERL, perl gui question randomx Programming 1 06-26-2004 03:22 PM
perl(Cwd) perl(File::Basename) perl(File::Copy) perl(strict)....What are those? Baldorg Linux - Software 1 11-09-2003 08:09 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration