Hi,
I've used R for statistical analysis and graphing and it's hard to beat for this.
However, I'm from a general programming background and starting to miss those capabilities, process control, data transformation etc.
I'm starting to look at rpy2 which runs R in a Python process, it seems...
My answer (above) is complete twaddle...
I don't think you can *quite* do what you're asking, but there's probably a way around it.
Can you start the process on the end of a pipe and then block until there's something to read?
open(P, 'scanner_proc |')
while(<P>){
# do whatever you're going...
Hi Rick,
I've not written this kind of Perl script for Windows but you do something similar to this in *nix when you write a daemon process - you close and then reopen stdin, stdout and stderr. I'll have a look around.
Mike
Try something like this
open(my $ssh, "| ssh -T $onlineon >a_file 2>&1");
print $ssh "/usr/sbin/vxassist -g $dg listtag | $awk -F= '/activebase/ { print \$2 }'";
close($ssh) or die "$!";
open(A_FILE,"a_file");
while(<A_FILE>){
# process each line from the file, just print it in this example...
Hi there,
I've just stumbled over Google Apps Script and, initially, I'm quite taken with it. Is this the forum to learn about it and ask questions or does it differ enough from standard Java script to make it need its own forum really?
Mike
...platform, all of them. You're right about the Unix boxes of course.
But you shouldn't be writing fast scripts anyway :) you should be writing scripts that you can read, that work and can be made to run fast *enough*.... Make it work *then* make it quick.
Mike
http://www.myspace.com/micahhowzat
Hello V
create your log file when the script starts, like this
open(LOG,">>logfile.txt") or die;
print LOG "Log file opened\n";
close LOG;
Each time you want to log something, open the file (for append, like above), write to and close the file. Like this
open(LOG,">>logfile.txt") or die...
Nicely done, so far as I can see. Does it behave as you expect so far? I particularly like the clear layout of the script, v cool and easy to read.
Two things.
1 - the variable $2009, I don't know if that (a variable name made all of digits) will work or not, change to something starting with...
Ok, thanks everyone for the common sense advice.
The one that did the trick for me was goom's http://www.snapfiles.com/get/winsockxpfix.html
All seems to be working nicely - thanks again to everyone and esp. to goom for the advice that worked in thos particular case.
Mike
Mike...
hi all
& thanks for taking the time to reply. I'm working through the advice & will report back.
Thanks again, much appreciated.
Mike
Mike
http://www.myspace.com/micahhowzat
Hello All,
I'me having trouble connecting to http://www.windowsupdate.com/
It resolves and then is redirected to http://update.microsoft.com/windowsupdate/v6/thanks.aspx?ln=en&&thankspage=5 but the server doesn't respond.
I am using IE 8 v8.0.6001.18702
The page ieframe.dll/dnserror.htm is...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.