no-Wanted date and time appears into script.

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

no-Wanted date and time appears into script.

Post by Tha Tawa'S » 19 Feb 2014 09:25

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: 85
Joined: 16 Jan 2010 04:49

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

Post by Tha Tawa'S » 21 Feb 2014 05:45

No idea ???

User avatar
frank
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 12671
Joined: 06 Jul 2004 00:18
Location: New York
Contact:

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

Post by frank » 16 May 2014 10:37

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: 85
Joined: 16 Jan 2010 04:49

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

Post by Tha Tawa'S » 14 Apr 2015 01:15

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: 6998
Joined: 14 Sep 2005 19:45
Location: Brasil, Porto Alegre
Contact:

Post by cavagnaro » 14 Apr 2015 08:33

Wow more than one year later u came back lol and still expect answer without providing full details lol

haroun
Member
Posts: 899
Joined: 29 Mar 2010 11:09

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

Post by haroun » 14 Apr 2015 10:16

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

Post Reply

Return to “Linux tricks”