I'm trying to find out what my primary dns server is, within a perl script. It just happens to be an AD server, and I need to point to it as a AD machine...
sortof, closest I could find there was Net::DNS::ToolKit::get_ns but that didn't want to work on my machine. basically - the system knows what it's name...
Is it possible to implement this without using any external modules from CPAN ? Thanks & Regards, Amit Saxena [Non-text portions of this message have been...
Amit Saxena
learn.tech123@...
Mar 23, 2009 7:07 pm
26558
... Amit> Is it possible to implement this without using any external modules from Amit> CPAN ? Is it possible? Yes. Reasonable? No. Please state clearly your...
Hi, I am using a script where it works out of loop and loads different configs everytime from config files. I am loading that configs using 'require' ...
yaswanth krishna
yaswanth.krishna@...
Mar 24, 2009 5:10 am
26560
... That doesn't sound like a good plan. You are importing unknown variables and routines into your symbol table. That is not a usually a good perl programming...
... As mentioned in the earlier example, I need the script to run in different modes. For every mode of invocation, I am taking mode specific configs from ...
... yaswanth> As mentioned in the earlier example, I need the script to run in yaswanth> different modes. For every mode of invocation, I am taking mode ...
Were you able to solve this ? If so, how... /Tux On Tue, Mar 24, 2009 at 10:40 AM, yaswanth krishna < ... [Non-text portions of this message have been removed]...
igotux igotux
igotux@...
Mar 29, 2009 6:33 am
26568
#!/usr/bin/perl # Author leebinkley@... use strict; use warnings; my $diff = 0; my @TI = (); my $TimeInfo = \@TI; get_time($TimeInfo); my $MyWrkLoc =...
#!/usr/bin/perl -w use strict; use warnings; use Data::Dumper; my %MFI = (); my $MyFolderInfo = \%MFI; my $MyIn = 0; my $MyOut = 0; my @MyWorka = (); # #...
$err=Net::Pcap::sendpacket($pcap,\$ethr_data) or die "Can't send packet:$!\n\r$err"; and it will be stopped when it goes here.return error is :Bad file...
... [snip] Why are you submitting this? Is it for peer review? CPAN has a script repository if you want to contribute scripts to the perl community. HTH, ...
... Robert> I submitted this script in the event for aix administrators. so it Robert> should go to cpan site ok thanks That's not how to put things onto the...
Hello everybody, I need to write a Perl CGI script to login from one system (A) into remote system (B) and do a ping to the third system (C). As of now, I have...
Amit Saxena
learn.tech123@...
Apr 1, 2009 5:05 pm
26576
Create a new console window and show message gived by the parent process.may be it is a new Dos window.how to do it.this new window is a child.or child thread....
i want to pass a file handle to child process.like this: system("perl child.pl $filehandle"); but it doesn't work.the value passed to child is only a string.i...
Hi there, This does not answer the original question and may be naive, but why not just have the child process [re]open the file? Is there a reason you need...
Jeff Soules
soules@...
Apr 11, 2009 5:02 pm
26579
hi. actually i've found how to do that. open(INPUT, "< /etc/motd") or die "/etc/motd: $!"; if ($pid = fork) { wait } else { defined($pid) or die "fork:$!";...
... Hello all, Thanks for the replies and the help. Since last few weeks, I am also trying for a solution to the same. So far, what I am trying and did is to...
Amit Saxena
learn.tech123@...
Apr 12, 2009 5:21 pm
26581
#!/usr/bin/perl use Net::SSH::Perl; my $host = "perlhowto.com"; my $user = "user"; my $password = "password"; #-- set up a new connection my $ssh =...
Hi All, I have a requirement to use IO:SOCKET:SSL for which I had to install IO-Socket-SSL-1.24 which needed Net-SSLeay-1.35 and then openssl-0.9.8k. I...