Socket Problem

2005-08-31 Thread Jeff Pan
HI, I have a pair of C/S socket scripts running for a long time,without any problem.There is just one server,and more than 120 clients,which all run on linux box. This day,beacuse of our network blocking,which mean many lost packages,my server script became incorrect.It fork more than 1000 child p

Re: Need help... packages

2005-08-31 Thread Luinrandir
my alternative is this, in the program: @[EMAIL PROTECTED]::Countries; foreach $Country(@Countries) { if ($Country eq "Ireland") [EMAIL PROTECTED]@NameList::IrelandLord} if ($Country eq "Wales") [EMAIL PROTECTED]@NameList::WalesLord} print @Lords; } but th

Need help... packages

2005-08-31 Thread Luinrandir
OK.. maybe I'm trying to be too fancy. the package is: ### package Names; @Countries("Ireland","Wales"); %Lord{Ireland}=("Bob","Tom"); %Lord{Wales}=("Ted","Ned"); return 1; # the program is: ### foreach $Country(@Names::Countries) { print qq|$Na

tricky list comparison problem

2005-08-31 Thread Jason Ross
Hello. I'm having a bit of an issue with a script I'm working on. The goal is to parse the output of the solaris `prtvtoc` command and do some things based on it. I've got that part down, and am placing the bits I care about into a hash which is best written (I think ... ) as : $partition

Re: GUI-based menu-ing script for UNIX

2005-08-31 Thread Daniel Kasak
[EMAIL PROTECTED] wrote: Is there any easy to customize GUI-based menu-ing script for UNIX? I currently have a text-base menu program for gluing my applications, and I am interested in putting in revising it to a GUI-based (for a change). Currently I am looking at aumenu, which according to t

Re: Please Help!!! Newbie question

2005-08-31 Thread Eric Walker
On Wednesday 31 August 2005 09:12 am, Perl wrote: > I am new to perl so I need some help from the list with this script. It > takes a value from command line and then returns afters processing. > For example, If value is "c:\projects\test 2005.txt" the script will > returns it as "test" (actually o

RE: Please Help!!! Newbie question

2005-08-31 Thread Bakken, Luke
Perl wrote: > I am new to perl so I need some help from the list with this script. > It takes a value from command line and then returns afters processing. > For example, If value is "c:\projects\test 2005.txt" the script will > returns it as "test" (actually omitts any space in the directory or >

Please Help!!! Newbie question

2005-08-31 Thread Perl
I am new to perl so I need some help from the list with this script. It takes a value from command line and then returns afters processing. For example, If value is "c:\projects\test 2005.txt" the script will returns it as "test" (actually omitts any space in the directory or file name) while I wan

Re: CGI execute command via ssh

2005-08-31 Thread William . Ampeh
2 things could be happening: 1./ Timeout 2./size of your descriptors. That is:on a "?nix" platform type limit You see something like: william:/foobar(1)% limit cputime unlimited filesizeunlimited datasizeunlimited stacksize 10240 kbytes cored

RE: Numeric sort warning

2005-08-31 Thread Timothy Johnson
My guess is that it is because you are forgetting to strip the newline character from each line of the file before you do your sort. my @file = ; chomp @file; #<--- insert this line But don't forget that if you do this, you'll have to put the newlines back in before you print it the results to t

RE: Win32::EventLog - Missing Events

2005-08-31 Thread Ryan Frantz
> -Original Message- > From: Ryan Frantz > Sent: Wednesday, August 31, 2005 11:57 AM > To: beginners@perl.org > Subject: Win32::EventLog - Missing Events > > Perlers, > > > > I'm working on a script to check the application log on one of my > servers for a specific event using Win32::Ev

RE: can any body tell me how to remove quotes from a name.

2005-08-31 Thread Bob Showalter
[EMAIL PROTECTED] wrote: > Could any body tell me how to get mayank from 'mayank' $var =~ tr/'//d; > sp. by map or grep command Those functions are not appropriate to the problem as you've described it -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROT

Re: can any body tell me how to remove quotes from a name.

2005-08-31 Thread Scott Taylor
Eric Walker said: > if the 'mayank' is in a text file, then > cat file | sed s/\'//g > newfile > > this should do it I think. LMAO - Nice, for a top poster, > On Wednesday 31 August 2005 03:42 am, [EMAIL PROTECTED] wrote: >> Hi all >> Could any body tell me how to get >> mayank

RE: Win32::OLE question(s)

2005-08-31 Thread Timothy Johnson
You should be able to use the Win32::OLE::Variant module to extract the date. Do a 'perldoc Win32::OLE::Variant' and check out the Date() method. -Original Message- From: Tim [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 30, 2005 2:13 PM To: beginners@perl.org Subject: Win32::OLE que

Numeric sort warning

2005-08-31 Thread anu p
Note: forwarded message attached. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --- Begin Message --- Hi, I have written a simple script that does numeric or ascii sort based on the comman

Re: can any body tell me how to remove quotes from a name.

2005-08-31 Thread Eric Walker
if the 'mayank' is in a text file, then cat file | sed s/\'//g > newfile this should do it I think. On Wednesday 31 August 2005 03:42 am, [EMAIL PROTECTED] wrote: > Hi all > Could any body tell me how to get > mayank > from > 'mayank' > sp. by map or grep command > (means I just w

Win32::EventLog - Missing Events

2005-08-31 Thread Ryan Frantz
Perlers, I'm working on a script to check the application log on one of my servers for a specific event using Win32::EventLog. For some reason, I don't get all of the event entries returned. In this case I have 1196 entries, but only 353 are output by the script (so says $log->GetNumber and w

RE: :Oracle installation script assumes oracle is installed local ly?

2005-08-31 Thread brian . barto
> [EMAIL PROTECTED] wrote: > > Hi all. I am attempting to install DBD::Oracle from the perl CPAN > > shell. The installation script seems to assume that oracle is > > installed locally. It asks me to set ORACLE_HOME to the path the > > oracle is installed and to try again. Well I don't have oracle

RE: :Oracle installation script assumes oracle is installed local ly?

2005-08-31 Thread Bob Showalter
[EMAIL PROTECTED] wrote: > Hi all. I am attempting to install DBD::Oracle from the perl CPAN > shell. The installation script seems to assume that oracle is > installed locally. It asks me to set ORACLE_HOME to the path the > oracle is installed and to try again. Well I don't have oracle > installe

RE: Win32::OLE question(s)

2005-08-31 Thread Bakken, Luke
Bakken, Luke wrote: > Tim wrote: >> Hello. >> >> The following code produces the output below. The first column should >> be a date. This happens whether the "valof" function is used or not. >> Anyone have any Variant tricks? >> >> Thanks. >> Tim > > Read up on the Range property and Cells prope

Re: DBD::Oracle installation script assumes oracle is installed local ly?

2005-08-31 Thread Scott Taylor
[EMAIL PROTECTED] said: > Hi all. I am attempting to install DBD::Oracle from the perl CPAN shell. > The installation script seems to assume that oracle is installed locally. It > asks me to set ORACLE_HOME to the path the oracle is installed and to try > again. Well I don't have oracle installed

RE: Win32::OLE question(s)

2005-08-31 Thread Bakken, Luke
Tim wrote: > Hello. > > The following code produces the output below. The first column should > be a date. This happens whether the "valof" function is used or not. > Anyone have any Variant tricks? > > Thanks. > Tim Read up on the Range property and Cells property. http://msdn.microsoft.com/li

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

DBD::Oracle installation script assumes oracle is installed local ly?

2005-08-31 Thread brian . barto
Hi all. I am attempting to install DBD::Oracle from the perl CPAN shell. The installation script seems to assume that oracle is installed locally. It asks me to set ORACLE_HOME to the path the oracle is installed and to try again. Well I don't have oracle installed locally. I want to install DBD::O

can any body tell me how to remove quotes from a name.

2005-08-31 Thread mayank . ahuja
Hi all Could any body tell me how to get mayank from 'mayank' sp. by map or grep command (means I just want to remove the single quotes. tht's it) thankx n with regards Mayank Ahuja Assistant System Engineer Tata Consultancy Services Limited Ph:- 044-5816 Cell:- 92831994

Win32::OLE question(s)

2005-08-31 Thread Tim
Hello. The following code produces the output below. The first column should be a date. This happens whether the "valof" function is used or not. Anyone have any Variant tricks? Thanks. Tim my $Excel = Win32::OLE->GetActiveObject('Excel.Application') || Win32::OLE->new('Excel.Application