Man I hate threads. My question is, when is something ADDED to the queue? And when you do add something, are you sure you're not adding null?
Basically we need to see the producer code as well.
(all considering I counted line 21 right)
I Agree fully on the StringTokenizer idea. It was stated somewhere that the tokenizer is actually the prefered way to doing it.
http://java.sun.com/j2se/1.5.0/docs/api/java/util/StringTokenizer.html
An example:
import java.util.StringTokenizer;
public class test
{
public static voic main...
String Tokenizer and split are just going to return to you everything that isn't a delimeter.
so if you use ',' as a delimeter then yes, you will get Field1 Field2 and Field4.
Without actually going through each character yourself I don't THINK there is a way to do this. It may be eaiser just...
I've copy and pasted your program and I've gotten no such error. (I get file not found..no surprise there).
What version of Java are you running?
How are you running the command?
java ListMod
is correct.
If you don't use Net::SSH::Perl then why not just use a shell script instead?
You could set up a public/private key system to bypass the tty password and then run the commands one at a time through the script.
I found the Net::SSH::Perl to be useless in what I needed so I went for that route...
I figured out this neat little trick while trying to do about the same thing. This works in *nix but I don't know about doze.
[code]
open(LSOUT, "ls |");
while(my $line = <LSOUT>)
{
print "OMG $line";
}
close(SNMP);
[code]
think that works with ERR too. Cheers.
http://java.sun.com/j2se/1.5.0/docs/api/java/util/GregorianCalendar.html
You might want to consider using this and then using the GET Function to compare past times with present times, ect.
Might make it eaiser. :>
And if you don't like regular expressions you can also do this:
sub commify {
my $text = reverse $_[0];
my @digits = split('', $text);
my $ct = 0;
my $result = "";
foreach my $num (@digits)
{
if($ct == 3)
{
$result = "," . $result;
$ct = 0;
}
$result =...
I would use a program called perl2exe.
It's free and it will create your perl files into an exe program that you can take to any windows machine. I was going to use it for a program of mine but switched to java instead (since it has the JVM).
p2x-8.60-Win32
is the version I have.
Well it was going so well until I actually tried to install the SSH modules.
I now HAVE to have this utility that they are asking for and unfortiontly I get the same error over and over again. I could really use some help on this.
Line 214 is the same as the thing at the top and I'm unsure of...
I'm getting an error message as in install a perl module onto the system that states 'as: Command not found'
From what I can tell this is an avr-gcc type command but so far I've found no where where I can actually download it.
Can someone please point me in the right direction x.x;
Well what I've done for a quick fix as of right now is changed the Module itself. It's only trying to reduce the number of references and since I'm not concerned about space presently I'm not worried about it. However it brings up another msg everytime that states
"Useless use of hash element...
I THINK this is the line. I found an install.pm in the inc/module (which is where it is listed and here is what it said under the #line 210 part:
sub call {
my $self = shift;
my $method = shift;
my $obj = $self->load($method) or return;
unshift @_, $obj;
goto...
I'm presently trying to install Scalar::Util through CPAN as well as manually and I continue to get the same error
Running [/usr/bin/perl Makefile.PL ]...
Can't call method "load" on an undefined value at inc/Module/Install.pm - /Users/gbarr/Library/Perl/Module/Install.pm line 214.
[ERROR]...
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.