Page 1 of 1

no-Wanted date and time appears into script.

Posted: 19 Feb 2014 09:25
by Tha Tawa'S
Hello,

I launch a script like this :

Code: Select all

#!/bin/bash

# List of Trunk Group Node 1
tool trkvisu all | grep 102 > /DHS3bin/mtcl/SupRoutageSR/.SupRoutage102
tool trkvisu 102 | egrep 'access_level2|(num_crist - num_cpl - num_term)' >> /DHS3bin/mtcl/SupRoutageSR/.SupRoutage102

[b]...around 40 trunk...[/b]

#Compare file with Reference  file
diff -c /DHS3bin/mtcl/SupRoutageSR/.RefSupRoutage102 /DHS3bin/mtcl/SupRoutageSR/.SupRoutage102 > /DHS3bin/mtcl/SupRoutageSR/.DiffSupRoutage

[b]...around 40 diff...[/b]

# Display file .DiffSupRoutage
cat /DHS3bin/mtcl/SupRoutageSR/.DiffSupRoutage
And my problem is when generating files .SupRoutage10x ,, sometimes, Date and time appears like this : Wed Feb 19 15:09:17 CET 2014
So, my diff "see" a difference.
Any idea to prevent date/time from coming ???
Thx

Re: no-Wanted date and time appears into script.

Posted: 21 Feb 2014 05:45
by Tha Tawa'S
No idea ???

Re: no-Wanted date and time appears into script.

Posted: 16 May 2014 10:37
by frank
Change

Code: Select all

egrep 'access_level2|(num_crist - num_cpl - num_term)'
to

Code: Select all

egrep 'access_level2|num_crist'

Re: no-Wanted date and time appears into script.

Posted: 14 Apr 2015 01:15
by Tha Tawa'S
That's the same frank.
But question is no more actual, customer did not want install any script.

Posted: 14 Apr 2015 08:33
by cavagnaro
Wow more than one year later u came back lol and still expect answer without providing full details lol

Re: no-Wanted date and time appears into script.

Posted: 14 Apr 2015 10:16
by haroun
Cav !even old and no more details i really d like tawa's topics
cron & scrip speciality lol