RE: This perl script not runing

2001-12-11 Thread Dutrieux Yves
What do you mean with "it's only run if I login in linux first" ? Do you mean you execute the script in background with a cron ? Do you have the same environment variable when the script is in background ? What kind of error do you have ? Yves -Message d'origine- De: Marcelo

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 Re

RE: Perl Database

2001-12-11 Thread kbatzer
Start by looking at Microsoft Access. You can create data stores (Text and Numerical) in Access Database Tables. You can use and Win32::ODBC to gain access to Microsoft Access Databases. Start by looking at examples at http://www.roth.net Kirk -Original Message- From: [EMAIL PROTECTED

RE: alternative to cmd.exe

2001-12-11 Thread Christopher J. Mackie
If you've set up 4NT to replace your shell, you shouldn't see this. If you're seeing it, and you think you've set 4NT up as a replacement, then something's wrong and you need to check the registry. If you're just running 4NT as an independent app, you can try JPSoft's tech support website. They

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 cm

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

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.

RE: Perl Database

2001-12-11 Thread Carlos Guillen
The Win32::ODBC module may also be of use, although I personally prefer DBI. -Original Message- From: Simon Oliver [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 11, 2001 7:29 AM To: Jarrod Ramsey Cc: '[EMAIL PROTECTED]' Subject: Re: Perl Database Jarrod Ramsey wrote: > > Hi, >

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

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 > > > Cod

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 l

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 () {         $sBody .= ;     } (which appears to be appendi

Re: File I/O Question

2001-12-11 Thread Dirk Bremer
Jarrod, Where do you open the directory that you attempt to read? Note the following code: next unless ( open(FIL, "$file")); # This statement does not read a line, it just opens the file. $sRecp = ; # Why do you do this? Do you always want to skip the first line of the file? while () {pri

Re: Perl Database

2001-12-11 Thread Simon Oliver
Jarrod Ramsey wrote: > > Hi, > I've never messed with using a Database with Perl, so I don't even > know where to start. I'm trying to put information in a Microsoft Database > through Perl. Some is text, some is numerical. I would appreciate any > help. Use the perl DBI (Database int

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: Perl-Win32-AdminSubje

RE: File I/O Question

2001-12-11 Thread Timothy Johnson
>From what I understand, each time you perform an operation on , you are reading in one line of that filehandle and setting the file up to read the next line. You are calling the filehandle way too much. For example: open(FILEHANDLE,"myfile.txt"); $file1 = ; #gets first line $file2 = ; #gets

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 y