Re: Re: checking if a file is in use

2010-11-02 Thread perl_haxor 123
wrote: > -- Forwarded message -- > From: "shawn wilson" > Date: Nov 2, 2010 3:12 PM > Subject: Re: checking if a file is in use > To: "perl_haxor 123" > > perlmonks has a nice article on file locks in general that might be useful > to you. i a

checking if a file is in use

2010-11-02 Thread perl_haxor 123
Hi All, I have a directory in which i have multiple files, i have to read each one of them and parse the data..but there could be some files which are in use by some other program, how can i find which files are in use by other program in perl?...any suggestions would be really h

how to remove (^M ^G ) characters

2010-10-28 Thread perl_haxor 123
Hi All, I'm a beginner in perl and i try to read a file, but these files contains characters like (^M ^G)..I wanted to know what are these characters and how can remove them using perl?.and also please let me if there is any link form where i can find what these characters are a

Re: parsing a log file with junk characters

2010-07-04 Thread perl_haxor 123
Hi, Thanks a lot for the solution.i'l give it a try. Thanks, Monnappa On Fri, Jul 2, 2010 at 6:29 PM, Chas. Owens wrote: > On Fri, Jul 2, 2010 at 07:59, perl_haxor 123 wrote: > > Hi All, > > > > I have been asked to parse the log file

parsing a log file with junk characters

2010-07-02 Thread perl_haxor 123
Hi All, I have been asked to parse the log file (find the attached file) which logs every keystroke, if you look at the log file you will see lot of characters like RETURN, BACKSCAPE etc etcIs there a way by which i can make sense of this log file, so that i can write a script

Re: stripped output from Net::SSH2

2010-03-11 Thread perl_haxor 123
is there a way to increase the timeout? (i tried setting $ssh->poll(0), but it didn't help)..an example would be really helpful. Thanks, On Thu, Mar 11, 2010 at 4:31 PM, Sisyphus wrote: > > - Original Message - From: "perl_haxor 123" > To: &quo

Re: stripped output from Net::SSH2

2010-03-10 Thread perl_haxor 123
xt"; print OUTPUT "HOST: $_\n\n"; print OUTPUT "$buf\n"; print OUTPUT "\n\n\n"; print OUTPUT "##\n\n"; close OUTPUT; $chan->close(); } Thanks

stripped output from Net::SSH2

2010-03-10 Thread perl_haxor 123
Hi All, I'm using Net::SSH2 module on windows machine, the purpose of this script is to login to multiple devices and execute "show run" command and print the output of the command to a text file, ...the script login to multiple devices and executes "show run" command", reads from t

Re: perl expect script to login to multiple machines

2010-01-05 Thread perl_haxor 123
tried using Net::SSH2 and Net::SSH::Perl and it didn't work for me so i had to use expect. Thanks On Tue, Jan 5, 2010 at 8:30 PM, Salvador Fandino wrote: > perl_haxor 123 wrote: > >> Hi All, >> >> I'm new to perl and facing a problem I'm

perl expect script to login to multiple machines

2010-01-03 Thread perl_haxor 123
Hi All, I'm new to perl and facing a problem I'm using a perl expect script to login to multiple machines (having same username and password) and execute the date command, initially i tested on one machine, it worked fine...but when i use a foreach loop to test the same