info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: enabling log.pl


From: Todd Denniston
Subject: Re: enabling log.pl
Date: Fri, 11 Feb 2005 09:30:04 -0500

Parvinder Singh Arora wrote:
> 
> This is what is the entry in my loginfo file
> 
> ALL (echo ""; date; cat) | \
> /usr/local/cvsroot/CVSROOT/log -u $USER -s \
> -m address@hidden
> 

[ED. I broke the lines above with "\"s to make it clear this is expected to
be one line in the file]

What is it you intended the `(echo ""; date; cat)` to do?
I tried:
(echo ""; date; cat) |less
and found it annoying in an interactive environment, as cat does not exit.
`(echo ""; date)` might be useful, though.

also I am assuming that in your loginfo, the line you sent is all on ONE
line.

> And when i try to do some commit this is what i get :(
> 
> address@hidden CVSROOT]$ cvs commit temp.txt
> Checking in temp.txt;
> /usr/local/cvsroot/CVSROOT/temp.txt,v  <--  temp.txt
> new revision: 1.10; previous revision: 1.9
> done
> Could not open(): No such file or directory
> sh: line 1: : command not found
> cvs server: Rebuilding administrative file database
> 
> ~Parvinder
Is the /usr/local/cvsroot/CVSROOT/log script your own or one of the ones on
the net? (a net one we might be able to look at the source and guess what is
going wrong.)
Just from the name difference in your subject and here, I would expect the
problem might be that sh is trying to interpret a perl script and failing.
You might check the first line of /usr/local/cvsroot/CVSROOT/log and verify
the first line is of the type "#! /something/bin/perl", if it is then verify
that /something/bin/perl will execute (or change it to point to the real
perl on your system).


-- 
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane) 
Harnessing the Power of Technology for the Warfighter




reply via email to

[Prev in Thread] Current Thread [Next in Thread]