[Hampshire] [OT] Armoured network cable supplier?

2009-08-04 Thread Chris Dennis
Hello folks

Can anyone recommend a supplier and/or installer of armoured ethernet cable?

My client (www.lotusflowertrust.org) needs a network connection to their 
outside office about 30m from the main house.

cheers

Chris
-- 
Chris Dennis  cgden...@btinternet.com
Fordingbridge, Hampshire, UK

-- 
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--


Re: [Hampshire] [OT] Armoured network cable supplier?

2009-08-04 Thread Victor Churchill
I have done DIY installations of outside cables in the past by laying
PVC water pipes in a trench and then threading the cable though those.
You can either bend the pipe or make joints for changes of direction
depending on how sharp they are. Not quite what you are after, but a
possible alternative.

-- 
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--


Re: [Hampshire] [OT] Armoured network cable supplier?

2009-08-04 Thread Philip Stubbs
2009/8/4 Chris Dennis cgden...@btinternet.com:
 Hello folks

 Can anyone recommend a supplier and/or installer of armoured ethernet cable?

 My client (www.lotusflowertrust.org) needs a network connection to their
 outside office about 30m from the main house.

When I wired up my shed, I just burried some small drain pipe with a
rope running through it. Once completed, I used the rope to pull
standard cat5 cable and a telephone line, with tha aid of some washing
up liquid. That was a good 25 metre run.

So far, it has lasted about ten years. I hope it lasts quite a few
more as I have built a conservetory over one end of the pipe :-)

-- 
Philip Stubbs

-- 
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--


Re: [Hampshire] [OT] Armoured network cable supplier?

2009-08-04 Thread Chris Dennis
Victor Churchill wrote:
 I have done DIY installations of outside cables in the past by laying
 PVC water pipes in a trench and then threading the cable though those.
 You can either bend the pipe or make joints for changes of direction
 depending on how sharp they are. Not quite what you are after, but a
 possible alternative.
 

Thanks for the replies.  I did the cable-in-a-pipe thing once in the 
past, but I wasn't convinced that the result would last, and it involved 
a lot of hassle getting the wires down the pipe.

Maybe I'll reconsider wifi solutions.

cheers

Chris

-- 
Chris Dennis  cgden...@btinternet.com
Fordingbridge, Hampshire, UK

-- 
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--


Re: [Hampshire] [OT] Armoured network cable supplier?

2009-08-04 Thread Victor Churchill
2009/8/4 Chris Dennis cgden...@btinternet.com:

 Thanks for the replies.  I did the cable-in-a-pipe thing once in the
 past, but I wasn't convinced that the result would last, and it involved
 a lot of hassle getting the wires down the pipe.

 Maybe I'll reconsider wifi solutions.

... or you could look into armoured ethernet cable ;-)

Ironically, I did have a reel of some pretty tough armoured comms-type
cable (rescued from a skip) in my shed for about 15 years. Eventually
dumped last year because it never got used for anything . Thank you
Murphy.

-- 
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--


Re: [Hampshire] [OT] Armoured network cable supplier?

2009-08-04 Thread Paul Stimpson
Hi,

I've never seen armoured cable per-se (would have thought it would have been 
too difficult to stick the connectors on and plug it in. 

I've used exterior grade cable and found it good. If I wanted to do that I'd 
probably put it in conduit. 

I would look at millsltd.com or  wadsworth.co.uk in the first instance. 

Other options would be a wireless bridge with directional antennas or (if the 
two buildings share a mains) an ethernet-over-mains solution. What kind of data 
rates do they need?

Cheers,
Paul. 

--Original Message--
From: Chris Dennis
Sender: hampshire-boun...@mailman.lug.org.uk
To: Hampshire LUG Mailing List
ReplyTo: Hampshire LUG Mailing List
Subject: [Hampshire] [OT] Armoured network cable supplier?
Sent: 4 Aug 2009 12:00

Hello folks

Can anyone recommend a supplier and/or installer of armoured ethernet cable?

