CGI execute command via ssh

2005-08-31 Thread MNibble
Aloha I',m trying to execute a command via ssh on a remote maschien via a perl-cgi script. The app i'm building does this a lot, with 99% of success. The missing 1% i'm trying to understand and after that to solve. I use backstick to run the ssh command something like: my $data = `ssh [EMAIL

Re: Performance and precise

2005-08-23 Thread MNibble
Xavier Noria wrote: On Aug 23, 2005, at 9:51, MNibble wrote: I'm ask to think of an solution for an Webapp that does some math on data in an database. The problem is, the DB has about 40.000.000 entries, the webapp needs to do mainly math on that data, the math should be "trac

Performance and precise

2005-08-23 Thread MNibble
le", so no wild round offs. Is Perl ( which i favor ) the right direction to start thinking. with regards MNibble -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: Help: automated email forwarding similar to .forward

2005-07-27 Thread MNibble
.forward is fine for that kind of thing, if you modify it to a pipe where a perl skript reads from. Then pass the message throw it, while doing what ever you like with it - for example sleep(3600) in fork / or threaded spawn of you programm. MNibble Rich Fernandez wrote: Hi folks, I&#

Re: catching signal for an email notification

2005-07-20 Thread MNibble
[EMAIL PROTECTED] wrote: MNibble <[EMAIL PROTECTED]

Re: catching signal for an email notification

2005-07-19 Thread MNibble
f ($error != 0) { print "exit value $?\n"; my $ex1 = ($exam & 127); print "show Signal $ex1 \n"; my $ex2 = ($exam & 128); print "Coredump$ex2 \n"; } -- with regards MNibble -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: sorting list of array

2005-07-15 Thread MNibble
meone how has the book effective perl - there is a the "schwarz" sort code, which usage caching for speed up. ( Randel Schwarz is also on that list .. so maybe ... he can pass it anyway ). with regrads MNibble -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: Append to hash

2005-07-15 Thread MNibble
? Thanks in advance. Jakob why using a hash .. an array is what you are looking for. my @array; my $cnt; open (IN,"<",shift) or die $!; while() { chmop; $array[$cnt]=$_; $cnt++; } MNibble -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: call other program

2005-07-15 Thread MNibble
well i simply can't ... but if you really want't to get your shellpromt back use a fork for that process you would like to read from. something like: die unless defined ($spawn=fork()); unless ($spawn) { open FH,"whoami |"; while() {

Re: ssh to a remote machine

2005-06-22 Thread MNibble
put = `ssh [EMAIL PROTECTED] command_to_get_the_output_from`; with regard MNibble -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

PurpleWiki

2005-06-17 Thread MNibble
o hell" with regard MNibble -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: Pipe to X clipboard

2005-06-11 Thread MNibble
Zentara wrote: On Fri, 10 Jun 2005 11:07:29 +0200, [EMAIL PROTECTED] (MNibble) wrote: aloha how do i pipe to the x clipboard from perl ? Are there diffrent ways from on X to an other ( x.org, Xfree86 ) MNibble There are alot of difficulties giving a one shot answer, because what works

Re: Net::SSH::Perl bind socket problem

2005-06-11 Thread MNibble
Gui wrote: I'm really sorry for not replying during all this time. I'm involved in lots of project, and I had to set this one aside for a moment. But now I'm determined to get this thing fix! I still have beginner level in perl, and can't quite make sense of the code you posted. I asked the net

Pipe to X clipboard

2005-06-10 Thread MNibble
aloha how do i pipe to the x clipboard from perl ? Are there diffrent ways from on X to an other ( x.org, Xfree86 ) MNibble -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>