Search Results

Search: Posts Made By: mtomar
5,826
Posted By mtomar
vim is present in cygwin by default it can be...
vim is present in cygwin by default it can be found in setup - > EDITOR. Just select VIM and click to set as install. setup will do the rest.
Forum: Programming 05-11-2011
1,535
Posted By mtomar
Migrating Java Gui tool from CLI to web
Hi Experts,

I am practically with nil knowledge of java. I have this new requirement i would like to explore.

there is this java base GUI application which loads GUI and lets user select a...
4,895
Posted By mtomar
@corona awk approach is pretty simple awk...
@corona awk approach is pretty simple

awk '{if ( $1 == "recordstart" )
print " "; ...
4,895
Posted By mtomar
perl text file processing using hash
Hi Experts,

I have this requirement to process large files (200MB+).Format of files is like:
recordstart
val1 1
val2 2
val3 4
recordstart
val1 ...
1,752
Posted By mtomar
Perl FTP navigation
Hi Experts,

I have this requirement to list dirs and files of an FTP server on regular basis.
I was able to do it by following script:

$ftpobj = Net::FTP -> new ("$ftpsrv") || die "Cannot...
Forum: Red Hat 01-16-2011
2,417
Posted By mtomar
Thanks but i need something from which i can...
Thanks but i need something from which i can fetch data from external server to plot graph.
iptraf works fine for local server but i m not able to make graph using cacti.
4,036
Posted By mtomar
@javahater / @jjb1989...
@javahater / @jjb1989 (https://www.unix.com/members/302089326.html)
I am not here to get marks on my scripting skills... they are doing fine for me.
As i already said this was just a quick draft ...
Forum: Red Hat 01-12-2011
2,417
Posted By mtomar
Interface bandwith utilization in Mbps
Hi Experts,

I want to plot graph for interface traffic of redhat machine.
I am having hard time finding where to start. Any tools ?

i found this php script which prints bytes send /...
Forum: Solaris 01-12-2011
8,548
Posted By mtomar
ndd -set /dev/ce adv_autoneg_cap 1 Enables auto...
ndd -set /dev/ce adv_autoneg_cap 1
Enables auto neg.
2,649
Posted By mtomar
try following instead: netstat -na| grep 5152 |...
try following instead:
netstat -na| grep 5152 | grep -i listen >/dev/null
status1=`echo $?`
netstat -na | grep 1200 | grep -i listen >/dev/null
status2=`echo $?`
for status in $status1 $status2...
4,036
Posted By mtomar
Find largest number: declare -a num num=("3"...
Find largest number:
declare -a num
num=("3" "4" "1" "8" "2" "9" "7")
limit="`echo ${#num[@]}`"
check=0
i=0
while [ $i -lt $limit ]
do
if [ $check -lt ${num[$i]} ]; then
check="`echo...
1,706
Posted By mtomar
Here is another approach to arrays declare -a...
Here is another approach to arrays
declare -a testarry
testarry=("11" "22" "33" "44")
limit="`echo ${#testarry[@]}`"
for ((i=0;i<=$limit;i++))
do
echo ${testarry[$i]}
done

output:
11...
Forum: Solaris 01-06-2011
8,548
Posted By mtomar
I have seen this problem when interface choose a...
I have seen this problem when interface choose a lower duplex setting. Generally i use this simple trick.
1. enable auto neg with all options enabled
2. disable all capabilities except...
1,804
Posted By mtomar
j="`perl...
j="`perl /home/mbsprod/agency/hyb_agg_file.pl`"
5,943
Posted By mtomar
It looks like works every time for me, or you...
It looks like works every time for me, or you have some specific requirement.

$ dig -x 68.142.255.16 +short
ns2.yahoo.com.
$ dig -x 68.180.131.16 +short
ns1.yahoo.com.
$ dig -x...
Forum: Solaris 01-05-2011
8,548
Posted By mtomar
Check your duplex setting : $netstat -k ce5|...
Check your duplex setting :
$netstat -k ce5| egrep 'link_speed|link_status|link_duplex'
lp_cap_asmpause 0 lp_cap_pause 0 link_T4 0 link_speed 100
link_duplex 2 link_asmpause 0 link_pause 0...
22,807
Posted By mtomar
For Sun: # prtdiag | grep System System...
For Sun:
# prtdiag | grep System
System Configuration: Sun Microsystems sun4u Netra 240For Linux (Most Flavours)
# dmidecode | grep "Product Name"
Product Name: ProLiant DL380 G3
60,638
Posted By mtomar
Simple .. you answer in your question itself $...
Simple .. you answer in your question itself
$ date "+%R"
21:25
$ date "+%R" -d "5 mins ago"
21:20:)
5,943
Posted By mtomar
I think what u are looking for is this : #...
I think what u are looking for is this :

# dig -x 67.195.160.76 +short
ir1.fp.vip.ac4.yahoo.com.

dig -x 67.195.160.76

; <<>> DiG 9.7.0-P1 <<>> -x 67.195.160.76
;; global options: +cmd
;;...
7,903
Posted By mtomar
dig query time
Hi Guys,

I just need a confirmation if what think i know is right .

dig yahoo.com

; <<>> DiG 9.7.0-P1 <<>> yahoo.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode:...
Forum: Solaris 12-21-2010
4,871
Posted By mtomar
you have to configure and run bind if you wish to...
you have to configure and run bind if you wish to do nslookup. hostname in file can be cross checked by doing a ping / telnet etc etc. nslookup will try to get it via dns db file not file(/etc/hosts)...
Forum: Hardware 12-17-2010
2,451
Posted By mtomar
Raid 0 for database is not good option. if you...
Raid 0 for database is not good option.
if you have enough resources .. its always good to go with raid 1+0
or raid 5.
2,241
Posted By mtomar
Hope its not too late : du -skh /home/* >...
Hope its not too late :

du -skh /home/* > /tmp/usr_usage.tmp
echo " Login name User Full Name Used Space"
while read line
do
Usage=`echo $line | awk '{print $1}'`
User=`echo $line | awk...
17,527
Posted By mtomar
here is working example with awk echo $var |...
here is working example with awk

echo $var | awk '{print substr($0,length($0)- 6,length($0))}'

echo 1ddddddddddddddddddddddd1111111234567 | awk '{print substr($0,length($0)- 6,length($0))}'...
4,829
Posted By mtomar
for ((i=1;i<=1000;i++)) do for...
for ((i=1;i<=1000;i++))
do
for ((j=1;j<=1000;j++))
do
echo "aaaa/bbbb/${i}-${j}.txt" >> outputFile
done
done
Showing results 1 to 25 of 72

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