login
Header Space

 
 

Re: logger time stamps

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <misc@...>
Cc: <misc@...>
Date: Thursday, June 28, 2007 - 7:16 pm

Solved with 'eval', details below:


On Thu, Jun 28, 2007 at 04:50:54PM +0100, Craig Skinner wrote:

syslog='logger -t ${this}'


			eval ${syslog} 'link down!'


        eval ${syslog} 'rebooting ${router}'
        eval $(dirname ${0})/reboot/${router_connect}


        eval ${syslog} 'line reset with account: ${1}'
        eval $(dirname ${0})/reset/${router_connect} ${1}


Jun 28 23:40:41 teak viagrad: start up
Jun 28 23:40:41 teak viagrad: loading config
Jun 28 23:40:43 teak viagrad: Internet link up! Gateway: 193.29.223.169

I pulled the phone cable:

Jun 28 23:41:04 juniper juniper: board 0 line 0 channel 0, call 26, C02 Call Terminated 
Jun 28 23:41:04 juniper juniper: ppp:LCP Closing
Jun 28 23:41:04 juniper juniper: ppp:IPCP Closing
Jun 28 23:42:05 teak viagrad: Internet link down!
Jun 28 23:45:06 teak viagrad: line reset with account: bt_test@startup_domain

And put it back in:

Jun 28 23:45:37 juniper juniper: board 0 line 0 channel 0, call 34, C01 Outgoing Call dev=5 ch=0  
Jun 28 23:45:37 juniper juniper: board 0 line 0 channel 0, call 34, C02 OutCall Connected 512000  
Jun 28 23:45:37 juniper juniper: ppp:LCP Starting
Jun 28 23:45:40 juniper juniper: ppp:LCP Opening
Jun 28 23:45:40 juniper juniper: ppp:CHAP Opening
Jun 28 23:45:40 juniper juniper: ppp:IPCP Starting
Jun 28 23:45:40 juniper juniper: ppp:IPCP Opening
Jun 28 23:45:51 teak viagrad: rebooting branch.juniper
Jun 28 23:46:38 juniper juniper: board 0 line 0 channel 0, call 8, C01 Outgoing Call dev=5 ch=0  
Jun 28 23:46:38 juniper juniper: board 0 line 0 channel 0, call 8, C02 OutCall Connected 512000  
Jun 28 23:46:38 juniper juniper: ppp:LCP Starting
Jun 28 23:46:38 juniper juniper: ppp:LCP Opening
Jun 28 23:46:38 juniper juniper: ppp:LCP Closing
Jun 28 23:46:41 juniper juniper: board 0 line 0 channel 0, call 8, C02 Call Terminated 
Jun 28 23:46:44 juniper juniper: board 0 line 0 channel 0, call 9, C01 Outgoing Call dev=5 ch=0  
Jun 28 23:46:44 juniper juniper: board 0 line 0 channel 0, call 9, C02 OutCall Connected 512000  
Jun 28 23:46:44 juniper juniper: ppp:LCP Starting
Jun 28 23:46:47 juniper juniper: ppp:LCP Opening
Jun 28 23:46:48 juniper juniper: ppp:CHAP Opening
Jun 28 23:46:48 juniper juniper: ppp:IPCP Starting
Jun 28 23:46:48 juniper juniper: ppp:IPCP Opening
Jun 28 23:47:27 teak viagrad: line reset with account: my_account@example.net
Jun 28 23:47:36 juniper juniper: ppp:LCP Closing
Jun 28 23:47:36 juniper juniper: ppp:IPCP Closing
Jun 28 23:47:36 juniper juniper: board 0 line 0 channel 0, call 9, C02 Call Terminated 
Jun 28 23:47:38 juniper juniper: board 0 line 0 channel 0, call 10, C01 Outgoing Call dev=5 ch=0  
Jun 28 23:47:38 juniper juniper: board 0 line 0 channel 0, call 10, C02 OutCall Connected 512000  
Jun 28 23:47:38 juniper juniper: ppp:LCP Starting
Jun 28 23:47:39 juniper juniper: board 0 line 0 channel 0, call 10, C02 Call Terminated 
Jun 28 23:47:50 juniper juniper: board 0 line 0 channel 0, call 11, C01 Incoming Call 1500000  
Jun 28 23:47:53 juniper juniper: ppp:LCP Opening
Jun 28 23:47:55 juniper juniper: ppp:CHAP Opening
Jun 28 23:47:55 juniper juniper: ppp:IPCP Starting
Jun 28 23:47:55 juniper juniper: ppp:IPCP Opening
Jun 28 23:48:12 teak viagrad: Internet link up! Gateway: 193.29.223.169

-- 
Craig Skinner | http://www.kepax.co.uk | aye-right@kepax.co.uk
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
logger time stamps, Craig Skinner, (Thu Jun 28, 11:50 am)
Re: logger time stamps, Craig Skinner, (Thu Jun 28, 7:16 pm)
speck-geostationary