Search Results

Search: Posts Made By: meetmano143
Forum: Filesystems, Disks and Memory 11-20-2008
4,959
Posted By meetmano143
Linux data replication solutions.
Can any one help in listing out the data replication solutions that are available on linux.

I can try couple

1.DRDB
2. Rsync

Can any one help ?
Thanks,
Mano
35,027
Posted By meetmano143
Oh ya !!! Great I got it with ./rpomon.sh... ...
Oh ya !!! Great I got it with ./rpomon.sh...

I dont know how does it matter ?? Can you explain ??
35,027
Posted By meetmano143
Can you explain ur changes ?? I tried with the...
Can you explain ur changes ?? I tried with the same, str is printed as a blank line. :(

Your so helpful.. Taking so much time off.

Thanks very much
35,027
Posted By meetmano143
I think the Field seperator is actullay should be...
I think the Field seperator is actullay should be FS=" ".

As /tmp/temp.txt will just contain numbers in each line which get updated continously.. No characters inside.

Am I right ?
35,027
Posted By meetmano143
And This was there other script suggested by...
And This was there other script suggested by LifeGeek

mano-desktop:/usr/local/mano$ cat rpomon.sh

#!/bin/sh

FIRST=`awk 'BEGIN{FS="l";OFS=" "}NR==1{print $1}' /tmp/temp.txt`
SECOND=`awk...
35,027
Posted By meetmano143
mano-desktop:/usr/local/mano$ uname -a Linux...
mano-desktop:/usr/local/mano$ uname -a
Linux mano-desktop 2.6.24-19-generic #1 SMP Wed Jun 18 14:43:41 UTC 2008 i686 GNU/Linux

mano-desktop:/usr/local/mano$ which ksh



This file get updated...
35,027
Posted By meetmano143
I presume its a 'l' "small L" With this...
I presume its a 'l' "small L"

With this script I'm facing the same problem

Im not able to see the $str printed on the screen.

output :

1226051203
1226051162

/usr/local/mano$

Im...
35,027
Posted By meetmano143
I used this script.. The output was 0... FIRST...
I used this script.. The output was 0... FIRST and SECOND variables are not printed at all.
35,027
Posted By meetmano143
Im very sorry.. for that typo I copy pasted...
Im very sorry.. for that typo

I copy pasted the above program..

The following is output :

/usr/local/mano$ sh rpomon.sh


0


FIRST and SECOND ... were not printed.. the result was...
35,027
Posted By meetmano143
Im very sorry.. for that typo I copy pasted...
Im very sorry.. for that typo

I copy pasted the above program..

The following is output :

/usr/local/mano$ sh rpomon.sh


0


FIRST and SECOND ... were not printed.. the result was...
35,027
Posted By meetmano143
Ok.. I understand I messed up ... I...
Ok.. I understand I messed up ...

I started clean again .. Below is the script

/usr/local/mano$ cat rpomon.sh


FIRST=`awk 'BEGIN{FS="|";OFS=" "}NR==1{print $1}' /tmp/temp.txt`...
35,027
Posted By meetmano143
Sorry .. That was typo... The output of the...
Sorry .. That was typo... The output of the script is blank... This any thing on to the screen
35,027
Posted By meetmano143
The above gives the following output ...
The above gives the following output

rpomon.sh: 21: =0: not found
35,027
Posted By meetmano143
I presume.. This following is the script you...
I presume.. This following is the script you meant by ??

#!/bin/sh

awk 'NR<=2{print $1}' FS='|' OFS=' ' /tmp/temp.txt |read FIRST SECOND
echo $FRIST
echo $SECOND
ress=$(( FIRST + SECOND ))...
35,027
Posted By meetmano143
#!bin/ksh > awk 'NR<=2{print $1}' FS='|' ORS='...
#!bin/ksh
> awk 'NR<=2{print $1}' FS='|' ORS=' ' kk |read FIRST SECOND
> ress=$(( FIRST + SECOND ))
> echo $res

I tried this .. the output is as follows

1226048503l
1226048462l
rpomon.sh:...
35,027
Posted By meetmano143
Thank you very much for you time.. First...
Thank you very much for you time..

First script executes with out any error, but in the output just blank line.

Second script throws the following error

"rpomon.sh: 14: let: not found"
...
35,027
Posted By meetmano143
Im not able to perform arthematic operation on...
Im not able to perform arthematic operation on these ..

FRIST VALUE IS 1226045443l
SECOND VALUE IS 1226045402l

Error Im getting

expr: non-numeric argument


my code

str= `expr...
35,027
Posted By meetmano143
OK I got it FRIST=`echo | awk 'NR==1...
OK I got it

FRIST=`echo | awk 'NR==1 {print;exit}' /tmp/temp.txt`
echo $FRIST
SECOND=`echo | awk 'NR==2 {print;exit}' /tmp/temp.txt`
echo $SECOND


But Can I convert these variables to...
35,027
Posted By meetmano143
while read -r LINE do if [ $start=0 ]; then...
while read -r LINE
do
if [ $start=0 ];
then
FRIST=`echo $LINE | awk -F"|" 'NR==1''{print $1}'`
echo $FRIST
SECOND=`echo $LINE | awk -F"|" 'NR==2''{print $1}'`
echo $SECOND
fi
done <...
35,027
Posted By meetmano143
sorry fi is missing
sorry fi is missing
35,027
Posted By meetmano143
second line of the file
Im trying to get the frist two line of a file as a variables.

input file
/tmp/tmp.txt

1226037463l
1226037422ll


while read -r LINE
do
if [ $start=0 ];
then
...
2,514
Posted By meetmano143
As a start I want to get the time field into...
As a start I want to get the time field into three different variables hours, minutes and seconds..

Any parsing script for that ??

Thanks
2,514
Posted By meetmano143
parsing and calculating difference.
Hi,

I have a file with the contents as following

Access Time: Thu Nov 6 16:43:45 2008
Modify Time: Thu Nov 6 16:43:45 2008
Change Time: Thu Nov 6 16:43:45 2008
Access Time: Thu Nov 6...
4,596
Posted By meetmano143
Calculate the time difference between a local file and a remote file.
I m stuck with a issue.

I need to calculate the time difference between two files.. one on the local machine and one on the remote machine using a script.

Can any one suggest the way this can...
Showing results 1 to 24 of 24

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