Error on Post Commit Hook.BAT

2011-02-01 Thread Waseem Bokhari
Here is a Post-Commit.bat for generating email on every-commit.
 
@echo off
 
:
::: ARGUMENTS :::
 
SET REPOS=%1
SET REV=%2
 
:
::: GENERAL INFO 
SET DIR=E:\Repositories\WSBokhari\hooks
SET MESSAGE_FILE=%DIR%/message.txt
 
:
::: SVN INFO 
SET DIR=E:\Repositories\WSBokhari\hooks
SET REPO_PATH=file:///E:/Repositories/WSBokhari
 
::: Get the author ::
For /F "Tokens=*" %%I in ('svnlook author %REPOS% -r %REV%') Do Set
author=%%I
 
::: Get the log messsage ::
For /F "Tokens=*" %%I in ('svnlook log %REPOS% -r %REV%') Do Set log=%%I
 
::: Set the message body ::
ECHO Commit - rev %REV% (#%author%): '%log%' - %REPOS% > %MESSAGE_FILE%
 
:
::: EMAIL INFO ::
 
set to=-to ntpk@netsolpk.com
 
set subj=-s "SVN Commit (Revision %REV%)"
 
set server=-server mail.netsolpk.com
 
set auth=-u waseem.bokh...@netsolpk.com -pw 123 
 
set from=-f waseem.bokh...@netsolpk.com
 
:
::: SEND THE EMAIL ::
 
E:/Repositories/WSBokhari/%MESSAGE_FILE% %server% %to% %from% %subj% %auth%
 
 
Error Message:
 
post-commit hook failed (exit code 1) with output:
The filename, directory name, or volume label syntax is incorrect.
 
 
PS:
 
Even file message.txt is being creating in my Hooks Folder according to
this::
 
 SET MESSAGE_FILE=%DIR%/message.txt
 
 
Commit - rev 26 (#Shahzadw): 'w' - E:\Repositories\WSBokhari
 
 
Please advice.
 
I am using Visual SVN Server and TSVN on client side.
 
Thanks in advance.
 
 
 Cheers!
 
cid:image001.jpg@01CA74D6.C3770120
 
Waseem Bokhari I Configurations and Release Management 
NetSol Technologies (NasdaqCM: NTWK)
Tel: +92 42 111448800 Ext: 346 Mob: +92 321 4294926
  waseem.bokh...@netsoltech.com
 www.netsoltech.com
 
 


DISCLAIMER:  This e-mail and any file transmitted with it are confidential and 
intended solely 
for the use of the addressee.  If you are not the intended recipient, you are 
hereby advised that
any dissemination, distribution or copy of this email or its attachments is 
strictly prohibited.  If you
have received this email in error, please immediately notify us by return email 
and destroy this email 
message and its attachments.  This communication may contain forward-looking 
statements
relating to the development of NetSol Technologies' products and services and 
future operations.
The words "believe," "expect," "anticipate," "intend," variations of such 
words, and similar 
expressions, identify forward looking statements, but their absence does not 
mean that the 
statement is not forward-looking.  Views and opinions contained herein are 
those of the author of 
this email and do not necessarily represent those of NetSol Technologies.  
Statements contained 
herein are not guarantees of future performance and are subject to certain 
risks, uncertainties and 
assumptions that are difficult to predict. The company will not undertake to 
update any statements 
contained herein.

WARNING: The recipient should check this email and any attachment for the 
presence of viruses. 
Although the company has taken reasonable precautions to ensure no viruses are 
present in this 
email, the company does not accept responsibility for any loss or damage 
arising from the use of 
this email or attachment. Note: Please consider the environment before printing 
this e-mail. 
<>

Re: Error on Post Commit Hook.BAT

2011-02-01 Thread David Chapman

On 2/1/2011 10:16 PM, Waseem Bokhari wrote:


_Here is a Post-Commit.bat for generating email on every-commit._

*@echo off*

**

*:*

*::: ARGUMENTS :::*

**

*SET REPOS=%1*

*SET REV=%2*

**

*:*

*::: GENERAL INFO *

*SET DIR=E:\Repositories\WSBokhari\hooks*

*SET MESSAGE_FILE=%DIR%/message.txt*

**

*:*

*::: SVN INFO *

*SET DIR=E:\Repositories\WSBokhari\hooks*

*SET REPO_PATH=file:///E:/Repositories/WSBokhari*

**

*::: Get the author ::*

*For /F "Tokens=*" %%I in ('svnlook author %REPOS% -r %REV%') Do Set 
author=%%I*


**

*::: Get the log messsage ::*

*For /F "Tokens=*" %%I in ('svnlook log %REPOS% -r %REV%') Do Set log=%%I*

**

*::: Set the message body ::*

*ECHO Commit - rev %REV% (#%author%): '%log%' - %REPOS% > %MESSAGE_FILE%*

**

*:*

*::: EMAIL INFO ::*

**

*set to=-to ntpk@netsolpk.com*

**

*set subj=-s "SVN Commit (Revision %REV%)"*

**

*set server=-server mail.netsolpk.com*

**

*set auth=-u waseem.bokh...@netsolpk.com --pw 123 *

**

*set from=-f waseem.bokh...@netsolpk.com*

**

*:*

*::: SEND THE EMAIL ::*

**

*E:/Repositories/WSBokhari/%MESSAGE_FILE% %server% %to% %from% %subj% 
%auth%***


**

**

*_Error Message:_*

**

*post-commit hook failed (exit code 1) with output:*

*The filename, directory name, or volume label syntax is incorrect.*

**

**

*_PS:_*

Even file *message.txt***is being creating in my Hooks Folder 
according to this::**


**

*SET MESSAGE_FILE=%DIR%/message.txt*


**

//



This line looks wrong.  Try using a backslash ('\') instead of a forward 
slash ('/').  Although many Windows programs tolerate forward slashes in 
file names, the Windows batch processor is not one of them.  It uses 
forward slashes to mark parameters (as is shown in the "For /F" lines) 
so it is trying to interpret "/message.txt" as a parameter, not part of 
your message file name.


If you're going to be creating or editing Windows batch files, I 
strongly encourage you to buy a book on how to create them.  It's been 
so long that I can't recommend one to you, unfortunately.


--
David Chapman dcchap...@acm.org
Chapman Consulting -- San Jose, CA



RE: Error on Post Commit Hook.BAT

2011-02-01 Thread Waseem Bokhari
Even I have changed the slashed but the message was same.
 
Please advice.
 
 
 
 Cheers!
 
cid:image001.jpg@01CA74D6.C3770120
 
Waseem Bokhari I Configurations and Release Management 
NetSol Technologies (NasdaqCM: NTWK)
Tel: +92 42 111448800 Ext: 346 Mob: +92 321 4294926
 <mailto:waseem.bokha...@netsoltech.com> waseem.bokh...@netsoltech.com
<http://www.netsoltech.com/> www.netsoltech.com
 
 
From: David Chapman [mailto:dcchap...@acm.org] 
Sent: Wednesday, February 02, 2011 11:48 AM
To: Waseem Bokhari
Cc: users@subversion.apache.org
Subject: Re: Error on Post Commit Hook.BAT
 
On 2/1/2011 10:16 PM, Waseem Bokhari wrote: 
Here is a Post-Commit.bat for generating email on every-commit.
 
@echo off
 
:
::: ARGUMENTS :::
 
SET REPOS=%1
SET REV=%2
 
:
::: GENERAL INFO 
SET DIR=E:\Repositories\WSBokhari\hooks
SET MESSAGE_FILE=%DIR%/message.txt
 
:
::: SVN INFO 
SET DIR=E:\Repositories\WSBokhari\hooks
SET REPO_PATH=file:///E:/Repositories/WSBokhari
 
 
::: Get the author ::
For /F "Tokens=*" %%I in ('svnlook author %REPOS% -r %REV%') Do Set
author=%%I
 
::: Get the log messsage ::
For /F "Tokens=*" %%I in ('svnlook log %REPOS% -r %REV%') Do Set log=%%I
 
::: Set the message body ::
ECHO Commit - rev %REV% (#%author%): '%log%' - %REPOS% > %MESSAGE_FILE%
 
:
::: EMAIL INFO ::
 
set to=-to ntpk@netsolpk.com
 
set subj=-s "SVN Commit (Revision %REV%)"
 
set server=-server mail.netsolpk.com
 
set auth=-u waseem.bokh...@netsolpk.com -pw 123 
 
set from=-f waseem.bokh...@netsolpk.com
 
:
::: SEND THE EMAIL ::
 
E:/Repositories/WSBokhari/%MESSAGE_FILE% %server% %to% %from% %subj% %auth%
 
 
Error Message:
 
post-commit hook failed (exit code 1) with output:
The filename, directory name, or volume label syntax is incorrect.
 
 
PS:
 
Even file message.txt is being creating in my Hooks Folder according to
this::
 
 SET MESSAGE_FILE=%DIR%/message.txt
 



 

This line looks wrong.  Try using a backslash ('\') instead of a forward
slash ('/').  Although many Windows programs tolerate forward slashes in
file names, the Windows batch processor is not one of them.  It uses forward
slashes to mark parameters (as is shown in the "For /F" lines) so it is
trying to interpret "/message.txt" as a parameter, not part of your message
file name.

If you're going to be creating or editing Windows batch files, I strongly
encourage you to buy a book on how to create them.  It's been so long that I
can't recommend one to you, unfortunately.


-- 
David Chapman dcchap...@acm.org
Chapman Consulting -- San Jose, CA


DISCLAIMER:  This e-mail and any file transmitted with it are confidential and 
intended solely 
for the use of the addressee.  If you are not the intended recipient, you are 
hereby advised that
any dissemination, distribution or copy of this email or its attachments is 
strictly prohibited.  If you
have received this email in error, please immediately notify us by return email 
and destroy this email 
message and its attachments.  This communication may contain forward-looking 
statements
relating to the development of NetSol Technologies' products and services and 
future operations.
The words "believe," "expect," "anticipate," "intend," variations of such 
words, and similar 
expressions, identify forward looking statements, but their absence does not 
mean that the 
statement is not forward-looking.  Views and opinions contained herein are 
those of the author of 
this email and do not necessarily represent those of NetSol Technologies.  
Statements contained 
herein are not guarantees of future performance and are subject to certain 
risks, uncertainties and 
assumptions that are difficult to predict. The company will not undertake to 
update any statements 
contained herein.

WARNING: The recipient should check this email and any attachment for the 
presence of viruses. 
Although the company has taken reasonable precautions to ensure no viruses are 
present in this 
email, the company does not accept responsibility for any loss or damage 
arising from the use of 
this email or attachment. Note: Please consider the environment before printing 
this e-mail. 
<>

Re: Error on Post Commit Hook.BAT

2011-02-01 Thread David Chapman

On 2/1/2011 10:54 PM, Waseem Bokhari wrote:


<http://www.netsoltech.com/>//

*From:*David Chapman [mailto:dcchap...@acm.org]
*Sent:* Wednesday, February 02, 2011 11:48 AM
*To:* Waseem Bokhari
*Cc:* users@subversion.apache.org
*Subject:* Re: Error on Post Commit Hook.BAT

On 2/1/2011 10:16 PM, Waseem Bokhari wrote:

_Here is a Post-Commit.bat for generating email on every-commit._

*@echo off*

**

*:*

*::: ARGUMENTS :::*

**

*SET REPOS=%1*

*SET REV=%2*

**

*:*

*::: GENERAL INFO *

*SET DIR=E:\Repositories\WSBokhari\hooks*

*SET MESSAGE_FILE=%DIR%/message.txt*

**

*:*

*::: SVN INFO *

*SET DIR=E:\Repositories\WSBokhari\hooks*

*SET REPO_PATH=file:///E:/Repositories/WSBokhari 
*


**

*::: Get the author ::*

*For /F "Tokens=*" %%I in ('svnlook author %REPOS% -r %REV%') Do Set 
author=%%I*


**

*::: Get the log messsage ::*

*For /F "Tokens=*" %%I in ('svnlook log %REPOS% -r %REV%') Do Set log=%%I*

**

*::: Set the message body ::*

*ECHO Commit - rev %REV% (#%author%): '%log%' - %REPOS% > %MESSAGE_FILE%*

**

*:*

*::: EMAIL INFO ::*

**

*set to=-to ntpk@netsolpk.com <mailto:ntpk@netsolpk.com>*

**

*set subj=-s "SVN Commit (Revision %REV%)"*

**

*set server=-server mail.netsolpk.com*

**

*set auth=-u waseem.bokh...@netsolpk.com 
<mailto:waseem.bokh...@netsolpk.com> --pw 123 *


**

*set from=-f waseem.bokh...@netsolpk.com 
<mailto:waseem.bokh...@netsolpk.com>*


**

*:*

*::: SEND THE EMAIL ::*

**

*E:/Repositories/WSBokhari/%MESSAGE_FILE% %server% %to% %from% %subj% 
%auth%*


**

**

*_Error Message:_*

**

*post-commit hook failed (exit code 1) with output:*

*The filename, directory name, or volume label syntax is incorrect.*

**

**

*_PS:_*

Even file *message.txt***is being creating in my Hooks Folder 
according to this::


**

*SET MESSAGE_FILE=%DIR%/message.txt*



//


This line looks wrong.  Try using a backslash ('\') instead of a 
forward slash ('/').  Although many Windows programs tolerate forward 
slashes in file names, the Windows batch processor is not one of 
them.  It uses forward slashes to mark parameters (as is shown in the 
"For /F" lines) so it is trying to interpret "/message.txt" as a 
parameter, not part of your message file name.


If you're going to be creating or editing Windows batch files, I 
strongly encourage you to buy a book on how to create them.  It's been 
so long that I can't recommend one to you, unfortunately.


--
 David Chapman  dcchap...@acm.org  <mailto:dcchap...@acm.org>
 Chapman Consulting -- San Jose, CA


>


Even I have changed the slashed but the message was same.







Please advice.


Did you change both lines?  I also see forward slashes in the line which 
is described as "SEND THE EMAIL" at the very end.


For that matter, this line looks wrong too.  Earlier, you set the 
variable DIR to "E:\Repositories\WSBokhari\hooks".  The value of this 
variable will be substituted whenever "%DIR%" appears.  Thus if you have 
"SET MESSAGE_FILE=%DIR%\message.txt" this is the same as "SET 
MESSAGE_FILE=E:\Repositories\WSBokhari\hooks\message.txt" and the value 
of this variable will be substituted whenever "%MESSAGE_FILE%" appears, 
as it does on the last line.


If you replace the forward slashes in the last line with backslashes and 
perform the substitution of "%MESSAGE_FILE%", the first word of the line 
will become 
"E:\Repositories\WSBokhari\E:\Repositories\WSBokhari\hooks\message.txt", 
which is obviously an invalid Windows path name.


The message file is clearly not intended to include the name of the mail 
program, so you need to supply the name of the E-mail program.  I don't 
know what that would be.  Nor do I know the command-line parameters for 
the E-mail program, so I cannot tell you whether the syntax of this line 
is correct.  But if your E-mail send program is 
"E:\Repositories\WSBokhari\hooks\send_message.exe" and it accepted the 
parameters you have listed, the last line of the batch program would be:


E:\Repositories\WSBokhari\hooks\send_message.exe %MESSAGE_FILE% %server% 
%to% %from% %subj% %auth%


You really need a book on Windows batch file processing.
//

--
David Chapman dcchap...@acm.org
Chapman Consulting -- San Jose, CA



RE: Error on Post Commit Hook.BAT

2011-02-01 Thread Waseem Bokhari
I am not using any email program But Only using my SMTP SERVER
 
E:\Repositories\WSBokhari\hooks\send_message.exe %MESSAGE_FILE% %server%
%to% %from% %subj% %auth%
 
 
Then how would I mention this?
 
Thanks
 
 
 Cheers!
 
cid:image001.jpg@01CA74D6.C3770120
 
Waseem Bokhari I Configurations and Release Management 
NetSol Technologies (NasdaqCM: NTWK)
Tel: +92 42 111448800 Ext: 346 Mob: +92 321 4294926
 <mailto:waseem.bokha...@netsoltech.com> waseem.bokh...@netsoltech.com
<http://www.netsoltech.com/> www.netsoltech.com
 
 
From: David Chapman [mailto:dcchap...@acm.org] 
Sent: Wednesday, February 02, 2011 12:31 PM
To: Waseem Bokhari
Cc: users@subversion.apache.org
Subject: Re: Error on Post Commit Hook.BAT
 
On 2/1/2011 10:54 PM, Waseem Bokhari wrote: 
 
 
From: David Chapman [mailto:dcchap...@acm.org] 
Sent: Wednesday, February 02, 2011 11:48 AM
To: Waseem Bokhari
Cc: users@subversion.apache.org
Subject: Re: Error on Post Commit Hook.BAT
 
On 2/1/2011 10:16 PM, Waseem Bokhari wrote: 
Here is a Post-Commit.bat for generating email on every-commit.
 
@echo off
 
:
::: ARGUMENTS :::
 
SET REPOS=%1
SET REV=%2
 
:
::: GENERAL INFO 
SET DIR=E:\Repositories\WSBokhari\hooks
SET MESSAGE_FILE=%DIR%/message.txt
 
:
::: SVN INFO 
SET DIR=E:\Repositories\WSBokhari\hooks
SET REPO_PATH=file:///E:/Repositories/WSBokhari
 
 
::: Get the author ::
For /F "Tokens=*" %%I in ('svnlook author %REPOS% -r %REV%') Do Set
author=%%I
 
::: Get the log messsage ::
For /F "Tokens=*" %%I in ('svnlook log %REPOS% -r %REV%') Do Set log=%%I
 
::: Set the message body ::
ECHO Commit - rev %REV% (#%author%): '%log%' - %REPOS% > %MESSAGE_FILE%
 
:
::: EMAIL INFO ::
 
set to=-to ntpk@netsolpk.com
 
set subj=-s "SVN Commit (Revision %REV%)"
 
set server=-server mail.netsolpk.com
 
set auth=-u waseem.bokh...@netsolpk.com -pw 123 
 
set from=-f waseem.bokh...@netsolpk.com
 
:
::: SEND THE EMAIL ::
 
E:/Repositories/WSBokhari/%MESSAGE_FILE% %server% %to% %from% %subj% %auth%
 
 
Error Message:
 
post-commit hook failed (exit code 1) with output:
The filename, directory name, or volume label syntax is incorrect.
 
 
PS:
 
Even file message.txt is being creating in my Hooks Folder according to
this::
 
 SET MESSAGE_FILE=%DIR%/message.txt
 



 

This line looks wrong.  Try using a backslash ('\') instead of a forward
slash ('/').  Although many Windows programs tolerate forward slashes in
file names, the Windows batch processor is not one of them.  It uses forward
slashes to mark parameters (as is shown in the "For /F" lines) so it is
trying to interpret "/message.txt" as a parameter, not part of your message
file name.

If you're going to be creating or editing Windows batch files, I strongly
encourage you to buy a book on how to create them.  It's been so long that I
can't recommend one to you, unfortunately.


-- 
David Chapman dcchap...@acm.org
Chapman Consulting -- San Jose, CA
 
> 
>Even I have changed the slashed but the message was same.
> 
>Please advice.
 
Did you change both lines?  I also see forward slashes in the line which is
described as "SEND THE EMAIL" at the very end.

For that matter, this line looks wrong too.  Earlier, you set the variable
DIR to "E:\Repositories\WSBokhari\hooks".  The value of this variable will
be substituted whenever "%DIR%" appears.  Thus if you have "SET
MESSAGE_FILE=%DIR%\message.txt" this is the same as "SET
MESSAGE_FILE=E:\Repositories\WSBokhari\hooks\message.txt" and the value of
this variable will be substituted whenever "%MESSAGE_FILE%" appears, as it
does on the last line.

If you replace the forward slashes in the last line with backslashes and
perform the substitution of "%MESSAGE_FILE%", the first word of the line
will become
"E:\Repositories\WSBokhari\E:\Repositories\WSBokhari\hooks\message.txt",
which is obviously an invalid Windows path name.

The message file is clearly not intended to include the name of the mail
program, so you need to supply the name of the E-mail program.  I don't know
what that would be.  Nor do I know the command-line parameters for the
E-mail program, so I cannot tell you whether the syntax of this line is
correct.  But if your E-mail send program is
"E:\Repositories\WSBokhari\hooks\send_

Re: Error on Post Commit Hook.BAT

2011-02-01 Thread David Chapman

On 2/1/2011 11:36 PM, Waseem Bokhari wrote:


I am not using any email program But Only using my SMTP SERVER

E:\Repositories\WSBokhari\hooks\send_message.exe%MESSAGE_FILE% 
%server% %to% %from% %subj% %auth%


Then how would I mention this?




You need to find a program that contacts your SMTP server from the 
Windows command line prompt and sends a message to the server.  You may 
have one already installed on your machine; if you are defining a 
repository for a group of developers you will also need to ensure that 
it is installed (or at least accessible on the search path) on every 
developer's machine.


My Subversion installation does not send E-mail to developers and so I 
do not know of any programs that send mail to an SMTP server from a 
Windows command line prompt.  Perhaps someone else on the list will 
know.  I can't help you further.


--
David Chapman dcchap...@acm.org
Chapman Consulting -- San Jose, CA



Re: Error on Post Commit Hook.BAT

2011-02-02 Thread Andy Levy
On Wed, Feb 2, 2011 at 02:49, David Chapman  wrote:
> On 2/1/2011 11:36 PM, Waseem Bokhari wrote:
>
> I am not using any email program But Only using my SMTP SERVER
>
>
>
> E:\Repositories\WSBokhari\hooks\send_message.exe %MESSAGE_FILE% %server%
> %to% %from% %subj% %auth%
>
>
>
>
>
> Then how would I mention this?
>
>
>
> You need to find a program that contacts your SMTP server from the Windows
> command line prompt and sends a message to the server.  You may have one
> already installed on your machine; if you are defining a repository for a
> group of developers you will also need to ensure that it is installed (or at
> least accessible on the search path) on every developer's machine.

It's only needed on developer machines if it's a TSVN client-side
hook, or the repository is accessed via file:///, which is a really
bad idea in a shared environment.

> My Subversion installation does not send E-mail to developers and so I do
> not know of any programs that send mail to an SMTP server from a Windows
> command line prompt.  Perhaps someone else on the list will know.  I can't
> help you further.

The best thing to do is skip using BAT files altogether. You can
completely eliminate the need for a "send email" program by using a
modern Windows scripting environment like Windows Script Host (where
you'll use the build-in mail objects) or better yet PowerShell (single
cmdlet, send-mailmessage).

BAT files are clunky, difficult to both read and write, weak &
primitive. Better alternatives have existed for a decade now, but
people still cling to them because they haven't bothered to explore
what else is out there.


RE: Error on Post Commit Hook.BAT

2011-02-02 Thread Waseem Bokhari
-Original Message-
From: Andy Levy [mailto:andy.l...@gmail.com] 
Sent: Wednesday, February 02, 2011 4:26 PM
To: David Chapman
Cc: Waseem Bokhari; users@subversion.apache.org
Subject: Re: Error on Post Commit Hook.BAT
 
On Wed, Feb 2, 2011 at 02:49, David Chapman  wrote:
> On 2/1/2011 11:36 PM, Waseem Bokhari wrote:
 
 
I have used this link
 
http://groups.google.com/group/visualsvn/browse_thread/thread/c7dd0a5d3a7c46
88
 
 
Installed SMTP Services and Skipped SSL portion then apply this.
--smtp-ssl ^
 
Commit successfully done BUT NO EMAIL Generation L
 
Please remember that I am using Visual SVN Server with Windows 2003 Server
as OS.
 
 
Please advice.
 
 
 Gracias
Waseem
 
 


DISCLAIMER:  This e-mail and any file transmitted with it are confidential and 
intended solely 
for the use of the addressee.  If you are not the intended recipient, you are 
hereby advised that
any dissemination, distribution or copy of this email or its attachments is 
strictly prohibited.  If you
have received this email in error, please immediately notify us by return email 
and destroy this email 
message and its attachments.  This communication may contain forward-looking 
statements
relating to the development of NetSol Technologies' products and services and 
future operations.
The words "believe," "expect," "anticipate," "intend," variations of such 
words, and similar 
expressions, identify forward looking statements, but their absence does not 
mean that the 
statement is not forward-looking.  Views and opinions contained herein are 
those of the author of 
this email and do not necessarily represent those of NetSol Technologies.  
Statements contained 
herein are not guarantees of future performance and are subject to certain 
risks, uncertainties and 
assumptions that are difficult to predict. The company will not undertake to 
update any statements 
contained herein.

WARNING: The recipient should check this email and any attachment for the 
presence of viruses. 
Although the company has taken reasonable precautions to ensure no viruses are 
present in this 
email, the company does not accept responsibility for any loss or damage 
arising from the use of 
this email or attachment. Note: Please consider the environment before printing 
this e-mail. 


Re: Error on Post Commit Hook.BAT

2011-02-02 Thread Andy Levy
On Wed, Feb 2, 2011 at 06:35, Waseem Bokhari
 wrote:
> -Original Message-
> From: Andy Levy [mailto:andy.l...@gmail.com]
> Sent: Wednesday, February 02, 2011 4:26 PM
> To: David Chapman
> Cc: Waseem Bokhari; users@subversion.apache.org
> Subject: Re: Error on Post Commit Hook.BAT
>
>
>
> On Wed, Feb 2, 2011 at 02:49, David Chapman  wrote:
>
>> On 2/1/2011 11:36 PM, Waseem Bokhari wrote:
>
>
>
>
>
> I have used this link
>
>
>
> http://groups.google.com/group/visualsvn/browse_thread/thread/c7dd0a5d3a7c4688
>
>
>
>
>
> Installed SMTP Services and Skipped SSL portion then apply this.
>
>     --smtp-ssl ^
>
>
>
> Commit successfully done BUT NO EMAIL Generation L
>
>
>
> Please remember that I am using Visual SVN Server with Windows 2003 Server
> as OS.

Installing SMTP services only sets up your server so that it can relay
messages via SMTP.

You still need a program that is called within the BAT file to send the message.


>
> DISCLAIMER: This e-mail and any file transmitted with it are confidential
> and intended solely for the use of the addressee. If you are not the
> intended recipient, you are hereby advised that any dissemination,
> distribution or copy of this email or its attachments is strictly
> prohibited. If you have received this email in error, please immediately
> notify us by return email and destroy this email message and its
> attachments. This communication may contain forward-looking statements
> relating to the development of NetSol Technologies' products and services
> and future operations. The words "believe," "expect," "anticipate,"
> "intend," variations of such words, and similar expressions, identify
> forward looking statements, but their absence does not mean that the
> statement is not forward-looking. Views and opinions contained herein are
> those of the author of this email and do not necessarily represent those of
> NetSol Technologies. Statements contained herein are not guarantees of
> future performance and are subject to certain risks, uncertainties and
> assumptions that are difficult to predict. The company will not undertake to
> update any statements contained herein.
>
> WARNING: The recipient should check this email and any attachment for the
> presence of viruses. Although the company has taken reasonable precautions
> to ensure no viruses are present in this email, the company does not accept
> responsibility for any loss or damage arising from the use of this email or
> attachment. Note: Please consider the environment before printing this
> e-mail.

You do understand that such disclaimers are completely useless on
public mailing lists, yes? Please turn it off, or use an account that
doesn't attach it.


Re: Error on Post Commit Hook.BAT

2011-02-02 Thread Thorsten Schöning
Guten Tag David Chapman,
am Mittwoch, 2. Februar 2011 um 08:49 schrieben Sie:

> My Subversion installation does not send E-mail to developers and so I
> do not know of any programs that send mail to an SMTP server from a 
> Windows command line prompt.  Perhaps someone else on the list will 
> know.  I can't help you further.

sendmail.exe works pretty fine for me:

http://glob.com.au/sendmail/

Mit freundlichen Grüßen,

Thorsten Schöning

-- 
Thorsten Schöning
AM-SoFT IT-Systeme - Hameln | Potsdam | Leipzig
 
Telefon: Potsdam: 0331-743881-0
E-Mail:  tschoen...@am-soft.de
Web: http://www.am-soft.de

AM-SoFT GmbH IT-Systeme, Konsumhof 1-5, 14482 Potsdam
Amtsgericht Potsdam HRB 21278 P, Geschäftsführer: Andreas Muchow



RE: Error on Post Commit Hook.BAT

2011-02-02 Thread Bob Archer
> On 2/1/2011 11:36 PM, Waseem Bokhari wrote:
> I am not using any email program But Only using my SMTP SERVER
> 
> E:\Repositories\WSBokhari\hooks\send_message.exe %MESSAGE_FILE%
> %server% %to% %from% %subj% %auth%
> 
> 
> Then how would I mention this?
> 
> 
> 
> You need to find a program that contacts your SMTP server from the
> Windows command line prompt and sends a message to the server.  You
> may have one already installed on your machine; if you are defining
> a repository for a group of developers you will also need to ensure
> that it is installed (or at least accessible on the search path) on
> every developer's machine.
> 
> My Subversion installation does not send E-mail to developers and
> so I do not know of any programs that send mail to an SMTP server
> from a Windows command line prompt.  Perhaps someone else on the
> list will know.  I can't help you further.
> 
> --
> David Chapman dcchap...@acm.org
> Chapman Consulting -- San Jose, CA

On a Windows server with the SMTP server running you can just drop the email 
file into the mailroot\pickup folder and the email will be sent automatically. 
This is probably easier that finding some program that uses the SMTP 
protocol... tHis assumes the credentials running your batch has permissions to 
the pickup folder on the SMTP server of course.

BOb