LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 09-11-2007, 07:45 AM   #1
deepugopi
LQ Newbie
 
Registered: Apr 2007
Location: India
Distribution: RHEL4,Fedora6
Posts: 28

Rep: Reputation: 15
How to send mails automatically when cvs check-in is performed ?


Hi,
Company network scenario : 2 RHEL servers... First server acts as Proxy,Mail & DHCP...while the second one acts as file server & cvs server.
Problem : Till now everyone is able to checkout & checkin the cvs server successfully.Now the company persons has given me a challenge that whenever a person "checks-in" the cvs server a mail should go to a specified person/group automatically

How to send mails(automatically) to a particular person/group whenever a person makes check-in in the cvs server..?????


Sorry if i posted in the wrong section..i thought the problem is more with the mail part ..

Please reply..
A Confused person...
 
Old 09-11-2007, 09:13 AM   #2
kstan
Member
 
Registered: Sep 2004
Location: Malaysia, Johor
Distribution: Dual boot MacOS X/Ubuntu 9.10
Posts: 851

Rep: Reputation: 31
how you share the cvs data? samba?ssh? http?
 
Old 09-11-2007, 11:17 PM   #3
deepugopi
LQ Newbie
 
Registered: Apr 2007
Location: India
Distribution: RHEL4,Fedora6
Posts: 28

Original Poster
Rep: Reputation: 15
Hi kstan,
Through ssh..i'll explain cvs-network in detail..We are currently working on different projects..So we had created different cvs repository for each project(total 3 cvs repositories)..
3 repositories are ..
1. /ic/a
2. /Sw/b
3. /Algo/c
Altogether 30 users are here out of which 5 are windows users & rest linux(RHEL Desktop or Mandriva)..Windows users are using wincvs 1.2 & linux users are using lincvs 1.4.3.Windows users connect to cvs-server through "ssh tunneling".Linux users connect to cvs-server through the port 2401.
At present when a user commits a change in the ic-repository(/ic/a), the other users who belong to that particular repository who get notification mail automatically...
Already we are having the group-id for the ic-team..
 
Old 09-18-2007, 11:09 PM   #4
kstan
Member
 
Registered: Sep 2004
Location: Malaysia, Johor
Distribution: Dual boot MacOS X/Ubuntu 9.10
Posts: 851

Rep: Reputation: 31
Quote:
Originally Posted by deepugopi View Post
Hi kstan,
Through ssh..i'll explain cvs-network in detail..We are currently working on different projects..So we had created different cvs repository for each project(total 3 cvs repositories)..
3 repositories are ..
1. /ic/a
2. /Sw/b
3. /Algo/c
Altogether 30 users are here out of which 5 are windows users & rest linux(RHEL Desktop or Mandriva)..Windows users are using wincvs 1.2 & linux users are using lincvs 1.4.3.Windows users connect to cvs-server through "ssh tunneling".Linux users connect to cvs-server through the port 2401.
At present when a user commits a change in the ic-repository(/ic/a), the other users who belong to that particular repository who get notification mail automatically...
If you'd have working solution then congratulation, and please share with us, otherwise I have 1 suggestions.
Already we are having the group-id for the ic-team..
Unfortunately I don't have any immediately solution, but I have is a work around solution (Which can be tricky)

My suggestion is,
Configure a start up script , when any ssh login will trigger the script and run some necessary action you want. (either ~/.bashrc, /etc/environment,/etc/profile,/etc/profile.d/automail or etc kind of way you prefer). The action can be check what current username, check what current cvs version (which is going to update), and etc.

If you want to maintain the server, create a specific username, inside the startup script purposely detect this kind of login won't trigger the email.

I hope you can understand and it is a long story to explain the scenario and logic. Simply plan for you strategy. However, before you ask us the next question tell us your strategy so we can suggestion what is the next step.

regards,
Ks
 
Old 09-18-2007, 11:27 PM   #5
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 151Reputation: 151
Have a look at cvsspam. I use it here to send emails on commits and it works fine. It needs ruby to run, but you don't need to know the ruby syntax to install/configure it.
 
Old 09-19-2007, 01:22 AM   #6
kstan
Member
 
Registered: Sep 2004
Location: Malaysia, Johor
Distribution: Dual boot MacOS X/Ubuntu 9.10
Posts: 851

Rep: Reputation: 31
Hi gilead;
Quote:
Originally Posted by gilead View Post
Have a look at cvsspam. I use it here to send emails on commits and it works fine. It needs ruby to run, but you don't need to know the ruby syntax to install/configure it.
I see, it support svn? Seems like it need to always keep screening the repository to determine whether it have changes or not.


How the performance?
Regards,
Ks
 
Old 09-19-2007, 01:37 PM   #7
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 151Reputation: 151
As far as I know it doesn't support SVN. However, one of the sites linked at the bottom of their homepage might - I haven't checked.

There are about 30 users on the repository here so performance has never been a problem.
 
  


Reply

Tags
cvs, sendmail, server


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
thunderbird not downloading new mails automatically acid_kewpie Linux - Software 14 07-10-2008 12:53 AM
STRANGE:mailserver receives mails but is not able to send mails outside nics Linux - Server 1 05-04-2007 12:44 AM
Sendmai can send mails but unable to receive mails satimis Linux - Server 2 02-15-2007 09:22 AM
evolution - does it get mails automatically? byen Ubuntu 1 06-30-2005 06:59 PM
HELP!!! Cannot send mails in SLACKWARE 9.1 vinay_s_s Linux - Software 5 03-24-2004 08:48 AM


All times are GMT -5. The time now is 04:26 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration