LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] cron: error: bad hour

[ILUG] cron: error: bad hour

Brian Foster blf at utvinternet.ie
Tue Aug 14 21:34:53 IST 2007


  | From: "Philip Reynolds" <philip.reynolds at gmail.com>
  | Date: Tue, 14 Aug 2007 14:44:25 +0100
  | 
  | On 14/08/07, Brian Foster <blf at utvinternet.ie> wrote:
  |  >  weird character someplace?  [ ... ]
  | 
  | set invlist in vim is handy for these things, as well as using od(1)
  | with `od -c' to weed out strange characters in files.

 I cannot find any doc on ‘:set invlist’, albeit
 it seems to be identical to the extremely useful
 ‘:set list’ (which I use all the time!).

 pedantically, ‘od -c’ is good for finding weird
 bytes (esp. in US-ASCII encoded files, as should
 be the case for the OP's /etc/crontab).  for 8-bit
 encodings, and multi-bytes encodings (e.g. UTF-8),
 ‘od -c’ can be more confusing than useful.

 similar to ‘od -c˚ is ‘hexdump -C’ which is often
 a bit easier to decipher.  still works best with
 7-bit encodings, however ....

 qed(1) had a very useful RE expression, ‘\_’ as
 I recall, which matched any single non-printable
 character.  there's probably some ERE class (or
 inversion thereof) which is similar, but I don't
 know it off-hand.  ‘[^[:print:]]’ maybe?   a very
 trivial test suggests that considers HTAB to match,
 which is annoying but easily fixed: ‘[^[:print:]_]’
 (where ‘_’ is a literal tab).†

cheers!
	-blf-

  †  if yer using the GNU bash(1) shell, you can
     use the (rare)  $'...'  notation to write:

        grep  -e $'[^[:print:]\t]'  ...

-- 
▶ ▶  I AM CURRENTLY LOOKING FOR A JOB!  ◀ ◀ | Brian Foster
Experienced (>25 yrs) software engineer:    |        Montpellier, FRANCE
 • Unix, Linux, embedded, design-for-test;  | Stop E$$o (ExxonMobile)!
 • Software/hardware co-design, debugging;  |     http:/www.stopesso.com
 • Kernels, drivers, filesystems, &tc;    Résumé (CV) & contact details:
 • IDL, automated testing, process, &tc.   http://www.blf.utvinternet.ie



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell