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
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
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
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
[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
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
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
>
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
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
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
> -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
[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
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
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
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
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
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
> [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
[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
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
[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
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
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
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
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
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
26 matches
Mail list logo