Search Results

Search: Posts Made By: ponmuthu
3,302
Posted By ponmuthu
Shell output with plot a tree structure.
Hi All,

i am in need of plotting graph ( tree structure ) depends upon my shell script output.

For this requirement, what kind of open source avail in market.


For example: (my...
Forum: Red Hat 01-08-2011
5,742
Posted By ponmuthu
how to call a particular function from one shell another shell script
please help me in this script

shell script :1
***********
>cat file1.sh

#!/bin/bash

echo "this is first file"

function var()
{
a=10
b=11
}

function var_1()
{
c=12
d=13
Forum: Red Hat 01-04-2011
3,203
Posted By ponmuthu
thanksssssssssssssssssssssssssss ctsgnb ...
thanksssssssssssssssssssssssssss ctsgnb

---------- Post updated at 03:29 PM ---------- Previous update was at 03:25 PM ----------

but it is checking first 2 digit aftr ( . )

i need to...
Forum: Red Hat 01-04-2011
3,203
Posted By ponmuthu
actually i am check version of package that...
actually i am check version of package
that version is like that 0.0.0.0 format


how can i compare this !!!!
Forum: Red Hat 01-04-2011
3,203
Posted By ponmuthu
please help me in if command problem
Please help me this script !!!!

Script
*****

a=2.0.0.0
b=1.0.0.0
#if test $a -ge $b
if [ "$a" -ge "$b" ]
then
echo "A is Greater than B"
else
echo "B is Greater than A"
fi


i...
Forum: Infrastructure Monitoring 10-01-2010
3,637
Posted By ponmuthu
thank u Corona688 & verdepollo ...
thank u Corona688 & verdepollo

verdepollo ji is it possible ? to create my own check_.. in nagios .
Forum: Infrastructure Monitoring 09-27-2010
3,637
Posted By ponmuthu
Nagios: How to read the Linux system file?
hi 2 all

i installed nagios in my linux srvr . check_ftp file is in format of system format .

i wants to see the syntax for that script

how can i read that file .. ???
please help me !
7,900
Posted By ponmuthu
this is explaination of sed with example ...
this is explaination of sed with example


OTP-ARB:/home/oaa=>sed 's/a/ponmuthu/g' abc
ponmuthu
b
c
d
r
e
bd
fdf
df
df
OTP-ARB:/home/oaa=>sed 's/b/ponmuthu/g' abc
a
ponmuthu
c
d
r
2,133
Posted By ponmuthu
No Once i execute that file i want content of...
No Once i execute that file
i want content of that file hav to come in console ...

in that file ` ls ` cmd is thr na ..

>./abc
>ls
abc def

so that content hav to come in console...
2,133
Posted By ponmuthu
ya abc file is executable -rwxr-xr-x 1 oaa...
ya abc file is executable

-rwxr-xr-x 1 oaa omnesys 8 Sep 16 10:55 abc


if i run that file

i am getting like this

OTP-UAT:/home/ponmuthu=>./abc
Thu Sep 16 10:56:13 IST 2010
abc ...
2,133
Posted By ponmuthu
Console Input from a file
hi 2 all

whatever in a file that line have to come in console screen .. when i execte that script ...

>cat abc
date
ls

>./abc
>date ---->that line hav to come here
> ls ---->...
1,555
Posted By ponmuthu
doubt in df -h
in my parition i hav parition like this

Filesystem Size Used Avail Use% Mounted on
/dev/sda2 24G 22G 756M 97% /
/dev/sda5 248G 1.2G 234G 1% /else...
4,872
Posted By ponmuthu
can u explain this cmd sed -n "1,$(echo...
can u explain this cmd

sed -n "1,$(echo "`sed -n '$=' al` - 3" |bc) p" infile

i can't understand whr we hav to give file name
1,120
Posted By ponmuthu
thanks to hari
thankssssssssssssss:b:
1,917
Posted By ponmuthu
hi jam crontab hav 6 fields min ...
hi jam

crontab hav 6 fields

min hour day month weekday <filename>


minute Minute of the hour 0 to 59
hour Hour of the day 0 to 23
day Day of the month 1 to 31
month...
1,120
Posted By ponmuthu
case-function issue
This is my code
***************

#!/bin/bash
echo -e "no: \c"
read no
case $no in
1)fun;;
*)echo "wrong";;
esac

fun()
{
echo "in"
}



this is my output error...
4,872
Posted By ponmuthu
Delete some lines in a file
hi i need to delete 3 lines (last 3 lines ) in a file


for ex :

>cat file
1
2
3
4
5
abc
def
ghi


i hav to delete last 3 line in above file

please help me
1,380
Posted By ponmuthu
Uncompression file problem
hi
i get .gz file from internet

when i uncompress that file i getting wrong file fatmat


for ex :

file name x.gz
inside x.gz ---> file name is abc.bat


when i uncompresss...
2,016
Posted By ponmuthu
File handling
my input for a script is another csv file
but in that file say 7 lines are there ...
how can i get line by line to that input


for example :
>cat link.csv
www.yahoo.com,yahoo...
2,382
Posted By ponmuthu
Please help me in tcl/tk
i am new one to tcl/tk

OTP-ARB:/home/ponmuthu/tcl=>/usr/bin/tclsh
tclsh tclsh8.4
OTP-ARB:/home/ponmuthu/tcl=>/usr/bin/tclsh
% wish
Application initialization failed: no display name and...
1,502
Posted By ponmuthu
please help me in file handling
sir i have to get first line from a file
for example

>cat file1
abc
zxc
asd
adsf

from that file1 i need only first line

expected result
>abc

please help me !
10,703
Posted By ponmuthu
thank you dr.house
thank you dr.house
10,703
Posted By ponmuthu
is there any direct cmd to get single column ???/
is there any direct cmd to get single column ???/
10,703
Posted By ponmuthu
need to get single column form csv file
hi 2 all

i need to get single column from one csv file

anyone help me !

>cat file.csv
name,age
x,1
y,2
z,3


Use code tags please, ty.

in this "file.csv" file i need only...
Forum: Red Hat 07-12-2010
5,922
Posted By ponmuthu
Thank
Thanks man :o:o
Showing results 1 to 25 of 26

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