My client (www.lotusflowertrust.org) needs a network connection to their 
outside office about 30m from the main house.

cheers

Chris
-- 
Chris Dennis  cgden...@btinternet.com
Fordingbridge, Hampshire, UK

-- 
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--


Sent from my BlackBerry® wireless device
-- 
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--


Re: [Hampshire] [OT] Armoured network cable supplier?

2009-08-04 Thread Paul Stimpson
Hi again,

When we do that we lay two parallel pipes and thread a pull rope down one and 
back down the other. The rope is then tied in a continuous loop for loss-free 
pulling :)

We usually use 4 plastic pipe as it's not tight and should make pulling easy. 

Cheers,
Paul. 


Sent from my BlackBerry® wireless device

-Original Message-
From: Chris Dennis cgden...@btinternet.com

Date: Tue, 04 Aug 2009 12:24:31 
To: Hampshire LUG Discussion Listhampshire@mailman.lug.org.uk
Subject: Re: [Hampshire] [OT] Armoured network cable supplier?


Victor Churchill wrote:
 I have done DIY installations of outside cables in the past by laying
 PVC water pipes in a trench and then threading the cable though those.
 You can either bend the pipe or make joints for changes of direction
 depending on how sharp they are. Not quite what you are after, but a
 possible alternative.
 

Thanks for the replies.  I did the cable-in-a-pipe thing once in the 
past, but I wasn't convinced that the result would last, and it involved 
a lot of hassle getting the wires down the pipe.

Maybe I'll reconsider wifi solutions.

cheers

Chris

-- 
Chris Dennis  cgden...@btinternet.com
Fordingbridge, Hampshire, UK

-- 
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--
-- 
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--


Re: [Hampshire] [OT] Armoured network cable supplier?

2009-08-04 Thread Chris Dennis
David Ramsden wrote:
 Chris Dennis wrote:
 Hello folks

 Can anyone recommend a supplier and/or installer of armoured ethernet 
 cable?

 My client (www.lotusflowertrust.org) needs a network connection to 
 their outside office about 30m from the main house.

 
 Hi Chris,
 
 I've passed this on to a colleague. When I mentioned it, he said that 
 you can't just run a bit of copper through a pipe in the ground 
 (something to do with earth differential) and you'd also have to pull 
 through an earth.
 
 He also mentioned that there's not really such a thing as armoured 
 ethernet cable. You can get armoured fibre though.

It seems to be available, for example:
http://www.homestead.co.uk/productcategorydetail.aspx?CategoryID=54706

 
 Anyway, you may get an email from either Andy Tsoi or Kevin Palmer 
 regarding this.

Thanks for your help -- it's much appreciated.
 
 Regards,
 David.

cheers

Chris
-- 
Chris Dennis  cgden...@btinternet.com
Fordingbridge, Hampshire, UK


-- 
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--


Re: [Hampshire] [OT] Armoured network cable supplier?

2009-08-04 Thread Bob Dunlop
Hi,

On Tue, Aug 04 at 12:00, Chris Dennis wrote:
...
 My client (www.lotusflowertrust.org) needs a network connection to their 
 outside office about 30m from the main house.

Armoured cable may be well over the top for the application.

My phone and Ethernet lines run through the professionaly installed (when
the hut was buit) conduit to my hut, to meet building regs it's about three
feet deep and mains runs in a separate armoured cable.  A plastic pipe with
a pull through means you can add or replace cables when you need.

But this is overkill.  I've also run standard CAT5 (not even exterior grade)
buried in the turf at 2-3 inches, it's been down for three years without a
problem.  I'm guessing that like most things it will last until someone with
a shovel disturbs it.


Can you tolerate a couple of days downtime if it fails and needs replacing ?
or sling a temporary replacement out the window and through the bushes.
If someone put's a spade through it they have the tools to hand to help you
bury a replacement.

-- 
Bob Dunlop

-- 
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--


Re: [Hampshire] Ultimate Linux Media PC?

