Search Results

Search: Posts Made By: Dabheeruz
4,905
Posted By Dabheeruz
Remove lines between the start string and end string including start and end string Python
Hi,

I am trying to remove lines once a string is found till another string is found including the start string and end string. I want to basically grab all the lines starting with color [ and...
7,671
Posted By Dabheeruz
Perl and sending file to server
Hi,

I am trying to write some test code for bigger project where my perl script will send file over to server. This is the current SERVER and CLIENT code I have so far. When I type "hi" from...
2,411
Posted By Dabheeruz
CGI , Perl and Trees
I have been trying to get this for weeks now but maybe someone knows or has a snippet of code to display a collapsible tree view.

something like this:

+Yahoo! (http://www.yahoo.com)
...
2,269
Posted By Dabheeruz
I am looking at forking out multiple threads but...
I am looking at forking out multiple threads but don't know how well(or not) they will work for my problem.

Thx all.
2,269
Posted By Dabheeruz
Tailing 2 or more log files simultaneously PERL
Hi,

I am having issue where I have to tail 3 log files continuously (forever) and while I am reading the files , parse them and shove the data into DB. I can do this with one file totally fine...
16,251
Posted By Dabheeruz
Thanks Guys!!
Thanks Guys!!
16,251
Posted By Dabheeruz
printf vs sprintf - perl
I would like to assign the output of printf to a variable in perl , it give me back a "1" instead of the time. How can I stuff the variable with what printf returns?

Here is my code:

...
1,989
Posted By Dabheeruz
Kevin, This is great help. I really really...
Kevin,

This is great help. I really really appreciate you going out of way to help me design better structure in my prog. I am already working on DHTML aspect of this tree view.

Once again. ...
1,989
Posted By Dabheeruz
Thx Kevin but I can't seem to picture how to...
Thx Kevin but I can't seem to picture how to write the structure , populate it and then output it.

So this part of code is going to be part of bigger code , where what I am ultimately trying to do...
1,989
Posted By Dabheeruz
Hashes help in Perl
Hi,

I am stuck at this problem where part of my code would store all the websites that has been accessed by a user. I pull these values from a log file. I want to create a HASH of HASHES ?...
35,579
Posted By Dabheeruz
Ok..I got it to work finally..this is how I did...
Ok..I got it to work finally..this is how I did it:

First user under which apache is running, I enabled for login only to generate the rsa.pub key. Added the rsa.pub key for the user to the...
35,579
Posted By Dabheeruz
Hi, I have tried this already "ssh...
Hi,

I have tried this already "ssh root@172.16.10.12" but it gives me the same result, Permission Denied.

Thx
35,579
Posted By Dabheeruz
How to execute remote ssh command - Perl and CGI
Hi,

I am having nightmare issue-ing remote ssh command from a CGI perl script.
It just won't run on debug message: It says permission denied. Can I even do this? as the apache server running...
7,764
Posted By Dabheeruz
Figured out my answer... finally so in the...
Figured out my answer... finally

so in the console it was working fine but not in web browser..hmm
It was permission issue :(

The permission issue was on the log file ...dohh :( I should've...
7,764
Posted By Dabheeruz
Displaying text file in browser - perl
Don't know why this didn't get posted before but...

I am having issues displaying a log file in the browser using perl and I can't get it to display at all, All i get is WHITE (blank page). I...
4,719
Posted By Dabheeruz
Displaying text file in browser - perl
I am having issue dispalying text file in browser using perl.

Here is my code:

#!/usr/bin/perl

print "content-type: text/html \n\n";

open (FH , "access.log") || die "Blah $!";
while...
6,866
Posted By Dabheeruz
Proxy server/client in Perl
I have been toying with a Proxy client/server app that will listen on the CLIENT system on lets say port 7070. User's browser proxy setting is configured for "localhost" port "7070".
When this...
4,900
Posted By Dabheeruz
You seem to have forgotten the quotes around...
You seem to have forgotten the quotes around variables and numbers :)
17,684
Posted By Dabheeruz
Here is the same in perl: #!/usr/bin/perl ...
Here is the same in perl:

#!/usr/bin/perl

open (FH,"blah.txt") || "die can't open file $!";

while (<FH>) {
last if /Hello/ }

my ($curr, $next1, $next2, $next3)=<FH>;
close FH;
...
17,684
Posted By Dabheeruz
grep -A 3 "Hello" file.txt
grep -A 3 "Hello" file.txt
Showing results 1 to 20 of 20

 
All times are GMT -4. The time now is 01:08 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy