Hi,
I have a problem to install perl module "Device-SerialPort-0.13" into Redhat
8(perl 5.8.0) due to above errors. In the past, I had installed it into
RedHat6/RedHat7 many many times. Do not know how to fix that.
Any help will be highly appreciate. Below is the whole error message.
Happy new ye
Even, I put it like open(SCP,"scp source dest|"), the system still ask me to
type in my password. Probably, that's another shell, I mean the ssh login
shell is different from the one I run my script. So, I can not send my
password from previous shell to new ssh shell.
T
Hi Greg,
Thanks for your help.
But I have difficulty to fill in the password. What I like to do is,
open (SCP, "| scp source destination");
print SCP scppassword;
close SCP;
Above code does not work for me. Any idea to make it work?
Best regards,
Jeff Liu
-Original Message
Hi all,
Is there a way to do scp inside perl script?
Thanks,
Jeff Liu
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
p 1;
}
print "$bytein\n";
}
$port->close();
-Original Message-
From: Papo Napolitano [mailto:[EMAIL PROTECTED]]
Sent: February 28, 2002 5:51 PM
To: Jeff Liu; Beginners
Subject: Re: perl serial port program
I'm using the Device::SerialPort to monitor the logs
Hi there,
I need to cook a perl script talking to /dev/ttyS0, it will be used to
monitor a RAID device via serial port. But even spending the whole day I was
still not lucky enough to be successful. Could you please show me a way to
deal with it?
Many thanks,
Jeff Liu
--
To unsubscribe, e
new(PeerAddr => $server_name,Proto
=>"tcp",PeerPort => 25,Type =>SOCK_STREAM, Timeout => 30)
It looks like the timeout parameter does not work. My script can be frozen
by one server for days, never return to me.
Any suggestion will be highly appreciated.
Many thanks,
Jeff L
I do not know other ways. probably you can try,
while (<>)
{
sleep x;
your script task;
}
This will let your script keep running and never exit, you can change "x"
value to setup the frequency as your wish.
Jeff Liu
-Original Message-
From: jeff [mailto:[EMAIL
If you are using Unix, add your script in /etc/crontab like this.
0 3 * * * root /usr/local/bin/your-script
0 means run at minute 0.
3 means run at 3:00a.m.
* means every day
Jeff Liu
-Original Message-
From: jeff [mailto:[EMAIL PROTECTED]]
Sent: December 28, 2001 11:41 AM
To
Hi all,
I am working on a script to open smtp port connection. Somehow, I get
problem to setup the timeout, my script just stuck for 5 or maybe 10 minutes
before come back. Does anybody know a way to setup a shorter timeout while
connecting, like 20 seconds? The following does not work for me. I
10 matches
Mail list logo