2009-08-04 Thread David Webb
I wonder if we can take this discussion a bit further - possibly expanding it 
so that it does not just cover the 'ultimate' system.

If there was a smart linux hardware+software package to fit neatly under the 
TV for less than £250 that could combine the roles of PVR, network interface 
and DVD writer (blue-ray for a bit extra?) then it could be a very attractive 
consumer product.  I see the Hants Wiki has thought a bit about the options 
but has not come up so far with any solutions.

Of the three main suggestions made in the current discussion, (I know nothing 
about the X-Box), John Wesleys seems to have the most options, but I query 
the power requirement (is 65 W high these days?), the TV tuner (freeview 
and/or freesat - USB stubs would look out of place) and most importantly the 
user interface (we really need a handheld).  Also are there drivers for the 
VIA CX700M2 graphics chip which is a key component.  The total price comes 
out around £500 (without a blueray writer) which is a bit on the high side.

In comparison Alan Pope's Acer Aspire seems much more cost effective - but 
does it need another box for the (twin) TV tuner and does it look right under 
the TV?  Is the power sufficient to handle two input and one output TV 
streams at once?  The great advantage with such a package is that the drivers 
should always work and problems like power/heat dissipation and hardware 
compatability should have been sorted out. 

Finally Hugo Mills' Popcorn Hour looks very professional but has none of the 
PVR properties which, from now on is likely to be considered essential.

Anyway I wonder if we could start with these - as three levels which might 
attract interest - and then have suggestions about how they could be improved 
and what software would work together.  Maybe a winter meeting devoted 
to 'around the house' media systems would be useful.

Regards,

David Webb

===
Brief summaries:

John Wesley, Hardware + Mythbuntu: £425
   processor:  Via C7
   memory: 1 Gb
   Hard Drive: 1.5 Tb
   Optical drive:  None
   Graphics:   VIA UniChromeTM Pro II 3D/2D AGP
   Monitor:None
   Networking: Ethernet (RJ-45)
   Firewire
   Controls:   Mouse and Keyboard
   Power supply:   65W adaptor
   Audio/Video:1 x DVI
   1 x RJ45
   1 x miniDIN (S-Video)
   1 x Triple RCA (composite video and steoeo)
   1 x Triple RCA (component video)
   1 x S/PDIF coaxial
   1 x S/PDIF optical
   Internal ports: 2 (+ 4) x USB
   1 x 1394
   1 Front panel audio header
   1 Audio line in header
   1 LPC header
   1 LVDS header
   1 TV out header for SCART and D-terminal
   1 video connector for VGA output
   1 x video input and SMBUS
   1 x PS2 mouse/keyboard header
   2 x SATA
   Other connectors: 2 x fan connectors
   1 x ATX power connector
   TV Control: Keyboard?!!
   TV Receiver:PCI Card


Alan Pope, Acer Aspire Revo Desktop PC + Linux(?)  £155.99
   Processor:  Intel Atom
   Memory: 1 Gb
   Hard Drive: 160 Gb
   Optical drive:  None
   Graphics:   NVidia IONth
   Monitor:None
   Networking: WiFi (802.11)
   Ethernet (RJ-45)
   Controls:   Mouse and Keyboard
   Power supply:   65W adaptor
   Audio/Video :   1 x D-sub VGA
   1 x HDMIth
   Headphones, Mike
   Other ports:6 x USB 2.0
   1 x eSATA
   1 x Mini PCI express slot
   TV Control: Keyboard?!!
   TV Receiver:mini PCI card?

Hugo Mills:  Popcorn Hour A-110, Syaba OS(?), $215 (£215?)
   Memory:  256 Mb
   Networking:  Ethernet
   Power:   12V (Less than 36 W)
   Audio/Video: HDMI v1.3a (up to 1080p)
Component Video
S-Video
Composite Video
Stereo Analog Audio
S/PDIF Optical Digital Audio
   Other ports: 1+2 USB
