no-Wanted date and time appears into script.

Post Reply
User avatar
Tha Tawa'S
Member
Posts: 89
Joined: 16 Jan 2010 04:49

no-Wanted date and time appears into script.

Post 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
User avatar
Tha Tawa'S
Member
Posts: 89
Joined: 16 Jan 2010 04:49

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

Post by Tha Tawa'S »

No idea ???
User avatar
frank
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 3169
Joined: 06 Jul 2004 00:18
Location: New York
Contact:

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

Post by frank »

Change

Code: Select all

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

Code: Select all

egrep 'access_level2|num_crist'
Code Free Or Die
User avatar
Tha Tawa'S
Member
Posts: 89
Joined: 16 Jan 2010 04:49

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

Post by Tha Tawa'S »

That's the same frank.
But question is no more actual, customer did not want install any script.
User avatar
cavagnaro
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 7014
Joined: 14 Sep 2005 19:45
Location: Brasil, Porto Alegre
Contact:

Post by cavagnaro »

Wow more than one year later u came back lol and still expect answer without providing full details lol
haroun
Senior Member
Posts: 1355
Joined: 29 Mar 2010 11:09

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

Post by haroun »

Cav !even old and no more details i really d like tawa's topics
cron & scrip speciality lol
Post Reply

Return to “Linux tricks”