You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Adesuyi, Ade A (AT - Atlanta" <Ad...@autotrader.com> on 2006/08/13 16:36:10 UTC

svnnotify on Solaris using mail or mailx.

I hope this is the correct mail list for this question.
 
In our environment, we have to use Solaris with either the mailx program
or mail program.  I'm able to send test mailings with: bash-2.05$
/usr/bin/mailx -s "test to ade" ade.adesuyi@autotrader.com < post-commit
 
It appears that the parameter switches for sendmail and mailx are
incompatible.  As a result, I get the following errors.  I've searched
online to no avail for ""svn::notify" +mailx".  Do I have to attempt to
alter Notify.pm?  Any help would be greatly appreciated.
 
 
bash-2.05$ /usr/local/packages/perl-5.8.0/bin/svnnotify --repos-path
/export/home/a/svn/development --revision 3 --to
'ade.adesuyi@autotrader.com' --from 'ade.adesuyi@autotrader.com'
--sendmail mailx
mailx: illegal option -- o
Usage: mailx -eiIUdFntBNHvV~ -T FILE -u USER -h hops -r address
                -s SUBJECT -f FILE users

 
bash-2.05$ /usr/local/packages/perl-5.8.0/bin/svnnotify --repos-path
/export/home/a/svn/development --revision 1 --to
'ade.adesuyi@autotrader.com' --from 'ade.adesuyi@autotrader.com'
--sendmail mail
mail: illegal option -- o
mail: illegal option -- i
mail: -t option used but no recipient(s) specified.
mail: Usage: [-ehpPqr] [-f file] [-x debuglevel]
or      [-tw] [-m message_type] [-T file] [-x debuglevel] persons
or      [-x debuglevel]
Child process exited: 1280

 
Thank you in advance.
Ade.

RE: svnnotify on Solaris using mail or mailx.

Posted by "Adesuyi, Ade A (AT - Atlanta" <Ad...@autotrader.com>.
Also, I had to use smtp on Solaris
 
    --smtp          smtp.domain.com
Couldnt use
    --sendmail      mail
or
    --sendmail      /usr/bin/mailx
 
Sorry for sending many posts.

	-----Original Message-----
	From: Adesuyi, Ade A (AT - Atlanta 
	Sent: Sunday, August 13, 2006 2:06 PM
	To: 'users@subversion.tigris.org'
	Subject: RE: svnnotify on Solaris using mail or mailx.
	
	
	Sometimes, it seems that after you send out a call for help, you
figure out your omission.  The problem was the "<" and ">" I left in the
email address fields.
	 
	 
	Changed to:
	    --to            ade.adesuyi@autotrader.com    \
	    --from          ade.adesuyi@autotrader.com    \
	 
	 
	 
	  Phew!!!

		-----Original Message-----
		From: Adesuyi, Ade A (AT - Atlanta 
		Sent: Sunday, August 13, 2006 12:40 PM
		To: 'users@subversion.tigris.org'
		Subject: RE: svnnotify on Solaris using mail or mailx.
		
		
		Neglected to add contents of the post-commit file.
		 
		#!/bin/sh
		 
		

		REPOS="$1"
		REV="$2"
		 
		echo "`date` I am in here!!  It worked!!">>output.txt
		 
		/usr/local/packages/perl-5.8.0/bin/svnnotify      \
		    --repos-path    "$REPOS"                      \
		    --svnlook       /usr/local/bin/svnlook        \
		    --revision      "$REV"                        \
		    --subject-cx                                  \
		    --with-diff                                   \
		    --handler       HTML::ColorDiff               \
		    --to            <ad...@autotrader.com>  \
		    --from          <ad...@autotrader.com>  \
		    --sendmail      /usr/bin/mailx

			-----Original Message-----
			From: Adesuyi, Ade A (AT - Atlanta 
			Sent: Sunday, August 13, 2006 12:36 PM
			To: 'users@subversion.tigris.org'
			Subject: svnnotify on Solaris using mail or
mailx.
			
			
			I hope this is the correct mail list for this
question.
			 
			In our environment, we have to use Solaris with
either the mailx program or mail program.  I'm able to send test
mailings with: bash-2.05$ /usr/bin/mailx -s "test to ade"
ade.adesuyi@autotrader.com < post-commit
			 
			It appears that the parameter switches for
sendmail and mailx are incompatible.  As a result, I get the following
errors.  I've searched online to no avail for ""svn::notify" +mailx".
Do I have to attempt to alter Notify.pm?  Any help would be greatly
appreciated.
			 
			 
			bash-2.05$
/usr/local/packages/perl-5.8.0/bin/svnnotify --repos-path
/export/home/a/svn/development --revision 3 --to
'ade.adesuyi@autotrader.com' --from 'ade.adesuyi@autotrader.com'
--sendmail mailx
			mailx: illegal option -- o
			Usage: mailx -eiIUdFntBNHvV~ -T FILE -u USER -h
hops -r address
			                -s SUBJECT -f FILE users
			
			 
			bash-2.05$
/usr/local/packages/perl-5.8.0/bin/svnnotify --repos-path
/export/home/a/svn/development --revision 1 --to
'ade.adesuyi@autotrader.com' --from 'ade.adesuyi@autotrader.com'
--sendmail mail
mail: illegal option -- o
			mail: illegal option -- i
			mail: -t option used but no recipient(s)
specified.
			mail: Usage: [-ehpPqr] [-f file] [-x debuglevel]
			or      [-tw] [-m message_type] [-T file] [-x
debuglevel] persons
			or      [-x debuglevel]
			Child process exited: 1280
			
			 
			Thank you in advance.
			Ade.


RE: svnnotify on Solaris using mail or mailx.

Posted by "Adesuyi, Ade A (AT - Atlanta" <Ad...@autotrader.com>.
Sometimes, it seems that after you send out a call for help, you figure
out your omission.  The problem was the "<" and ">" I left in the email
address fields.
 
 
Changed to:
    --to            ade.adesuyi@autotrader.com    \
    --from          ade.adesuyi@autotrader.com    \
 
 
 
  Phew!!!

	-----Original Message-----
	From: Adesuyi, Ade A (AT - Atlanta 
	Sent: Sunday, August 13, 2006 12:40 PM
	To: 'users@subversion.tigris.org'
	Subject: RE: svnnotify on Solaris using mail or mailx.
	
	
	Neglected to add contents of the post-commit file.
	 
	#!/bin/sh
	 
	

	REPOS="$1"
	REV="$2"
	 
	echo "`date` I am in here!!  It worked!!">>output.txt
	 
	/usr/local/packages/perl-5.8.0/bin/svnnotify      \
	    --repos-path    "$REPOS"                      \
	    --svnlook       /usr/local/bin/svnlook        \
	    --revision      "$REV"                        \
	    --subject-cx                                  \
	    --with-diff                                   \
	    --handler       HTML::ColorDiff               \
	    --to            <ad...@autotrader.com>  \
	    --from          <ad...@autotrader.com>  \
	    --sendmail      /usr/bin/mailx

		-----Original Message-----
		From: Adesuyi, Ade A (AT - Atlanta 
		Sent: Sunday, August 13, 2006 12:36 PM
		To: 'users@subversion.tigris.org'
		Subject: svnnotify on Solaris using mail or mailx.
		
		
		I hope this is the correct mail list for this question.
		 
		In our environment, we have to use Solaris with either
the mailx program or mail program.  I'm able to send test mailings with:
bash-2.05$ /usr/bin/mailx -s "test to ade" ade.adesuyi@autotrader.com <
post-commit
		 
		It appears that the parameter switches for sendmail and
mailx are incompatible.  As a result, I get the following errors.  I've
searched online to no avail for ""svn::notify" +mailx".  Do I have to
attempt to alter Notify.pm?  Any help would be greatly appreciated.
		 
		 
		bash-2.05$ /usr/local/packages/perl-5.8.0/bin/svnnotify
--repos-path /export/home/a/svn/development --revision 3 --to
'ade.adesuyi@autotrader.com' --from 'ade.adesuyi@autotrader.com'
--sendmail mailx
		mailx: illegal option -- o
		Usage: mailx -eiIUdFntBNHvV~ -T FILE -u USER -h hops -r
address
		                -s SUBJECT -f FILE users
		
		 
		bash-2.05$ /usr/local/packages/perl-5.8.0/bin/svnnotify
--repos-path /export/home/a/svn/development --revision 1 --to
'ade.adesuyi@autotrader.com' --from 'ade.adesuyi@autotrader.com'
--sendmail mail
mail: illegal option -- o
		mail: illegal option -- i
		mail: -t option used but no recipient(s) specified.
		mail: Usage: [-ehpPqr] [-f file] [-x debuglevel]
		or      [-tw] [-m message_type] [-T file] [-x
debuglevel] persons
		or      [-x debuglevel]
		Child process exited: 1280
		
		 
		Thank you in advance.
		Ade.


RE: svnnotify on Solaris using mail or mailx.

Posted by "Adesuyi, Ade A (AT - Atlanta" <Ad...@autotrader.com>.
Neglected to add contents of the post-commit file.
 
#!/bin/sh
 

REPOS="$1"
REV="$2"
 
echo "`date` I am in here!!  It worked!!">>output.txt
 
/usr/local/packages/perl-5.8.0/bin/svnnotify      \
    --repos-path    "$REPOS"                      \
    --svnlook       /usr/local/bin/svnlook        \
    --revision      "$REV"                        \
    --subject-cx                                  \
    --with-diff                                   \
    --handler       HTML::ColorDiff               \
    --to            <ad...@autotrader.com>  \
    --from          <ad...@autotrader.com>  \
    --sendmail      /usr/bin/mailx

	-----Original Message-----
	From: Adesuyi, Ade A (AT - Atlanta 
	Sent: Sunday, August 13, 2006 12:36 PM
	To: 'users@subversion.tigris.org'
	Subject: svnnotify on Solaris using mail or mailx.
	
	
	I hope this is the correct mail list for this question.
	 
	In our environment, we have to use Solaris with either the mailx
program or mail program.  I'm able to send test mailings with:
bash-2.05$ /usr/bin/mailx -s "test to ade" ade.adesuyi@autotrader.com <
post-commit
	 
	It appears that the parameter switches for sendmail and mailx
are incompatible.  As a result, I get the following errors.  I've
searched online to no avail for ""svn::notify" +mailx".  Do I have to
attempt to alter Notify.pm?  Any help would be greatly appreciated.
	 
	 
	bash-2.05$ /usr/local/packages/perl-5.8.0/bin/svnnotify
--repos-path /export/home/a/svn/development --revision 3 --to
'ade.adesuyi@autotrader.com' --from 'ade.adesuyi@autotrader.com'
--sendmail mailx
	mailx: illegal option -- o
	Usage: mailx -eiIUdFntBNHvV~ -T FILE -u USER -h hops -r address
	                -s SUBJECT -f FILE users
	
	 
	bash-2.05$ /usr/local/packages/perl-5.8.0/bin/svnnotify
--repos-path /export/home/a/svn/development --revision 1 --to
'ade.adesuyi@autotrader.com' --from 'ade.adesuyi@autotrader.com'
--sendmail mail
mail: illegal option -- o
	mail: illegal option -- i
	mail: -t option used but no recipient(s) specified.
	mail: Usage: [-ehpPqr] [-f file] [-x debuglevel]
	or      [-tw] [-m message_type] [-T file] [-x debuglevel]
persons
	or      [-x debuglevel]
	Child process exited: 1280
	
	 
	Thank you in advance.
	Ade.