SATA
   TV Control:  Hand held remote control
   TV Receiver: The system streams data from the www, other computers and 
attached storage.  It is not clear of it can also act like a PVR and record 
from digital TV input, say via a receiver connected to a USB port.
==



-- 
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--

Re: [Hampshire] Ultimate Linux Media PC?

2009-08-04 Thread Stephen Rowles
On 08/04/2009 03:35 PM, Stephen Rowles wrote:
 ASRock Ion-330 (No OS)  £249.99 (svp.co.uk)
  Processor:  Intel Atom (330 dual core)
  Memory: 2 Gb (800 mhz)
  Hard Drive: 320 Gb (2.5inch)
  Optical drive:  DVD re-writer (slimline / laptop)
  Graphics:   NVidia ION (Geforce 9400M equivalent)
  Audio:  5.1 (with output over HDMI)
  Monitor:None
  Networking: Ethernet (RJ-45, Gigabit)
  Controls:   None supplied.
  Power supply:   65W adaptor
  Audio/Video :   1 x D-sub VGA
  1 x HDMI
  Line in, Line out, Mic
  Other ports:6 x USB 2.0
  1 x S/PDIF (optical)
  1 x Mini PCI express slot



Ops, spec. correction, there isn't a mini PCI express slot, silly copy 
and paste error.

-- 
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--

Re: [Hampshire] Ultimate Linux Media PC?

2009-08-04 Thread David Webb
Stephen Rowles wrote:
You've missed my suggestions

My mistake - sorry about that.  What is the position re Linux drivers?  Are 
they the same NVidia ones as the Acer Aspire?

David.



-- 
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--


Re: [Hampshire] Ultimate Linux Media PC?

2009-08-04 Thread Stephen Rowles

On 08/04/2009 03:52 PM, David Webb wrote:

Stephen Rowles wrote:
   

You've missed my suggestions
 


My mistake - sorry about that.

No worries.

What is the position re Linux drivers?  Are
they the same NVidia ones as the Acer Aspire?

David
   


The drivers are exactly the same as for the Aspire, they are both Nvidia 
ION platform machine and the latest Nvidia binary drivers provide HD 
content off-load and audio out via the HDMI cable. They are almost the 
same machine, the advantage the ASRock ION-330 has is that it has a 
built in DVD-writer and uses the dual-core version of the Intel Atom chip.
-- 
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--

Re: [Hampshire] [OT] Armoured network cable supplier?

2009-08-04 Thread Tim
On Tuesday 04 August 2009 12:24:31 Chris Dennis wrote:
 Victor Churchill wrote:
  I have done DIY installations of outside cables in the past by laying
  PVC water pipes in a trench and then threading the cable though those.
  You can either bend the pipe or make joints for changes of direction
  depending on how sharp they are. Not quite what you are after, but a
  possible alternative.

 Thanks for the replies.  I did the cable-in-a-pipe thing once in the
 past, but I wasn't convinced that the result would last, and it involved
 a lot of hassle getting the wires down the pipe.

 Maybe I'll reconsider wifi solutions.

 cheers

 Chris

 --
 Chris Dennis  cgden...@btinternet.com
 Fordingbridge, Hampshire, UK

 If you go the Wifi route and are looking for a decent Attennae, then I can 
recommend these

http://www.wifi-antennas.co.uk/index.php?target=productsproduct_id=1

I have a couple of these at work and they operate over a 150mtr gap without a 
problem. You can hook them up to a access point of your choosing, I used the 
one Allendale offered.

Tim

-- 
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--


Re: [Hampshire] [OT] Armoured network cable supplier?

2009-08-04 Thread Alan Pope
2009/8/4 Bob Dunlop bob.dun...@xyzzy.org.uk:
 But this is overkill.  I've also run standard CAT5 (not even exterior grade)
 buried in the turf at 2-3 inches, it's been down for three years without a
 problem.  I'm guessing that like most things it will last until someone with
 a shovel disturbs it.


