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
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Greg KH | [patch 00/04] RFC: Staging tree (drivers/staging) |
| James Bottomley | Re: Integration of SCST in the mainstream Linux kernel |
| Steven Rostedt | [RFC PATCH 1/3] Unified trace buffer |
git: | |
| Jon Smirl | ! [rejected] master -> master (non-fast forward) |
| Marco Costalba | [ANNOUNCE] qgit4 aka qgit ported to Windows |
| Andi Kleen | Re: [kernel.org users] [RFD] On deprecating "git-foo" for builtins |
| Sverre Rabbelier | Git vs Monotone |
| Richard Stallman | Real men don't attack straw men |
| GVG GVG | ssh_exchange_identification: Connection closed by remote host |
| Damian Gerow | Oddly high load average |
| Benjamin Adams | BSD Port from OpenJDK |
| Michael Grollman | Re: 8169 Intermittent ifup Failure Issue With RTL8102E Chipset in Intel's New D945... |
| Volker Armin Hemmann | build error with 2.6.27.6+reiser4+ehci-hub patch. ERROR: "mii_ethtool_gset" [drive... |
| Evgeniy Polyakov | [resend take 2 0/4] Distributed storage. |
| Wenji Wu | A Linux TCP SACK Question |
| serial driver xmit problem | 46 minutes ago | Linux kernel |
| Why Windows is better than Linux | 46 minutes ago | Linux general |
| How can I see my kernel messages in vt12? | 7 hours ago | Linux kernel |
| Grub | 18 hours ago | Linux general |
| vmalloc_fault handling in x86_64 | 1 day ago | Linux kernel |
| epoll_wait()ing on epoll FD | 1 day ago | Linux kernel |
| Framebuffer in x86_64 causes problems to multiseat | 1 day ago | Linux kernel |
| Difference between 2.4 and 2.6 regarding thread creation | 1 day ago | Linux general |
| Netfilter kernel module | 1 day ago | Linux kernel |
| Compiling gfs2 on kernel 2.6.27 | 1 day ago | Linux kernel |
