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...
I'm trying to install the DateTime Module in the Windows environment. Installed to: c:|Perl64\lib\Datetime Every time I run the script below it I get prompted...
Hello Everyone: Can someone explain/correct what I have done wrong here? I want it to output all values (Larry, Moe and Curly), but it's only giving me the...
essential quint
quintessential1@...
May 4, 2009 6:41 am
26594
... essential> Can someone explain/correct what I have done wrong here? I want it essential> to output all values (Larry, Moe and Curly), but it's only giving...
Hello Randall: You missed the point entirely. In a nutshell, I need to pass a number of parameters between subs. Getting back on track - Given the extremely...
essential quint
quintessential1@...
May 4, 2009 7:54 am
26596
... No, he got it. You just didn't listen. ... You have three local variables defined in a subroutine with no explicit return. A perl sub with no explicit...
Jeff Soules
soules@...
May 4, 2009 11:42 am
26597
On Mon, May 4, 2009 at 3:54 AM, essential quint <quintessential1@... ... His name is Randal. (Why does everyone add an 'l' to the end of his name?) ...
... Jeff> His name is Randal. (Why does everyone add an 'l' to the end of his Jeff> name?) Sadly, it's the more common spelling. I blame my parents. :) Mom...
You need to change sub_a to : sub sub_a { my $x = "Larry"; my $y = "Moe"; my $z = "Curly"; return ($x, $y, $z); } and sub_b to : sub sub_b { my @values = @_; ...
Hi How do I extract the number of weeks from the datecalc output. I have generated the difference between 2 dates, but I want to present the week field i my...
Is there a Perl module that has a command that will remove all files that are over X days old in a directory? Or will I have to write something? I've try...
... Dukelow,> Is there a Perl module that has a command that will remove all files that are over X days old in a directory? Or will I have to write something?...
Hi List, First time poster here, and perl beginner. I have a question about a perl one-liner I am trying to put together to hex encode an ascii string, except...
You are very close, but what you want is something like: perl -e 'while ( $ARGV[0] =~ /([a-fA-F0-9]{2})|(\{[^}]*\})|(\([^\)]*\))/g ) {print ( defined $2 ? $2 :...
... Thanks Robert, that does indeed work. ... However, someone else sent me this modification to what I already had, and it seems to be working just great: ...
Would someone please provide me the below if your currently using ds 4000 ? Thanks Robert 1: df -g output 2: ls -lv 3: ls -vg 4: ls vg -p 5: fget_config -Av ...