My network to the garage goes around the edge of the garden in a
plastic tube. Mains went directly down from garden to garage until the
people renovating our garden cut through it with a rotovator..

.. twice.

Cheers,
Al.

-- 
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--


Re: [Hampshire] [OT] Armoured network cable supplier?

2009-08-04 Thread Dave Walker
Paul Stimpson wrote:
SNIP
 Thanks for the replies.  I did the cable-in-a-pipe thing once in the 
 past, but I wasn't convinced that the result would last, and it involved 
 a lot of hassle getting the wires down the pipe.
   
SNIP

Hi Paul,

Perhaps I'm oversimplifying, but isn't two pipes, with one essentially for the 
cord overkill.  Can't you simply attach a new cord to the flex you are running 
through, using our good friend duct tape?  Then keep the now redundant cord for 
next time?

I'm somehow imagining some integrate pulley, or block and tackle system, for 
something that probably won't be touched for 10 years. :)

Kind Regards,
Dave Walker



-- 
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--


Re: [Hampshire] [OT] Armoured network cable supplier?

2009-08-04 Thread Chris Dennis
Chris Dennis wrote:
 Hello folks
 
 Can anyone recommend a supplier and/or installer of armoured ethernet cable?
 
 My client (www.lotusflowertrust.org) needs a network connection to their 
 outside office about 30m from the main house.
 
 cheers
 
 Chris

Well, that generated some interesting discussion.  Thanks to everyone.

On consideration, I'll go for the ethernet-over-mains option.  (And if 
that doesn't work, I'll mess about with wifi.)

Armoured Cat5e cable is available at about £2 per metre, but the tools 
required to deal with it, and the special terminating glands etc. are 
not something I want to get involved with.

And playing with pipes and ditches would be more appealing in a 
different climate.

cheers

Chris

-- 
Chris Dennis  cgden...@btinternet.com
Fordingbridge, Hampshire, UK

-- 
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--


[Hampshire] Pipe issues

2009-08-04 Thread Leo
I've got a shell script that calls a program and pipes its output to 
grep, i.e.

#!/bin/bash

program | grep -v remaining\s*$


When I run the script this works fine (i.e. no lines output ending in 
remaining). However if I set the script to run using anacron then I 
always get an email with loads of lines with remaining on the end of 
them. I've tried loads of things to attempt to debug it, but to no 
avail. Can anyone help?

Thank you,
Leo

-- 
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--


Re: [Hampshire] Pipe issues

2009-08-04 Thread Jim Kissel


Leo wrote:
 I've got a shell script that calls a program and pipes its output to 
 grep, i.e.
 
 #!/bin/bash
 
 program | grep -v remaining\s*$
 
 
 When I run the script this works fine (i.e. no lines output ending in 
 remaining). However if I set the script to run using anacron then I 
 always get an email with loads of lines with remaining on the end of 
 them. I've tried loads of things to attempt to debug it, but to no 
 avail. Can anyone help?
 
set $PATH just after #!/bin/bash to what ever your local environment has 
it set to.

YMMV

-- 
Life is too short.

-- 
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--


Re: [Hampshire] Pipe issues

2009-08-04 Thread Simon Reap
Leo wrote:
 #!/bin/bash
 
 program | grep -v remaining\s*$
 
   

I would put the grep string in single quotes - anacron may be messing up 
the trailing $

(BTW, did anyone else read the subject of this email and assume it was 
carrying on the armoured ethernet thread?)

-- 
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--


Re: [Hampshire] Pipe issues

2009-08-04 Thread Bob Dunlop
On Tue, Aug 04 at 08:56, Leo wrote:
 I've got a shell script that calls a program and pipes its output to 
 grep, i.e.
 
 #!/bin/bash
 
 program | grep -v remaining\s*$
 
 
 When I run the script this works fine (i.e. no lines output ending in 
 remaining). However if I set the script to run using anacron then I 

Whos turning the \s into a space I wonder ?

It's not a bash syntax that I recognise, nor a grep one ?

