Re: File I/O Question

2001-12-11 Thread $Bill Luebkert
Jarrod Ramsey wrote: This is a pain for me to deal with, maybe its my method or the way I'm reading the file, but when I open a file, it reads only every 4th line. The way I thought it was set up, it should only read one line at a time. Please look at the code below and help me out if you

RE: Add user right

2001-12-11 Thread rothd
Title: Message Win32::Lanman let's you assign rights to users. There is a specific right that allows the user to change the system time. -Original Message-From: Seth Lipscher [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 8:36 PMTo:

RE: File I/O Question

2001-12-11 Thread Gary MacDonald
Title: RE: File I/O Question Without knowing the exact composition of your input file, it's difficult to infer what you're trying to accomplish. But, there's at least one obvious problem. Try replacing while (FIL) { $sBody .= FIL; } (which appears to be appending every second line

alternative to cmd.exe

2001-12-11 Thread Ivano Di Domenico
In our environment, we are using 4NT to get around some DOS issues that W2K has problems with, or we haven't dealt with. What I found is that when a PERL job is run in a 4NT environment, it runs using the CMD.EXE instead of 4NT.EXE. Is there a way in PERL to tell it to use a different command

RE: :SNMP error

2001-12-11 Thread Martin Schneider
Mike, I get the same error from the original code. Please test the 2 changes shown in-line below. Martin -Original Message- From: Mike Singleton [mailto:[EMAIL PROTECTED]] Sent: December 10, 2001 11:10 AM To: [EMAIL PROTECTED] Subject: Net::SNMP error Code:

This perl script not runing

2001-12-11 Thread Marcelo A. Oliveto
Hello: I have a problem with this perl script because it's not running well in linux. It's only run if i login in linux first. Anybody can help me. Thanks, and sorry for my english. #!/usr/bin/perl $DEFAULT = "170.210.254.1";$BASE = 100;$IP = "/sbin/ip"; open RULE,

parsing question

2001-12-11 Thread Mike Singleton
How would I parse this output to html and only include the last word after the = ? using the following code? Code: See attached script Output: 1.3.6.1.4.1.9.10.19.1.3.1.1.3.96908838.0 = fac922 1.3.6.1.4.1.9.10.19.1.3.1.1.3.97214883.0 = fac972 1.3.6.1.4.1.9.10.19.1.3.1.1.3.97299103.0

RE: File I/O Question

2001-12-11 Thread Jarrod Ramsey
Title: RE: File I/O Question Thanks to all that sent a response. I wasn't aware that using file handles, even as references, would read the line. From all of the suggestions, I think the code below is the better method for this instance. For instances where the $_ isn't available for file

RE: alternative to cmd.exe

2001-12-11 Thread Timothy Johnson
I would guess that it is getting the shell to run under from $ENV{'COMSPEC'}. You could try changing that environment variable. -Original Message- From: Ivano Di Domenico [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 11, 2001 7:39 AM To: [EMAIL PROTECTED] Subject: alternative to

killing object/process in 5 sec ,if not completed

2001-12-11 Thread Veeraraju_Mareddi
Dear Team, Is there any way to kill a process/Object in a specified time ,if it is not completed for Windows NT?. Even doing some other action is also helpful, when it is not finished in a finite time. Please tell me your valuable suggestions . Thank you each every one of you.. With Best