Search Results

Search: Posts Made By: nrbhole
Forum: Web Development 07-07-2012
2,317
Posted By nrbhole
Autologin Shell
Hello friends,

I'm working on portal for Auto login servers without asking for credentials. Credentials are stored in database/file. Script fetches credentials from db/file and autologin the...
2,134
Posted By nrbhole
My issue resolved with the help of above RE's ...
My issue resolved with the help of above RE's
Thanks all of you for your help.
2,134
Posted By nrbhole
HTML code remove
Hello,

I have one file which has been inserted intermittently with HTML web page.
I would like to remove all text between "<html xmlns="http://www.w3.org/1999/xhtml">" and </html> tags.
Can any...
8,827
Posted By nrbhole
Thanks ripat. Your solution works for me. :)
Thanks ripat. Your solution works for me. :)
Forum: Infrastructure Monitoring 09-11-2009
3,382
Posted By nrbhole
Allow specific hosts for snmp trap
I want to receive snmp traps only from specifis ip's or host.
I tried to get help from VACM , but it's complicated. Can any one please suggest me simple way to do it
8,827
Posted By nrbhole
My part of php code is as follows // Get...
My part of php code is as follows


// Get all ip's from router traffic data
$all_ips = read_file($all_traffic);

$local_ip = preg_grep("/10.10.10.*/",$all_ips);

//Remote ips are ip...
8,827
Posted By nrbhole
Thanks anchal My perl problem solved using your...
Thanks anchal
My perl problem solved using your solution.however it's not working in php.
Some times i need to switch to php script. So i also need solution for php
8,827
Posted By nrbhole
Perl grep require regular expression. I think...
Perl grep require regular expression.
I think "grep -v" option given by sunpraveen will work only on shell.
I am using php function like preg_grep("/^(10.10.10.*)/",$ip_array).
So it requires...
8,827
Posted By nrbhole
Franklin thanks for your reply. I forgot to...
Franklin thanks for your reply.
I forgot to mention that , i am using regular expresion in perl and php.So awk solution will not work for me.
8,827
Posted By nrbhole
Perl regular expression for exclude specific ip range
I need regular expression for excluding specific range.
e.g. Input Data is

10.10.10.50
67.172.15.15
10.10.10.15
78.122.105.108

I would like to extract only 67.172.15.15 & 78.122.105.108....
1,907
Posted By nrbhole
After trying lot i got solution.... sed -e...
After trying lot i got solution....

sed -e "s|\\\|\/|"

It's working fine. Is there any alternate solution
1,907
Posted By nrbhole
Replace "\" with "/"
I want to replace "\" backward slash with forward slash. my data is ..

\apache\logs\access.log

and i want like...

/apache/logs/access.log

How can i do this with sed. I tried using...
15,948
Posted By nrbhole
Hi, I need this for monitoring the server...
Hi,

I need this for monitoring the server ports. If any of the port seems to be down then send the alert using mail or message
15,948
Posted By nrbhole
port scan shell script
Hi,

Can any one please suggest me commands for making port scan shell script.
19,056
Posted By nrbhole
Hello friends, Thanks for your reply. I...
Hello friends,

Thanks for your reply.
I tried for dos2uix folder/*.* > text, 2>/dev/null, but none of them worked

Actually it's not error. I need to avoid output like.
dos2unix: converting...
19,056
Posted By nrbhole
redirect output of dos2unix command
hi

I want to suppress the output of dos2unix command in my shell script. I'm using follwing command in my script

dos2unix somefile >/dev/null

But it's still showing output while executing...
11,431
Posted By nrbhole
Thanks ghostdog74 for the solution.
Thanks ghostdog74 for the solution.
11,431
Posted By nrbhole
find subdomain in url
I want to find out subdomains in the url using shell script.
e.g
narendra.eukhost.com
abc.domainname.co.uk

I want to extract narendra & abc from the above urls.
Please any one can suggest idea...
10,598
Posted By nrbhole
Thanks Yogesh I have almost 3000 blocks in this...
Thanks Yogesh
I have almost 3000 blocks in this file. I have another list file which contain list of zone names e.g. pqr,abc,bzs.
I am using awk to run your sed command for each zone in list file...
10,598
Posted By nrbhole
Delete blocks of lines from text file
Hello,

Hello Firends,
I have file like below. I want to remove selected blocks say abc,pqr,lst. how can i remove those blocks from file.

zone abc {
blah
blah
blah }

zone xyz {
blah...
1,703
Posted By nrbhole
awk & sed problem
Hello,

I am new to shell scripting. I want to optimize my one of the script.
I have one file and i want to remove selected zones for domains from that file.In this file i have almost 3500 zones...
Showing results 1 to 21 of 21

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