Are you using csh for your interactive session ?

Try the following in your script.

program | grep -E -v remaining[[:space:]]*$

That's a combination I know works with grep regardless of the shell used.
Don' forget the -E

-- 
Bob Dunlop

-- 
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--


Re: [Hampshire] [OT] Armoured network cable supplier?

2009-08-04 Thread James Courtier-Dutton
2009/8/4 Chris Dennis cgden...@btinternet.com:
 Hello folks

 Can anyone recommend a supplier and/or installer of armoured ethernet cable?

 My client (www.lotusflowertrust.org) needs a network connection to their
 outside office about 30m from the main house.

 cheers

 Chris
 --

Don't bother with armored cable. They are a pain to work with.
One option is to instead bury a PVC tube. Good for when you need to
send an extra cable through, takes about the same effort burying a PVC
tube, than it does an armored cable.
But, if you don't like that idea, I have in the past just passed the
cable through a garden hose pipe, and then buried the hose pipe. It
has been happily functioning for over 10 years now.

Kind Regards

James

-- 
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--


Re: [Hampshire] Pipe issues

2009-08-04 Thread Leo
Simon Reap wrote:
 
 I would put the grep string in single quotes - anacron may be messing up 
 the trailing $
 
 (BTW, did anyone else read the subject of this email and assume it was 
 carrying on the armoured ethernet thread?)
 

That didn't help either, but it did give me an idea. I did a ps -ef 
while anacron was getting my script to run and noticed this:
grep -v remaining\s*$

without quotes, so I've now changed my script to try:
program | grep -v \remaining\\s*$\
and
program | grep -v \'remaining\\s*$\'

which means ps -ef gives
grep -v remaining\s*$
and
grep -v 'remaining\s*$'

However it still doesn't work when run from anacron :(

(Sorry for the confusion)

Leo

-- 
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--


Re: [Hampshire] Pipe issues

2009-08-04 Thread Hugo Mills
On Tue, Aug 04, 2009 at 10:18:32PM +0100, Leo wrote:
 Bob Dunlop wrote:
  
  Whos turning the \s into a space I wonder ?
  
  It's not a bash syntax that I recognise, nor a grep one ?
  
  Are you using csh for your interactive session ?
  
  Try the following in your script.
  
  program | grep -E -v remaining[[:space:]]*$
  
  That's a combination I know works with grep regardless of the shell used.
  Don' forget the -E
  
 
 I got the syntax from reading man perlrequick. Unfortunately the new 
 syntax you specify doesn't help. Thanks though.

   I have a thought... is this program normally run interactively? If
so, does it present a countdown of remaining time or bytes? If so,
it's quite likely that it's using CR, reverse tabs, or other control
characters to overwrite the previous line. If it's doing that, you'll
probably find that grep isn't handling the output right.

   You could try something like this:

program | tr [[:cntrl:]] \\n | grep -E -v remaining[[:space:]]*$

   Hugo.

-- 
=== Hugo Mills: h...@... carfax.org.uk | darksatanic.net | lug.org.uk ===
  PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
  --- I'm all for giving people enough rope to shoot themselves in ---   
   the foot -- Andreas Dilger


signature.asc
Description: Digital signature
-- 
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--

Re: [Hampshire] Pipe issues

2009-08-04 Thread Leo
Hugo Mills wrote:
 
I have a thought... is this program normally run interactively? If
 so, does it present a countdown of remaining time or bytes? If so,
 it's quite likely that it's using CR, reverse tabs, or other control
 characters to overwrite the previous line. If it's doing that, you'll
 probably find that grep isn't handling the output right.
 
You could try something like this:
 
 program | tr [[:cntrl:]] \\n | grep -E -v remaining[[:space:]]*$
 
Hugo.
 

Yes it does present a countdown and the ... remaining only appears on 
the one line. I will give your suggestion a try tomorrow as the computer 
it runs on is down now.

Thank you,
Leo

-- 
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--