Re: print output on console at runtime

2011-07-12 Thread Chandrashekar Bhat
You can use system command inside perl system(" find . -iname 'abc'"); -- Shekar On Wed, Jul 13, 2011 at 11:16 AM, Irfan Sayed wrote: > hi, > > i need to print the output of a command on the console at runtime > lets say, i need to execute find command .as of now , what i am doing is , > > @cmd

Re: TS UDP packet capture using Perl.

2011-03-25 Thread Chandrashekar Bhat
Hi Ted, Thank you for the reply. Will look into 'dvbsnoop'. Thanks, Shekar On Fri, Mar 25, 2011 at 12:28 PM, Ted Mittelstaedt wrote: > what about dvbsnoop that is command line? > > Ted > > > On 3/24/2011 10:43 PM, Chandrashekar Bhat wrote: > >> Hi

TS UDP packet capture using Perl.

2011-03-24 Thread Chandrashekar Bhat
Hi All, I am looking for something capturing UDP packet on a server. These are MpegTS packets, which will have TS data, PAT/PMT and Video Audio PIDs. I am able to check that packets are coming fine or not using tcpdump. system(" tcpdump -v -i eth1 dst 227.1.1.0 > file.txt & "); m

Re: Need help in Learning

2010-11-26 Thread Chandrashekar Bhat
Hi Umashankar, Below links may be useful. http://www.perl.com/pub/2000/10/begperl1.html http://computer.howstuffworks.com/perl.htm http://docstore.mik.ua/orelly/perl/prog3/ch01_01.htm http://www.pageresource.com/cgirec/index.html http://perl.plover.com/IAQ/IAQlist.html Thanks, Chandrashekar

Re: Check if file is open in unix

2010-11-23 Thread Chandrashekar Bhat
This might be useful... __CODE__ use Fcntl qw/O_WRONLY O_CREAT O_EXCL/; open(FH, "<", $file) or sysopen(FH, $file, O_WRONLY | O_CREAT | O_EXCL) or die "can't create new file $file: $!"; __CODE__ Thanks, Chandrashekar On Tue, Nov 23, 2010 at 5:31 PM, Gopal Karunakar wrote: > Hi All, >

Re: finding duplicates in txt file

2010-11-10 Thread Chandrashekar Bhat
Can you display the contents of the file... Thanks, Chandrashekar On Wed, Nov 10, 2010 at 6:28 PM, Natalie Conte wrote: > HI, > > I have to find triplicates ProbeName $arg[8] in a txt file and > calculate a mean of their associated valueProbe $args[13] > > At the end my txt file has to cont

Re: Database table load utility

2010-11-09 Thread Chandrashekar Bhat
How about DBI ? I am not sure of ORACLE, but i have used DBIfor mysql (similar kind of project), only connector will be different i believe. Thanks, Chandrashekar On Tue, Nov 9, 2010 at 1:09 AM, Parag Kalra wrote: > >>I'm in the thinking stage

Re: Chomp help...

2010-11-09 Thread Chandrashekar Bhat
Or chomp($VARNAME); # If you are sure enough of variable name. Thanks, Chandrashekar On Tue, Nov 9, 2010 at 3:05 AM, Bobby wrote: > Awsome, regex worked! My head was stuck on chomp...Thanks Sheppy. > > > > From: Sheppy R > To: Bobby > Cc: beginners@perl.o

Re: Perl perl recursive list ftp files

2010-11-09 Thread Chandrashekar Bhat
Or you can add 26.my $dir = $_[0]; > die qq{ Please pass the directory name...} if (! -d "$dir");# Test whether you are getting actual directory >27.if ($dir =~ m/^d/){ >28. $ftp->cwd("$dir") or die "Error" >29.. (This loca