Patent Publication Number: US-3878252-A

Title: Ring substituted beta-hydroxy-phenyethylmethyl sulphone or sulphoxide

Description:
United States Patent 1 Cresswell et a1.  
 [ 1 Apr. 15, 1975 RING SUBSTITUTED BETA-HYDROXY-PHENYETHYLMETHYL SULPHONE OR SULPHOXIDE [75] Inventors: Ronald M. Cresswell, Raleigh; John W. Mentha, Washington, both of N.C.  
 -[73] Assignee: Burroughs Wellcome C0., Research Triangle Park, N.C.  
 [22] Filed: Aug. 9, 1972 [21] Appl. No.: 279,260  
 Related U.S. Application Data [60] Division of Ser. No. 75,276, Sept. 24, 1970, abandoned, which is a continuation-in-part of Ser. No. 16,605, March 4, 1970, abandoned.  
 [52] U.S. Cl 260/607 A; 260/33.7; 260/592;  
  260/251 R; 260/465 E; 424/251 [51] Int. Cl. C07c 147/06 [58] Field of Search 260/607 A [56] References Cited UNITED STATES PATENTS 10/1967 Russell et a1 260/590 OTHER PUBLICATIONS J. Amer. Chem. Soc., Corey et al., 1345-1352, Vol. 87, 1965.  
 J. Org. Chem., Russell et al., 2854-2858, Vol. 31.  
 J. Amer. Chem. Soc., Becker et al., 3410-3414, Vol. 85.  
 J. Org. Chem., Becker et al., 1896-1897, Vol. 28.  
 Primary Examiner-Lewis Gotts Assistant ExaminerD. R. Phillips Attorney, Agent, or Firm-Dike, Bronstein, Roberts, Cushman &amp; Pfund [57] ABSTRACT Compounds and methods of making compounds of the formula 26 Claims, No Drawings RING SUBSTITUTED BETA-HYDROXY-PHENYETHYLMETHYL SULPHONE OR SULPHOXIDE This application is a division of US. Pat. application Ser. No. 75,276&#39;filed Sept. 24, i970, now abandoned which is a continuation in part of application Ser. No. 16,605 filed Mar. 4, 1970. now abandoned.  
  This invention relates to improved methods of preparing S-benzylpyrimidines and more particularly is related to a class of stable a-benzylacrylonitrile intermediates, and to methods of making such compounds.  
  2,4,-Diamino 5-benzylpyrimidines possess both antimalarial and antibacterial activities (J. Am. Chem. Soc., 1951. 73, 3758). Maximal antibacterial activity is found among derivatives which bear electron deonating substituents in the benzene nucleus and are unsubstituted in the 6th position of the pyrimidine moiety. 2,4-Diamino-5-(3&#39;,4,5&#39;-trimethoxybenzyl) pyrimidine or trimethoprim (U.S. Pat. No. 2,909,522) has a moderately broad antibacterial spectrum which includes many of the Gram-positive species but it is also active against species of the genus Proteus. In common with other 2,4-diaminopyrimidines it is a competitor of folic and folinic acids in microorganisms which require these nutrilites, and it can be shown to inhibit dihydrofolate reductase in Streptococcus faecalis. A strong potentiative effect is observed when the drug is administered in combination with sulphonamides as a consequence of the sequential blockade of the biochemical pathway which leads to the a? novo synthesis of coenzymes F. This potentiation may be demonstrated both in vitro and in experimental infections in mice with Staphyloccoccus and Proteus species.  
  2,4-Diamino-S-benzylpyrimidines, which includes trimethoprim and 2,4-diamino-5-(3&#39;,4-dimethoxybenzyl)pyrimidine or diaveridine and 2,4-diamino-5- (3,4-dimethoxy-S-bromobenzyl)pyrimidine (U.S. Pat. No. 2,658,897), may be administered orally at a dose of I mg/kg to 30 mg/kg per day.  
  Preferably these compounds are administered in tablet form to a mammal being treated, and trimethoprim may advantageously be combined with sulphamethoxazole against certain respiratory infections. A further example of this class is 2,4-diamino-5-( 2&#39;-methyl-4&#39;,5&#39;- dimethoxybenzyl)pyrimidine (ormetoprim), which has been reported to show antibacterial activity, and also has coccidiostatic properties when combined with sulphadimethoxine.  
  A new route was developed some years ago for the preparation of 2,4-diamino-S-benzylpyrimidines (see Stenbuck, Baltzly and Hood, J. Org. Chem., 1963, 28, 1983 and British Pat. Specification No. 957,797). This route comprises the steps of (i) condensing an aromatic aldehyde with a B-substituted propionitrile in the presence of both an alcohol as solvent and a strong base to give a mixture of isomers of formulae (la) and (lb) respectively:  
  /CN AYCHO CHr-CN AICH=C my CH1Z (Ia) CN ArCl-I;-C  
 CHZ (Ib) wherein Ar is an optionally substituted phenyl group, Y is an alkoxy, thioalkyl or dialkylamino group, and Z 2 is the group Y or is an alkoxy group derived from the solvent alcohol; and  
  ii. reacting either the pure benzal isomer (la) or a mixture of benzal and benzyl&#39; isomers (la) and 5 (lb) respectively with guanidine to give a 5- benzylpyrimidine of formula Although it was known that the intermediate product obtained in the first step was a mixture of isomers of formulae (la) and (b), only the (la) benzal isomer could be isolated in a crystalline form after some purification steps. The two isomers were assumed to be in equilibrium with each other when prepared under alkaline conditions and further reacted with guanidine according to the aforesaid disclosures, but it was not clearly established which of the isomers was primarily interacting in the second step. In many cases this method affords acceptable yields but in certain instances extensive losses (up to about half the material used) ensure from formation of yellow polymers.  
  The further conversion of composite mixtures of derivatives and isomers according to British Pat. Specification No. 957,797. afforded the required 2,4-diamino- 5-benzylpyrimidines only in yields between and45 percent, and in view of the importance of the final products and the difficulties with by-products and impurities, alternative methods were also explored by various investigators. For instance, a prior written document discloses a process comprising the steps of (a) reacting. acetylthymine with N-bromosuccinimide to form acetylbromothymine, (b) condensing the product with a substituted benzene, (c) reacting the product with a halogenating agent, and (d) aminating the halogeno derivative. However, this process suffers from the disadvantages that acetylbromothymine is expensive to make, condensation with the benzene compound does not provide the further intermediate in a high yield, and the last stage requires operation under pressure and usually results in an equilibrium state with consequent poor yields. Altogether the process re- 45 quires four stages to obtain the final product, and&#39;none of the stages is particularly advantageous.  
  Subsequent developments showed that the polymer formation obtained when operating the process described in the specification of British Pat. No. 957,797, could be prevented or reduced in cases of B-alkoxyderivatives of compounds (In) and (lb) by temporarily saturating the double bond with excess alkoxide in alcohol.  
  This provides the corresponding acetal of formula (ll), for instance, according to the reaction outlined below:  
 CH&#39;zOMe MeOH excess NaOMe AtCHr-C CH(OMe):  
 When the acetal (ll) is subsequently treated with guanidine in alcoholic solution, the alkaline condition is thought to catalyse the reconstitution of the double bond, initially in the form of(lb), and the intermediate can thus react with guanidine to give the desired 5- benzylpyrimidine.  
  Acetals of formula (ll) may also be prepared by condensing the corresponding aromatic aldehyde with a 3,3-dialkoxy&#39;propionitrile and reducing, preferably catalytically, the 3,3-dialkoxy-Z-benzalpropionitrile intermediate so obtained. (See U.S. Pat. No. 3,487,083).  
  The aforsaid British Pat. Specification No. 957,797 also describes (Example 14) the reaction of veratraldehyde with B-dimethylaminopropionitrile in the presence of sodium in ethanol to give a mixture of B-dimethylaminoveratralnitrile (Ill) and B-ethoxyveratralnitrile (IV) in a 32 percent yield.  
 MeO  
  /CN M60 CH=C CH NMez (III) MeO /CN MeO OH=C CHzO Eb It is stated in the Example that this mixture was subsequently cyclised with guanidine to give 2,4-diamino5- (3&#39;,4-dimethoxybenzyl)-pyrimidine. It is to be noted that both the compounds (Ill) and (W) above are benzal derivatives.  
  It has now been found that N-substituted B-amino-abenzylacrylonitriles of the configuration of formula benzylpyrimidines or other heterocyclic ring systems.  
  According to the present invention in one aspect therefore there is provided an N-substituted-B-aminoa-benzylacrylonitrile compound of the formula (V). in a form substantially free from contamination with the ,B-amino-a-benzylidenepropionitrile isomer. In particular the contamination with the benzal isomer is normally substantially below l072, taken as a percentage of the amount of compound of formula (V), and preferably below 5 or, still better, below 2 percent. Usually the best methods for making the compound of formula (V) provide the product with less than 0.5 percent contamination and frequently no benzal isomer can be detected at all with analytical methods sensitive to even as low as 0.33 percent admixture. It has, on the other hand, been observed that contamination at or above the 10 percent level adversely affects the yield and quality of the final benzylpyrimidine product, and the appearance of purple or yellow discolourisation may aggravate the difficulties, especially isolation in a pure form, an essential requirement when the product is to be used clinically, there therefore being necessary many tedious, time-consuming and accordingly expensive purification steps.  
  As previously defined Ar is an optionally substituted phenyl group in formula (V). The B-amino group NR&#39; R is an aliphatic, heterocyclic or aromatic amino group, and can have only one hydrogen atom for R and R&#34;. In general it may be stated that, as a free amine, HNR&#34;R is preferred to have a pKa value not lower than about 0, and also most preferably not higher than about 6.  
  In particular, it is especially preferred that the NR R group is a primary anilino group (e.g., aniline, o and p -toluidine p-anisidine, p-chloroaniline, 2,5 and 3,4 dichloroanilines). The phenyl ring of this group may be optionally substituted with one or more substituents such as halogen atoms, and alkyl and alkoxy groups, but the unsubstituted anilino group is, however, particularly preferred.  
  The NR&#39; R group may also be a primary amino group other than the aforesaid primary anilino group, such as a monoalkylamino, benzylamino, or naphthylamino,v  
  wherein the group -NR R is as hereinbefore defined with reference to a compound of formula (V), and R,  
 B-amino-4-benzylidene-.  
 R R and R are the same or different and each is a hydrogen or a halogen atom, an alkyl, alkoxy, or benzyloxy group, or R and R taken together may be a methylendioxy group when both R and R are hydrogen atoms. Preferably the whole amino group NR&#34;R comprises not more than 12 carbon atoms.  
  All of the above compounds of formula Vlll are convertible to benzyl pyrimidines,  
 and such pyrimidines are useful as antibacterials.  
  ln formulae (V) and (VIII), and elsewhere in this application each of the alkyl or alkoxy groups in the substituents may have from 1 to 4 carbon atoms, e.g. they may be methyl, ethyl, propyl or butyl groups, including normal, iso or tertiary branched forms, and corresponding alkoxy groups. Each of the halogen atoms may be represented by a chlorine, bromine, fluorine, or iodine atom.  
  More particularly the para-position of the phenyl group may be substituted with a benzyloxy, but preferably an alkoxy group, such as a methoxy group, especially with a similar or identical alkoxy substitution at one or advantageously both adjacent positions on the phenyl ring. As another possibility alkoxy, e.g. methoxy substitution. in such positions may be combined with an alkyl, e.g., methyl, substitution at the ortho-position of the phenyl group.  
 The compounds of formulae V (or Vlll) fall into two classes A and B dependent on their reactivity towards guanidine.  
 Wherein Ph is an aryl group of 6 to 12 carbon atoms which may-be substituted in one, two, or three positions with lower alkyl, lower alkoxyl, and halogen, -anilinoachlorine and where the R R are defined as previously and lower alkyl halogen and lower alkoxyl are as previously defined. Compounds of type Vlll A react readily with guanidine in e.g. solvent lower alcohol solution to form 2,4-diamino-5-benzylpyrimidines in good yield. Advantageously the reaction is conducted at the reflux temperature of the solution, but useful rates are found at lower temperatures down to room temperatures. These compounds are consequently preferred.  
  The compounds of formula VllI B wherein R,-, is alkyl or aryl and R is alkyl and may also be hydrogen when R,-, is alkyl and NR,-,-R,  
 vnt A VIII B may also be cyclic amino such as morpholino, piperidino and pyrrolidino, react only slowly with guanidine base, so that periods of 1-2 weeks would be required for complete reaction. They can be converted to pyrimidines by reaction with guanidine carbonate in a polar aprotic solvent (as defined below but preferably DMSO) at an elevated temperature. This reaction is slow below lC but goes rapidly at about 160C or above.  
  The compounds according to formula (V) or (Vlll), respectively, may be prepared by a wide variety of 5 methods. The actual choice between these methods in any particular instance depends primarily on the reactivity of the compound obtained, and the further processing to which it may be subjected to provide compounds such as pyrimidines of clinical utility, the further processing being itself governed to a great extent by the nature of the amino group NR R, this acting as a leaving group in the further reactions.  
  Compounds according to formula (V) or (Vlll) can be prepared by a method provided by the present ina quaternary ammonium cation (e.g., N-benzyl-N.N,N-  
 trimethylammonium Advantageously, the amount of base can be considerably reduced to catalytic amounts, i.e., effective quantities of less than about 0.3 molar equivalent calculated on the aldehyde used, particularly at temperatures above 60C, preferably between 90 C and 130C. For instance, very good yields have been obtained in this manner using dimethylsulphoxide as the solvent.  
  Very satisfactory yields have also been obtained, for instance, with B-primary anilino-substituted compounds with 0.5 to 2 molar equivalents of the base at room (about 20 C) or slightly elevated temperature up to about 60C in the solvent. Dimethylsulphoxide may be replaced under these conditions as well as by other polar aprotic solvents, expecially hexamethylphosphoramide. It has been found most advantageous to use t-butoxide as the base in the form of the potassium salt in dimethylsulphoxide for the preparation of B-anilinosubstituted compounds whilst, for instance, the ,B-morpholino-analogue may be preferred to be formed in the presence of sodium methoxide in the same medium.  
  Yet further methods provided by the present invention may be used to obtain selected or preferred ranges of compounds within the scope of formula (V) or (Vlll). Accordingly, a method is provided for preparing such compounds, wherein the ,B-amino group NR&#34;R&#34;&#39; is a primary anilino group optionally substituted in the phenyl ring. as hereinbefore defined, which comprises reacting the corresponding benzaldehyde with the corresponding B-primary-anilino-propionitrile. Preferably the reaction is carried out in a polar nonaprotic solvent compatible with and dissolving the reactants in the presence of a base. Conveniently an alkanol may be used for the purpose, and the reaction is desirably carried out at elevated temperatures, say between 40 and 80C. The preferred alkanol is methanol, particularly when the reactant benzaldehyde is vention, which comrises reacting the corresponding substituted with one or more methoxy groups, since it is possible for exchange to take place between the solvent and the substituents. Bases already listed in relation to the other preparatory methods are again applicable, and may, for instance, be used in a quantity molar equivalent calculated on the aldehyde, especially when the reaction is carried out at the lower end of the indicated temperature range.  
  Compounds according to formula (V) or (VIII) can also be prepared by reacting the corresponding B-hydroxy-B-phenethylmethylsulphone or sulphoxide with the corresponding B-amino-propionitrile. Very preferably the reactions carried out in the presence ofa base in a polar non-aqueous solvent compatible with and dissolving both reactants of elevated temperature above C. The solvent may be an alkanol, such as methanol, ethanol or isopropanol, or most conveniently a polar aprotic solvent such as exemplified above. The base is preferably sufficiently strong on its own for a significant amount of the sulphone or sulphoxide reactant to be converted into the anionic form. Again hydroxides or alkoxides, preferably methoxide or t-butoxide, in the form of an alkali metal salt, have been found very convenient for the purpose. The method is especially suitable for making Type VIII A.  
  The required B-hydroxy-B-phenethyl mcthylsulphone or sulphoxide for the above method, may conveniently be provided by a process which comprises the steps of reacting an appropriately substituted benzoic acid ester with dimethyl sulphone or dimethyl sulphoxide preferably in the presence of a base, and selectively reducing the so obtained acetophenone methylsulphone or methylsulphinyl derivative, for instance, with a suitable reducing agent, e.g., (borohydride or with aluminium isopropoxide).  
  More particularly it has not been found that the compounds of formula IX found later in the specification may be obtained very readily with numerous particular advantages by the reaction sequence shown in the flow sheet on page 20A hereof, which discloses by way of example only, the sequence to obtain the compound trimethoprim but is equally applicable to the compounds of the general formula IX.  
 Compound (XI) is the readily available gallic acid;  
 Step (i) and (ii) are known literature methylations;  
 Step (iii) involves reaction with dimethyl sulphone;  
 Step (iv) is a reduction;  
  Step (v) is a reaction with a B-amino substitutedpropionitrile as previously defined. i.e., with CH -CN I-IzNI-UR is as previously defined.  
  Compound (XII) is a B-Z-substituted-abenzylacrylo-nitrile where Z is NR&#34;R as previously defined.  
  The compound (XII) is then reacted with guanidine to prepare the corresponding benzyl pyrimidine (e.g., trimethoprim) which are useful as antibacterials.  
  The dimethyl sulphone CH .SO .CH used in step (iii) may be replaced by dimethyl sulphoxide CH;,.SO.CH though dimethyl sulphone is the most advantageous reagent so far found.  
  It has also been found that the above reactions are generally applicable. Thus R R substituted-benzoic esters, where R -R are as previously defined with reference to compound VIII react readily with dimethyl sulphone or dimethyl sulphoxide according to the reaction (a):  
 COOR CH .SO,..CH  
 -CO.CHz.SO .CH  
 n=10r2 XIII R is alkyl (e.g., methyl, ethyl, propyl, butyl,) preferably 1 to 4 carbons.  
  Furthermore, the compounds of formula XIII are readily reduced according to the reaction (b):  
 XIII --CHOH.CHz.SOn.CHa  
 wherein R R and n are each as defined above. The compounds of formula XIV react readily with B-Z-substituted-propionitriles propionitriles according to the reaction (c):  
 XIV  
  R1 R ON CHZ-CN XIV CH2.C  
 R CH.Z  
 R XII vided, particularly where at least one of R R is a substitutent other than hydrogen,  
 and generally, wherein R R and n are each as defined above, or previously herein, and R and R are hydrogen atoms or together represent an additional bond between the carbon and oxygen atoms. In a particular aspect, such compounds have an alkoxy substituent in the para position of the phenyl group, and preferably carry such substitutions in both or all para and meta positions.  
  The reaction of a benzoic ester as exemplified by step (iii) in the reaction sequence in the accompanying flow sheet (col. 14) and reaction (a) above, is effected in the presence of a base,.which for best results is used in conjunction with dimethyl sulphoxide as the solvent. Desirably the two are mixed prior to the addition of the benzoic ester. Any base sufficiently strong to provide the methylsulphinyl or methylsulphonyl carbanion in an adequate quantity is suitable for the reaction. Preferably the reaction is carried out in a solvent with the base supplied as sodamide or sodium hydride, from which ammonium or hydrogen are released with a complete conversion to the above mentioned anions.  
  The reduction exemplified by step (iv) and reaction (b) may conveniently be effected by using a reducing agent reacting in solution, i.e., in a homogeneous system. Conveniently complex hydrides, such as those of boron or aluminium compatible with alcoholic or aqueous solvents may be employed for instance in the form of a suitable alkali metal, e.g., sodium or lithium, salt. Other types of reducing agents, such as aluminum isopropoxide in isopropanol, may also be used for the purpose. Preferably the reducing agent will not reduce the sulphone or sulphoxide group in the compounds of steps (IV) and (V).  
  The reaction with a B-Z-substituted-propionitrile exemplified by step (V) and reaction (c) is most advantageously performed in the presence of both a base and a solvent. The base is desirably a hydroxide or alkoxide, preferably a methoxide or a tertiary butoxide ion, or the methylsulphinyl carbanion in a dimethyl sulphoxide medium, and is conveniently supplied in the form of an alkali metal (e.g., sodium or potassium) or quaternary (e.g.N-benzyl-N,N,N-trimethyl) ammonium hydroxide or alkoxide. The solvent is a polar non-aqueous solvent compatible with and dissolving both reactants. It may be an alkanol, such as methanol, ethanol or isopropanol, but most preferably a polar aprotic solvent, such as dimethyl sulphoxide, hexamethylphosphoramide or N,N-dimethylacetamide, is used. The propionitrile may be any of the compounds of the defined type disclosed in US. Pat. No. 3,049,544 and more particularly as disclosed herein.  
  The above defined group of B-primary-anilino-abenzylacrylonitriles can also be prepared by a method which comprises reacting the corresponding aniline, generally in the form of an acid addition salt. with a compound of formula (V) or (VIII) carrying an amino substituent which has, as the free aminee HNR R, a pKa value higher by at least about 3 to 4 units than that of the aniline used for the reaction. For instance. a morpholino substituent may, in this manner, be directly replaced by an anilino substituent, morpholine having a pKa value of about 8.6 and the aniline generally about 4 to 5. Preferably the reaction is carried in a polar non-aqueous solvent system, for instance, ethanol or glacial acetic acid, at reflux temperatures.  
  The compounds VllI A are also preparable by reaction of PhNH with B-hydroxy-a-benzylacrylonitriles:  
 PhNI-h CHOH=C a, Ra  
 VIIIA This reaction is conveniently carried out in an organic solvent such as benzene or a lower alcohol or without solvent, and where Ph is as previously defined or PhNH- could also be NR R where this is as previously defined.  
  The B-hydroxy-a-benzylacrylonitriles are prepared in exemplary fashion by acidification of a partly aqueous solution of a compound of type VIII B where R,-, and R are not aromatic. For this variation in aqueous alcohol 10 VIII B is converted to the hydroxy compound X almost instantaneously and in nearly quantitative yield.  
  The product may then be extracted with an organic solvent from the aqueous medium and reacted with a different amine to obtain a compound according to formula (V) or (VIII). There is little or no tendency to isomerize to the benzal form during these manipulationsf Such a conversion from one amino derivative to another may be achieved in a very high yield, in many instances above 99 percent in both steps, and the product so obtained can be reacted to form other materials such as benzylpyrimidines in a quality and yield often even better than that provided by using the original B-aminoderivative.  
  In addition, this method may be very advantageous for preparing certain ,B-amino-a-benzylacrylonitriles. especially in cases where the NR R group is basic but only weakly basic anilino group, eg p-chloroanilino. In such instances, there are sometimes difficulties in preparing the corresponding ,B-anilino-propionionitrile for reaction with the benzaldehyde.  
  The B-hydroxy-a-benzylacrylonitriles may also be used as intermediates for further syntheses, and can. for instance, be alkylated to provide the appropriate B-alkoxy-a-benzylacrylonitrile. substantially free from the benzal isomer or acetal. The benzyl compound so formed and in such purity is also eminently suitable as a starting material for the synthesis of benzylpyrimidines, and provides the latter in a substantially increased yield and at a better quality than the mixture of benzyl and benzal isomers, or the benzal isomer alone, of the method described in British Pat. Specification No. 957,797.  
  Compounds according to formula (V) or (VIII), wherein the B-amino group NR&#34;R is a primary amino group other than anilino, or is a secondary amino group, can also be prepared according to the present invention by reacting the corresponding B-alkoxy-abenzylidenepropionitrile with an excess of the appropriate amine in the presence of a base in an alkanol. Suitable bases are again those already listed for other methods. Preferably the base is the alkoxide corresponding to the solvent. For instance, a B-methoxide-abenzylidenepropionitrile may be so converted with morpholine, in methanol containing sodium methoxide, to the corresponding B-morpholino-abenzylacrylonitrile.  
  The above group of compounds according to formula (V) or (VIII). wherein the B-amino-group l\lR&#34;R is other than the anilino group, can moreover be prepared according to the present invention by isomerising the corresponding B-amino -a-benzylidenepropionitrile isomer with a base in a polar aprotic solvent. Under these conditions the benzal is isomerised into the benzyl form, there appearing to be little or no benzal isomer after the process. Suitable aprotic polar solvents and bases are as hereinbefore described with reference to other reactions, and the most preferred solvent is again dimethylsulphoxide and the most convenient bases are the methoxide and t-butoxide anions.  
 ical though there is preferably sufficient throughout the isomerisation to dissolve the nitrile. The isomerisation can be effected at room temperature but is most conveniently carried out in the presence of heat, particularly good yields being obtained when it is carried out at a temperature above about 20C. and up to about 75C. or even higher. The method has been very successfully applied to ,B-morpholino-a-benzylidene-propionitriles, in particular to those having a 3,4-dimethoxy or 3,4,5-trimethoxy-benzylidene group.  
  The starting benzal isomer, i.e. the appropriate B-amino-a-benzylidene-propionitrile, for the purposes of the above reaction, can advantageously be prepared by reacting the corresponding benzaldehyde with the corresponding B-aminopropionitrile in an alkanol in the presence ofa catalytic amount&#34; ofa base, in the sense hereinbefore used in the present specification, which means an effective quantity of less than 0.3 molar equivalent calculated on the aldehyde reagent.  
  Alkanols in this reaction are generally lower alkanols, having from I to 4 carbon atoms, methanol being particularly preferred. Suitable bases are again those already suggested in connection with base catalysed condensation reactions, but methoxides and ten.- butoxides, particularly the former, are preferred for the present purpose. Best results may be obtained at elevated temperatures, and it is particularly preferred to carry out the reaction at reflux temperatures.  
  As already indicated, the optimum route for preparing any particular compound according to formula (V) or (VIII) may comprise a combination of a number of the above processing possibilities, depending primarily on the type of amino NR&#34;R group required. For instance, B-primary-anilino-a-3&#39;,4&#39;,5&#39;-trimethoxybenzylacrylonitrile has certain especial advantages as an intermediate for the preparation of trimethoprim. Thus, the reaction of guanidine with ,B-primary-anilinoa-benzylacrylonitriles generally proceeds appreciably faster than that with other B-amino derivatives as defined by formula (V) or (VIII).  
  The B-anilino-intermediate can moreover be produced readily without any benzal isomer detectable by standard analytical methods, and can be further processed to 2,4-diamino-5-benzylpyrimidines in a very high yield there being little or no polymer formation at all. It is most noteworthy that the reaction with guandine is readily effected under mild conditions, and both the preparation ofthe intermediate and the further processing may be completed within hours rather than weeks.  
  Whilst ,B-primary-anilino-a-benzylacrylonitriles may be readily prepared by a wide variety of advantageous methods, the choice in any particular instance depends partly upon the availability of the starting material, and, for instance, B-anilino-propionitrile, when prepared from aniline and acrylonitrile, usually requires isolation and purification before use. In contrast, the corresponding B-morpholinopropionitrile can be readily formed and need not be isolated. Furthermore, in cases of trimethoxy-substituted benzyl derivatives, and base catalysed reactions, the cheaper and more widely available sodium methoxide is preferred for morpholino-derivatives, whilst the more expensive potassium t-butoxide generally gives best results for anilinocompounds. It may therefore on occasion be advantageous to prepare the morpholino-intermediate first and convert this into the corresponding anilino derivative to obtain optimum results.  
  According to the present invention in a further aspect there is provided a method of preparing 2,4- diamino-5-benzylpyrimidines as shown in formula IX which are useful as antibacterials, wherein the benzyl group comprises an optionally substituted phenyl group, by reacting the corresponding B-amino-abenzylacrylonitrile of formula (V), substantially free from contamination with the B-amino-a-benzylidenepropionitrile isomer, as hereinbefore defined, with quanidine. In particular a method is provided of preparing a compound of formula (IX) R NH:  
 which comprises reacting a compound of formula (VIII) substantially free from contamination with the B-amino-a-benzylidenepropionitrile isomer, as hereinbefore defined, with guanidine; in formula (IX) R, R R and R are as defined for formula (VIII). It has been found that the pyrimidine products are obtained in a satisfactorily high yield as well as without contamination with polymers and coloured impurities. These aspects are of critical importance as indicated hereinbefore, since contemporary requirements for the purity of pharmaceutical products are very stringent and the products must be manufactured in a very pure form and, of course, at a resonable cost. Both these necessities are now more readily attainable, as a result of the present invention, for the benzylpyrimidines.  
  To obtain S-benzylpyrimidines having particularly high activity, or potentiating properties, the para position of the phenyl group is preferably substituted with an alkoxy, i.e., methoxy group, especially in combination with a similar substitution at one or both adjacent meta positions. Such substitutions may also be presentwhen at least one of the ortho-positions is occupied by a lower alkyl group, such as methyl. The pyrimidines are then trimethoprim, diaveridine, ormetoprim and analogues thereof.  
  For the purposes of obtaining S-benzylpyrimidines or in particular those of formula (IX) preferably having the above mentioned specific substituents, the appropriate B-anilinoderivatives have been found particularly useful. Advantageously such an amine is reacted with guanidine, conveniently in a lower alcohol solvent, for example, methanol, ethanol, or isopropanol, at elevated temperatures. It is particularly preferred that the reaction is carried out at the reflux temperature of the reaction mixture, but useful routes are found at temperatures down to room temperatures. It has been found specifically that the reaction takes place very readily, taking hours rather than weeks for completion.  
  Although the reactivity with quanidine ofB-amino-abenzylacrylonitriles of formula (V) or (VIII), other than those having a B-primary-anilino group. such as the morpholino derivatives is lower, particularly in alkanols, it has been found that this can be increased and the yield substantially improved if the guanidine is employed in the form of the carbonate in a polar aprotic solvent, as hereinbefore described with reference to other methods, e.g., especially dimethylsulphoxide or hexamethylphosphoramide. Best results have been obtained in these particular cases with dimethylsulph- .oxide at or near 160C; and, if the previous reaction step has also been carried out in the same medium the -/3amino-a-benzylacrylonitrile intermediate need not be isolated, although isolation is usually preferred since purer benzylpyrimidine is obtained in this manner.  
  All end products provided in the above manner have either antibacterial activity or potentiating properties, although the degree of such activity and potentiating effect may vary according to substitution and the purpose for which these compounds are employed. Moreover. the products may themselves be used as starting materials to produce other derivatives and analogues by further reactions with functional groups thereon. Thus, benzyloxy-benzyl-derivatives may. for instance be converted into the corresponding hydroxy-benzylderivatives by hydrogenation. or any hydroxy-benzylderivatives alkylated to provide the required alkoxy-benzyl-substituted compounds.  
  According to the present invention. therefore, there are provided:  
  i. N=substituted-B-amino-a-benzylacrylonitrile com pounds according to formula (V), or. in particular. formula (V111), substantially free from contamination with B-amino-a-benzy1idenepropionitrile, as hereinbefore described;  
  ii. the various methods of preparing B-amino-abenzylacrylonitriles of formula (V) or (VlIl), as hereinbefore described;  
  iii. the various methods of converting such a B-amino-oz-benzylacrylonitrile into a different compound of the same class with respect of the ,B-aminosubstitution, as hereinbefore described;  
  iv. N-substituted B-amino-oz-benzylacrylonitriles whenever prepared by a method defined under either of paragraphs (ii) and (iii), as hereinbefore described;  
  v. B-hydroxy-oz-benzylacrylonitriles substantially free from contamination with isomers, as hereinbefore described;  
  vi. the methods of preparing the compounds defined under paragraph (v);  
  vii. the methods of preparing S-benzylpyrimidines by using compounds or products of methods, according to any one of paragraphs (i) to (vi), as hereinbefore described;  
  viii. S-benzylpyrimides whenever prepared by a method including steps according to any one of paragraphs (ii), (iii), (vi) and (vii).  
  The present invention, in each of the above aspects, is particularly preferred when the phenyl group is a 3,4- dimethoxy, 3,4,5-trimethoxy or 2-methyl-4,5- dimethoxy group, since there are then produced the especially valuable compounds diaveridine, trimethoprim or ormetoprim, or the respective intermediates therefor.  
 FLOW SHEET Reaction Sequence MeO  (iii) MeO O 0 OMe MeO  MeO CO.CH2SO2Me MeO MeO  
  Me0CHOH.CHz.SOzMe MeO MeO  
  MeOQCHaC MeO CH.Z  
 (XII) EXAMPLE 1 3,4,5-Trimethoxybenzaldehyde (98g), ,B-anilinopro pionitrile (g). and dimethylsulfoxide 175 ml.) were heated together to 125C. A solution of sodium methylate (5g.) in methanol (50ml.) was gradually added and in so doing the reaction temperature rose to 130C, and this temperature was maintained for a further 17 minutes. The reaction mixture was chilled; water was added to a persistent haze; seeds of B-anilino-oz-3,4,5- trimethoxybenzylacrylonitrile were added; and the mixture was stirred at 25C until precipitation was co pious. Additional water (400ml) was added, and the product was collected by filtration and reslurried in ice water (600ml. The collection and reslurry procedures were repeated using cold (-5C) denatured alcohol (320ml.), and the crystalline B-anilino-a-3,4,5- trimethoxybenzylacrylonitrile was finally collected; washed with cold denatured alcohol (40m1.), and hexane (100ml). wt. =g. (71 percent; 98 percent pure by U.V. assay) m.p. 132133C (recrystallised from methanol).  
 EXAMPLE 2 3,4,5-Trimethoxybenzaldehyde (49 g.), ,B-anilinopropionitrile (40 g.), and dimethylsulfoxide (85 ml.) were heated together to C, and a solution of potassium hydroxide (2.5 g.) in methanol (12.5 ml.) was added over a 35 min. period. The temperature of the reaction was maintained at l30135C for an additional 30 min., and the reaction mixture was then treated as in Example 1 to give ,B-anilino-a-3.4,5- trimethoxybenzylacrylonitrile as a crystalline solid. Wt.=57 g. (70 percent).  
 EXAMPLE 3 3.4.5-Trimethoxybenzaldehyde (117.5 g; 0.6 mole). B-anilinopropiontrile (101 g.; 0.69 mole), and dry distilled dimethylsulfoxide (348 ml.) were heated together to 40C until solution was complete. The mixture was chilled to 12C and a solution of potassium t-butoxide in t-butanol (13.6 percent; 491 ml.; 0.6 mole) was added over the course of about 10 min. such that the final temperature was about C. The temperature was raised to 40C and maintained for one hour. t- Butanol was then stripped from the reaction using vacuum to a final pot temperature of 55C. The residue was chilled to 30C and water 100 ml.) and denatured ethanol (50 ml.) added. The mixture was seeded and after obvious crystallisation more ice/water (500 ml.) and denatured ethanol (75 ml.) were added. When the final temperature of the mixture was 5l0C the crystalline ,B-anilino-a-3,4,5-trimethoxybenzylacrylonitrile was collected, and washed with a mixture of cold water/denatured ethanol (85:15; 600 ml.). Wt=18l.7 g. (94 percent pure by UV. assay; yield 88 percent).  
 EXAMPLE 4 EXAMPLE 5 Piperonaldehyde (45 g.). B-anilinopropionitrile (52 g.) and dimethylsulfoxide (96 ml.) were heated together to 120C and a solution of sodium methylate&#39; (2.5 g.) in methanol (12 ml.) was added over a 5 min. period. The temperature was maintained at l 15120C for 1 hr. and the mixture was then poured into ice-water. The resulting gum was collected by decantation and was likewise washed with water (2 X 100 ml.). Methanol (100 ml.) was then added and the mixture was heated until solution was complete. Cooling to 5C gave B&#39;anilino-a-piperonylacrylonitrile as a crystalline solid which was collected, and washed with cold methanol, ether, and pentane. Wt.=45 g. (54%) mp 150.5l5lC (recrystallised from methanol).  
 EXAMPLE 5a The procedure of Example 3 was repeated using 3.4-  
 dimethoxy-S-bromobenzaldehyde (78 g.) and gave B-anilino-a-3,4-dimethoxy-5-bromobenzylacrylonitrile. Wt.=62 g. (52 percent) m.p. 151154C.  
 EXAMPLE 6 Sodium methylate (5.4 g.) in t-butanol (50 ml.) was alcohol then removed in vacuo (bath temperature 1 50C). The mixture was poured into ice-water and the crude product collected and recrystallised from methanol to give B-(p-methylanilino)-0t-3,4,5- trimethoxybenzylacrylonitrile. Wt.=30 g. (89%) mp. 150151C (recrystallised from methanol).  
 EXAMPLE 7 The procedure of Example 6 was repeated using B-(p-chloroanilino) propionitrile (20 g.) in place of B-(p-methylanlino) propionitrile. Wt. of recrystallised /3-(p-chloroanilino)-a-3,4.S-trimethoxybenzylacrylonitrile 24 g. (67%) mp 172-173C (recrystallised from methanol).  
 EXAMPLE 8 The procedure of Example 6 was repeated using B-(p-methoxyanilino) propionitrile 19.5 g.) in place of B-(p-methylanilino) propionitrile. Wt. of recrystallised B-(p-methoxyanilino)-a-3,4,5-trimethoxybenzylacrylonitrile 11 g. (33 percent) m.p. l25-125C (recrystallised from methanol).  
 EXAMPLE 9 2-Methyl-4,5-dimethoxybenzaldehyde (18 g.), dimethylsulphoxide (35 ml.). sodium inethoxide 1.0 g.), and B-anilinopropionitrile were heated together at C for 1 /2 hr. The mixture was then poured into icewater 150 g.), and the resulting solid collected by decantation. The crude product was recrystallised from methanol ml.) and the resulting B-anilino-a-(Z- methyl-4,S-dimethoxybenzyl) acrylonitrile was collected, and washed with methanol and hexane. wt. 19 g. (60 percent) m.p. ll7l 19C (recrystallised from ethanol/methanol).  
 EXAMPLE l0 p-Benzyloxybenzaldehyde (25g.), B-anilinopropionitrile (22 g.), and dimethylsulphoxide (25 ml.) were heated together to 95C, and a slurry of sodium methoxide (1 g.) in dimethylsulphoxide (20 ml.) was carefully added such that the temperature rose to C.  
 The mixture was heated to 125130 and held at that temperature for 1 /2 hr. The reaction mixture was poured into ice water (500 ml.), and the resulting solid was collected and washed by decantation. The crude product was slurried in cold ethanol to give fi-anilino-a-(p-benzyloxybenzyl) acrylonitrile. Wt. 27g.  
 EXAMPLE 1 1 ,B-Morpholinopropionitrile (47 g.), sodium methoxide (2 g.), and dimethylsulphoxide (40 ml.) were heated together to 65C. and a solution of 3,4,5-trimethoxybenzaldehyde (50 g.) in dimethylsulphoxide (40 ml.) was added slowly such that the temperature rose to 7075C. After 3 min. at this temperature the mixture was cooled to 30C, and isopropyl alcohol (30 ml.) and water sufficient to creat a persistent haze were added. The mixture was seeded and, after crystallisation was obvious, water (80 ml.) was added. Crystalline slowly treated with a solution of 3,4,5-trimethoxyben- 65 B-mor holino-a-3. im h y zy y ni ril zaldehyde (20 g.) and ,B-(p-methylanilino)- propionitrile (17.5 g.) in dimethylsulfoxide (50 ml.). The mixture was stirred at 45C for one hour and the was collected and washed with isopropyl alcohol (50 ml.). Wt. 73.5 g. (89%) mp. -117C (recrystallised from methanol).  
 EXAMPLE 12 3.4.5-Trimethoxybenzaldehyde (20 g. ,B-N- methylanilinopropionitrile (18 g.). dimethylsulphoxide (40 ml.). and sodium methoxide (1 g.) were heated together at l115C for 1.5 hr. The mixture was poured into ice-water (800 ml.) and the crude product which precipitated gave crystalline fi-N-methylanidino- 01-3.4.5 trimethoxybenzylacrylonitrile after a slurry in methanol (50 ml.). Wt. 17 g. (50%) m.p. l2ll22C (recrystallised from methanol).  
 EXAMPLE l3 3.4,5-Trimethoxybenzaldehyde (50 g.). B-piperidinopropionitrile (40 g. dimethylsulphoxide (60 ml. and sodium methoxide (2 g.) were reacted together at 75C for 20 min. and on work-up gave B-piperidino-a-3,4,5-trimethoxybenzy1acrylonitrile. Wt.=40 g. (50%) m.p. 9293C (recrystallised from methanol).  
 EXAMPLE l4 3,4,5-Trimethoxybenzaldehyde (25 g.). B-pyr rolidinopropionitrile (20 g.). dimethylsulphoxide (25 ml.) and sodium methoxide (1 g.) were reacted together at 75C for 10 min., and on work-up gave B-pyrrolidino-a-3,4,5-trimethoxybenzylacrylonitrile. Wt.=28 g. (75 percent) m.p. 123124C (recrystallised from methanol).  
 EXAMPLE 3.4.5-Trimethoxybenzaldehyde (25 g.). B-N-dimethylaminopropionitrile 16 g.), dimethylsulphoxide (45 ml.). and sodium methoxide (1 g.) were reacted together at 70C for 10 min.. and on work-up gave B-dimethylamino-a-3,4.5-trimethoxybenzylacrylonitrile. Wt.=25 g. (73 percent) m.p. l22l23C (recrystallised from methanol).  
 EXAMPLE l6 3,4,5-Trimethoxybenzaldehyde (50 g.), ,B-benzylaminopropionitrile (45 g.). dimethylsulphoxide (80 ml.), and sodium methoxide (2 g.) were heated together at 100C for 2 hr.. and work-up gave B-benzylamino-a-3,4,5-trimethoxybenzylacrylonitrile. and on 32 g. (37%) m.p. l30.5-131C (recrystallised from methanol).  
 EXAMPLE l7 3,4,5-Trimethoxybenzaldehyde (25 g.). B-morpholinopropionitrile g. sodium methoxide (2 g.). and N,N-dimethylacetamide ml.) were reacted together at 9095C for 1 /2 hr., and on work-up gave B-morpholino-a-3,4,5-trimethoxybenzylacrylonitrile. Wt.=l5 g. (37 percent).  
 EXAMPLE l8 B-Morpholinopropionitrile (40 g.). dimethylsulphoxide (40 ml.). and sodium methoxide (2 g.) were heated together at 70C and a solution of 3,4-dimethoxybenzaldehyde (44 g.) in dimethylsulphoxide (40 ml.) was added. The reaction was held at 75-80C for 15 min., and then worked-up as in Example 11 to give crystalline B-morpholino-a-3.4-dimethoxybenzylacrylonitrile. Wt.=4l g. (57 percent) m.p. ll3lC (recrystallised from methanol).  
 EXAMPLE 19 The procedure of Example 18 was repeated using B-dimethylaminopropionitrile (28 g.) in place of B-morpholinopropionitrile. and on work-up gave B-dimethylamino-a-3.4-dimethoxybenzylacrylonitrile. Wt.=3l g. (50 percent) m.p. 8586C (recrystallised from methanol).  
 EXAMPLE 20 B-Morpholinopropionitrile (20 g), dimethylsulphoxide (30 ml.). and sodium methoxide (1 g.) were heated together at C and a solution of piperona|de hyde (19 g.) in dimethylsulphoxide was added. The mixture was reacted at 80C for 15 min.. and on workup gave B-morpholino-a-piperonylacrylonitrile. Wt.=21 g. (61 percent) m.p. 85.5C (recrystallised from methanol).  
 EXAMPLE 21 The procedure of Example 20 was repeated using 3,- 4-dimethoxy-S-bromobenzaldehyde (31 g.) in place of piperonaldehyde and on work-up gave B-morpholino- 01-3,4-dimethoxy-S-bromobenzylacrylonitrile. Wt.=28 g. (60 percent) m.p. 94.595C (recrystallised from denatured ethanol).  
 EXAMPLE 22 B-Hydroxy-a-3,4.5-trimethoxybenzylacrylonitrile (132 g. obtained as hereinafter described in Example 62. was refluxed for 10 min. in benzene containing aniline (50 g.). The solvent was removed by evaporation in vacuo to provide crystalline B-anilino-a-Ilfijtrimethoxybenzylacrylonitrile 165 g.; virtually rheoretical yield).  
 EXAMPLE 23 A solution of morpholine (10 ml.) and B-hydroxy-oz- 3.4,5-trimethoxybenzyl-acrylonitrile (24.9 g.) in ethanol ml.) was refluxed for 30 min. When cooled the reaction gave B-morpholino-a-3,4,5-trimethoxybenzylacrylonitrile. Wt.=27 g. (85 percent) m.p. l 16-l 17C.  
 EXAMPLE 24 EXAMPLE 25 The procedure of Example 24 was repeated using hexamethylphosphoramide (40 ml.) in place of dimethylsulphoxide, and on work-up B-aniline-a-3,4,5- trimethoxybenzylacrylonitrile was obtained. Wt.=26 g. (80 percent) m.p. 126l28C.  
  EXAMPLE 26 [3-Hydroxy-S-3,4,5-trimethoxyphenethylmethylsul- 19 phone g.), B-anilinopropionitrile (3 g.) dimethylsulphoxide (20 ml.), and a solution of potassium hydroxide in methanol (20 percent; 2 ml.) were reacted together at 9095C for 20 min. Work-up gave B-anilino-a-3,4,5-trimethoxybenzylacrylonitrile (3 g.; 53 percent). m.p. l26l29C (recrystallised from ethanol).  
 EXAMPLE 27 The procedure of Example 26 was repeated using hexamethylphosphoramide (20 m in place of dimethylsulphoxide and on work-up gave B-anilino-a-3.4.5- trimethoxybenzylacrylonitrile (2 g.; 36 percent) m.p. l25-l27C (recrystallised from ethanol).  
 EXAMPLE 28 The procedure of Example 26 was repeated using sodium methoxide (0.5 g.) in place of potassium hydroxide in methanol, and on work-up gave B-anilino-a- 3,4.5-trimethoxybenzylacrylonitrile. Wt.=3 g. (54 percent) m.p. 128-130C.  
 EXAMPLE 29 B-Hydroxy-B-3.4,5-trimethoxyphenethylmethylsulphone g.), ,B-anilinopropionitrile (5.1 g.), hexamethylphosphoramide ml.). and sodium methoxide 1 g.) were reacted together at 60C for 30 min., and on work-up B-anilino-a-3,4,5trimethoxybenzylacrylonitrile. Wt.=6 g. (54 percent) m.p. 127-l29C.  
 EXAMPLE 30 The procedure of Example 28 was repeated using N N-dimethylacetamide ml.) in place of dimethylsulphoxide, and on work-up gave ,B-anilino-a-3.4,5- trimethoxybenzylacrylonitrile. Wt.=2.5 g. (45 percent) m.p. l25-l28C.  
 EXAMPLE 31 ,B-Hydroxy-B-3,4,5-trimethoxyphenethylmethylsulphoxide (5.4 g.), B-anilinopropionitrile (3 g.), dimethylsulphoxide (25 ml.). and sodium methylate (0.5 g.) were reacted together at 90-95C for 1 hr. The mixture was then poured into ice-water; the solid collected; and recrystallised from denatured ethanol to give ,B-anilino-a-3,4,5-trimethoxybenzylacrylonitrile. Wt.=2 g. percent m.p. l25-l27C.  
 EXAMPLE 32 The procedure in Example 31 was repeated using potassium hydroxide (2 g.) in methanol (5 ml.) in place of sodium methoxide, and on work-up gave ,B-anilinoa3.4,5-trimethoxybenzylacrylonitrile. Wt.=2 g. (30 percent) m.p. l25-128C.  
 EXAMPLE 33 The procedure in Example 31 was repeated using hexamethylphosphoramide in place of dimethylsulphoxide and sodium methylate (2 g.), and on work-up gave B-anilino-a-3,4,5-trimethoxybenzylacrylonitrile. Wt.=2 g. (30%) m.p. 125-l29C.  
 EXAMPLE 34 The procedure in Example 31 was repeated using potassium-t-butoxide in t-butanol (13.6 percent; 15 ml.) in place of sodium methoxide, and on work-up gave B-anilino-a-3,4,5-trimethoxybenzylacrylonitrile. Wt.=l g. (15 percent) m.p. l28l30C.  
 EXAMPLE 35 The procedure in Example 34 was repeated using hexamethylphosphoramide (25 ml.) in place of dimethylsulphoxide; and on work-up gave B-anilino-a-3.4,5- trimethoxybenzyl-acrylonitrile. Wt.=l g. (15 percent) m.p. l23l26C.  
 EXAMPLE 36 BMorpholinopropionitrile (3.0 g.), ,B-hydroxy-B- 3,4,5-trimethoxyphenethyl-methylsulphone (2.9 g.), sodium methoxide (0.3 g.) and hexamethylphosphoramide (6 ml.) were reacted together at 60-65C for 40 min., and then poured into ice-water (50 ml.). The crude solid was collected by decantation and recrystallised from ethanol (10 ml.) to give ,B-morpholino-a- 3.4,5-trimethoxybenzylacrylonitrile. Wt.=2 g. (-60 percent).  
 EXAMPLE 37 The procedure in Example 36 was repeated using benzyltrimethylammonium hydroxide in place of sodium methoxide and on work-up B-morpholino-a- 3.4,5-trimethoxy-benzylacrylonitrile was obtained in 50 percent yield.  
 EXAMPLE 38 EXAMPLE 39 3,4-Dimethoxybenzaldehyde (41.5 g.), B-anilinopropionitrile (38.5 g.), sodium methoxide (40 g.) and methanol (200 ml.) were reacted under reflux for 3 hr. The solvent was then removed by evaporation in vacuo and the resulting paste was recrystallised from methanol to give B-a&#39;nilino-a-3.4,-dimethoxybenzylacrylonitrile. Wt.=55 g. percent) m.p. 153l54C (recrystallised from ethanol).  
 EXAMPLE 4O S-Morpholino-a-3,4.5-trimethoxybenzylacrylonitrile (318 g.), aniline 107 g.) and glacial acetic acid (69 g.) were heated together at C for 45 min. lsopropanol (300 ml.) was then added and the mixture was cooled to 30C; seeded; and treated with water (300 ml.) after crystallisation was obvious. Filtration gave ,B-anilino-oz- 3,4,5-trimethoxybenzylacrylonitrile. Wt.=296 g. (after washing with water and isopropanol; 91 percent).  
 EXAMPLE 41 Aniline hydrochloride, from aniline 10 g.) and conc. hydrochloric acid 12 ml.). and B-morpholino-a-3.4.5- trimethoxybenzylacrylonitrile (30 g.) were reacted together in refluxing isopropanol (50 ml.) for 15 min. Water (25 ml.) was added and on cooling crystals of B-anilino-a-3,4,5-trimethoxybenzylacrylonitrile were obtained. Wt.=29 g.  
 EXAMPLE 42 -zylacrylonitrile. Wt.=53 g. (88 percent).  
 EXAMPLE 43 3.4,5-Trimethoxybenzaldehyde (25 g). B-morpholinopropionitrile g.). methanol (50 ml.). and sodium methoxide (l g.) were heated together under reflux for 72 hr. Solvent was then removed in vacuo and the residue was crystallised from diethylether 100 ml.) to give B-morpholinooz-3,4,5-trimethoxybenzylidenepropionitrile. Wt.=l8 g. (44 percent) m.p. l00.5l02C (recrystallised from methanol).  
 EXAMPLE 44 3,4-Dimethoxybenzaldehyde (21 g.). ,B-morpholinopropionitrile (22 g.), sodium methylate (l g.) and methanol (50 ml.) were heated together under reflux for 20 hr. Work-up as in Example 43 gave B-morpholino-a-3,4-dimethoxybenzylidenepropionitrile. Wt.= g. (67 percent) m.p. 9597C. (recrystallised from methanol).  
 EXAMPLE 45 The procedure of Example 43 using B-piperidinopropionitrile (20 g.) gave B-piperidino-a-3.4.5- trimethoxybenzylidenepropionitrile. Wt.=32 g. (79 percent) m.p. 6062C (recrystallised from isopropanol).  
 EXAMPLE 46 The procedure of Example 43 using B-pyrrolidinopropionitrile (20 g.) gave B-pyrrolidino-a-3,4,5- trimethoxybenzylidenepropionitrile as an oil. Wt.=37 g. (96 percent).  
 EXAMPLE 47 The procedure of Example 43 using ,B-dimethylaminopropionitrile (18 g.) gave B-dimethylaminoa-3,4,5-trimethoxybenzylidenepropionitrile. Wt.=20 g. (57 percent) m.p. 8183C (recrystallised from methanol).  
 EXAMPLE 48 Piperonaldehyde g.), B-morpholinopropionitrile g.), methanol (75 ml.) and sodium methylate (1.5 g.) were heated together under reflux for 20 hr. Solvent was removed in vacuo and the residue recrystallised from ether, after treatment with aqueous sodium bisulphite, to give B-morpholino-apiperonylidenepropionitrile. Wt.=29 g. (53%) m.p. 80-85C (recrystallised from methanol).  
 EXAMPLE 49 B-Morpholino-a-3.4,5-trimethoxybenzylidenepropionitrile (3 g.), dimethylsulphoxide (10 ml.) and sodium methoxide (0.1 g.) were heated together at 50-60C for 10 min. Work-upgave crystalline B-morpholine-a-S.4,5-trimethoxybenzylacrylonitrile.  
 l 15l 17C.  
 EXAMPLE 50 The procedure of Example 49 was repeated using B-dimethylamino-a3.4.5-trimethoxybenzylidenepropionitrile (4 g.) and on work-up gave B-dimethylamino- 01-3,4,5-trimethoxybenzylacrylonitrile. Wt.=32 g. percent) m.p. l19122C (recrystallised from methanol).  
 EXAMPLE 51 The procedure of Example 49 was repeated using ,B-piperidino-a-3,4,5-trimethoxybenzylidenepropionitrile (3.5 g.) and in work-up gave B-piperidino-a-3,4.5- trimethoxybenzylacrylonitrile. Wt.=2.7 g. (77 percent) m.p. 8992C.  
 EXAMPLE 52 ,B-Dimethylamino-a-3,4,5trimethoxybenzylidenepropionitrile (2 g.), hexamethylphosphoramide (10 ml.), and sodium methoxide (0.05 g.) were heated together at 30C. Conversion to ,B-dimethylamino-oz- 3,4,5-trimethoxybenzylacrylonitrile was complete in l min. and this compound was obtained on work-up. Wt.=l g. (50 percent) m.p. l18-l20C (recrystallised from methanol).  
 EXAMPLE 53 B-Dimethylamino-a3,4,5-trimethoxybenzylidenepropionitrile (2 g.), dimethylsulphoxide (10 ml.) and potassium-t-butoxide (0.05 g.) at 30 for l min. gave B-dimethylamino-a-3.4.5-trimethoxybenzylacrylonitrile. Wt.=l g. (50 percent) m.p. 1l9121C.  
 EXAMPLE 54 B-Dimethylamino-a-3,4.5-trimethoxybenzylidenepropionitrile (4 g.), hexamethylphosphoramide 10 ml.) and potassium-t-butoxide (0.05 g.) at 30C for l-2 min. gave ,B-dimethylamino-a-3,4,5-trimethoxybenzylacrylonitrile. Wt.=3 g. (75 percent) m.p. ll7ll9C.  
 EXAMPLE 55 B-Dimethy1amino-0z-3,4,5-trimethoxybenzylideriepropionitrile (2 g.), dimethylsulphoxide (10 m1.). and 3 drops of a saturated solution of potassium hydroxide in methanol at 40C for 5 min. gave ,B-dimethylamino- 01-3,4,5-trimethoxybenzylacrylonitrile. Wt.=1.3 g. (65 percent) m.p. 1l8l20C.  
 EXAMPLE 56 The procedure as in Example 55 using hexamethylphosphoramide in place of dimethylsulphoxide in min. gave B-dimethylamino-oz-3,4,5-trimethoxyben- Zylacrylonitrile. Wt.=l .8 g. percent) m.p. l2 l-123C.  
 EXAMPLE 57 The procedure as in Example 49 using B-pyrrolidino- 01-3,4,5-trimethoxybenzyl-idenepropionitrile gave 13-pyrrolidino-a-3,4,S-trimethoxybenzylacrylonitrile. m.p. 123-l24C.  
  EXAMPLE 5s The procedure as in Example 52 using B-morpholine- 01-3,4,-dimethoxybenzylidene-propionitrile gave B-morpholino-a-3.4-dimethoxyacrylonitrile. I 27- 1 29C.  
 EXAMPLE 59 The procedure as in Example 49 using B-morpholinoa-piperonylidenepropionitrile (5.0 g.) gave ,B-morpholino-a-piperonylacrylonitrile. Wt.=4.5 g. (90 percent) m.p. 8284C.  
 EXAMPLE 60 The procedure as in Example 50 using N.N- dimethylacetamide in place of dimethylsulphoxide gave B-dimethylamino-a-3.4.5-trimethoxybenzylacrylonitrile in 83 percent yield. m.p. l2ll23C.  
 EXAMPLE 6l The procedure as in Example 52 using benzyltrimethylammonium hydroxide in place of sodium methoxide gave B-dimethylamino-a-3,4,5-trimethoxybenzylacrylonitrile in 86 percent yield. m.p. l22-l23C.  
 EXAMPLE 62 EXAMPLE 63 B-Hydroxy-a-3.4.5-trimethoxybenzylacrylonitrile (70 g.) in methanol 150 ml.) at C was treated with dimethylsulphate (39 g.). To the mixture was then gradually added a solution of potassium hydroxide g.) in methanol ml.) and water 12 ml.) and the reaction was then kept at 10C for 15 min. The mixture was next heated to C for 15 min.; then cooled; and finally solvent was removed to a residue which was slurried in water (100 ml.) and extracted into chloroform (2 X 80 ml.). The chloroform extract. after backwashing with water ml.), drying, and treatment with charcoal. was evaporated to dryness to give B-methoxy-a-3,4,5-trimethoxybenzylacrylonitrile. Wt.=6l g. percent).  
 EXAMPLE 64 ,B-Anilino-a-3,4.5-trimethoxybenzylacrylonitrile (32 g.) and a solution of guanidine hydrochloride (19 g.) and sodium methoxide (13 g.) in denatured ethanol (100 ml.) were heated under reflux for 2 /2 hr. Solvent (3] ml.) was boiled off and the mixture was cooled to 5C. The resulting crystals of 2,4-diamino-5-(3,4&#39;,5&#39;- trimethoxybenzyl)pyrimidine were collected and washed with denatured ethanol and acetone. Wt.=27 g. (94 percent) m.p. l98-200C.  
  Using methanol in place of denatured alchohol gave 2,4-diamino-5-( 3 &#39;,4,5 &#39;-trimethoxybenzyl )pyrimidine in 86 percent yield after 6 hr. reflux; with isopropanol the reaction was over in 2 hrs. and the yield was 78 percent.  
 EXAMPLE 65 The product from Example 6 was converted to 2,4-  
 diamino-5-(3,4,5&#39;-trimethoxybenzyl)pyrimidine by 5 the procedure of Example 64 in 2 hr. Yield= percent.  
 EXAMPLE 66 The product from Example 7 was converted to 2.4- diamino-5-(3&#39;,4&#39;,5&#39;-trimethoxybenzyl)pyrimidine by the procedure of Example 64 in 2 hr. Yield=90 percent.  
 EXAMPLE 67 The product from Example 8 was converted to 2,4- diamino-5-(3,4&#39;,5-trimethoxybenzyl)pyrimidine by the procedure of Example 64 in 4 /2 hr. Yield=90 percent.  
 EXAMPLE 68 The procedure of Example 64 was repeated using B-anilino-a-3,4-dimethoxy-benzylacrylonitrile (29.4 g.) and gave 2,4-diamino-5-(3,4-dimethoxybenzyl)- pyrimidine. Wt.=25.5 g. (98 percent) m.p. 230233C.  
 EXAMPLE 69 The procedure of Example 64 was repeated using B-anilino-a-piperonylacrylonitrile (28 g.) and gave 2,4- diamino-S-piperonylpyrimidine. Wt.=22 g. (89.5 percent) m.p. 252253C (recrystallised from denatured alcohol).  
 EXAMPLE 70 The procedure of Example 64 was repeated using B-anilino-a-2-methyl-4,5-dimethoxybenzylacrylonitrile (16 g.) and after l8-20 hr. reflux gave 2,4-diamino-5- (2&#39;-methyl-4,5-dimethoxybenzyl)pyrimidine.  
 Wt.=l 1.5 g. (92 percent) m.p. 230-23lC.  
 EXAMPLE 71 The procedure of Example 64 was repeated using B-anilino-a-3,4-dimethoxy-5-bromobenzylacrylonitrile (62 g.) and gave 2,4-diamino-5-(3,4&#39;dimethoxy-5- bromobenzyl)pyrimidine. Wt.=38 g. (70 percent) m.p. 203.5-205C.  
 EXAMPLE 72 The procedure of Example 64 was repeated using B-anilino-a-p-benzyloxybenzyl-acrylonitrile (25 g.) and gave after 4 hr. reflux 2.4-diamino-5-(p-benzyloxybenzyl)pyrimidine. Wt.=20.5 g.. This was converted to its acetate salt by treatment with acetic acid. Wt.=l 5  
 EXAMPLE 73 EXAMPLE 74 B-Morpholino-a-3,4,5-trimethoxybenzylacrylonitrile (32 g.), guanidine carbonate (34 g.) and dimethylsulphoxide (50 ml.) were heated together at 160C for 1 hr. with good stirring. The reaction mixture was cooled and poured into ice-water (200 ml.) and gave 2 4-diamino-5-( 3 &#39;,4&#39;,5 &#39;-trimethoxybenzyl )pyrimidine which was collected and washed with water and acetone. Wt.=23.6 g. (80 percent) m.p. l96-l98C.  
 EXAMPLE 75 The procedure of Example 74 was repeated using B-N-mcthylanilino-a-3,4,5-trimethoxybenzylacrylonitrile and gave 2,4-diamino-5-(3&#39;,4&#39;,5-trimethoxybenzyl)pyrimidine.  
 EXAMPLE 76 The procedure of Example 74 was repeated using B-piperidino-a-3,4,5-trimethoxybenzylacrylonitrile and gave 2,4-diamino-5-(3&#39;,4&#39;,5&#39;-trimethoxybenzyl)- pyrimidine.  
 EXAMPLE 77 The procedure of Example 74 was repeated using B-pyrrolidino-a-3.4,5-trimethoxybenzylacrylonitrile and gave 2 4-diamino-5-(3,4&#39;,5&#39;-trimethoxybenzyl)- pyrimidine.  
 EXAMPLE 78 The procedure of&#39;Example 74 was repeated using B-dimethylamino-a-3,4,5-trimethoxybenzylacrylonitrile and gave 2.4-diamino-5-(3&#39;,4&#39;,5&#39;-trimethoxybenzyl)pyrimidine.  
 EXAMPLE 79 The procedure of Example 74 was repeated using B-benzylamino-a-3,4,5-trimethoxybenzylacrylonitrile and gave 2,4-diamino-5-(3,4&#39;,5-trimethoxybenzyl)- pyrimidine.  
 EXAMPLE 80 The procedure of Example 74 was repeated using B-mrpholino-a-3,4-dimethoxy-benzylacrylonitrile and gave 2,4-diamino--( 3 &#39;,4&#39;-dimethoxybenzyl )pyrimidine.  
 EXAMPLE 81 The procedure of Example 74 was repeated using B-dimethylamino-a-3,4-dimethoxybenzylacrylonitrile and gave 2,4-diamino-5-(3&#39;,4-dimethoxybenzyl)- pyrimidine.  
 EXAMPLE 82 The procedure of Example 74 was repeated using B-morpholino-a-piperonylacrylonitrile and gave 2,4- diamino-S-piperonylpyrimidine.  
 EXAMPLE 83 The procedure of Example 74 was repeated using B-morpholino-a-3.4-dimethoxy-5- bromobenzylacrylonitrile and gave 2.4-diamino-5- (3&#39;,4&#39;-dimethoxy-5&#39;-bromobenzyl) pyrimidine.  
 EXAMPLE 84 Procedure of The procedure 64 was repeated using B-methoxy-a-S,4,5-trimethoxy-benzylacrylonitrile (54 g.) and after 20 hr. reflux gave 2,4-diamino-5-(3,4,5&#39;- trimethoxybenzyl)pyrimidine. Wt.=56 g. (94 percent) m.p. l98200C.  
 EXAMPLE 85 Under the conditions of Ex. 24 the B-hydroxy--B-( 3.4- dichlorophenethylmethylsulfone, B-l&#39;l)lfOX \&#39;-B(O, meta, p-iodophenyl)methylsulfones and B-hydroxy-B- (p-bromophenethylsulfones) were condensed with B-anilinopropionitrile to yield the corresponding B-anilino-a-halogcnobenzylacrylonitriles.  
 EXAMPLE 86 EXAMPLE 87 B-hydroxy-a-3,4,5-trimethoxy-benzylacrylonitrile 25 grams. denatured ethanol (70 ml.) 2,4-dimethyl aniline (14 ml.) refluxed together for 1 hr. Solvent removed by evaporation and vacuum and the residue was poured into ice water. The resulting thick gum was collected and recrystallized from methanol to give crystaline 3-2- ,4-dimethylanidino-a-3,4.5-trimethoxybenzylacrylonitrile. Wt.=l lg. (31 percent yield) M.P. l23-l25 C.  
 EXAMPLE 88 Procedure of Example 87 was repeated using 3,4,5- trimethoxyaniline and gave ,8-3,4,5-trimethoxybenzylacrylonitrile in 65 percent yield. M.P. l56-l6lC. Recrystallized from denatured ethanol.  
 EXAMPLE 89 Procedure of Example 87 was repeated using 2,5- dichloroaniline and gave B-2,5-dichloroanilino-a- 3,4,5-trimethoxybenzylacrylonitrile. 20 g, 51 percent yield. A sample recrystallized from denatured ethanol melted at C, resolidified, and then remelted at EXAMPLE 90 Procedure of Example 87 was repeated using oz-napthylamine l4.3gr. and gave crystaline B-lnapthylamino -a-3.4.S-trimethoxy-benzylacrylonitrile. Wt.=26 gr. 70 percent yield, melting pt. 107 109C.  
 EXAMPLE 91 The product from Example 87 was converted to trimethoprim by the procedure of Example 64 in 4 hrs. Yield 92 percent.  
 EXAMPLE 92 The product from Example 88 was converted to trimethoprim by the procedure of Example 64 in 3 hrs. Yield above 90 percent.  
 EXAMPLE 93 The product from Example 89 was converted to trimethoprim by the procedure of Example 64 in 1.5 hrs. Yield 95 percent. This reaction was repeated as in Example 64 except at room temperature and useful yield of trimethoprim was obtained in several hrs.  
 EXAMPLE 94 The product from Example 90 was converted to trimethoprim by the procedure of Example 64 in several hrs. Yield 72 percent.  
 EXAMPLE 95 Methyl a-( 3.4.5-trimethoxyacetophenone) Sulphone O 4% H2 02 HaCO- CSCHa Charge into a 500 ml. three necked flask equipped with stirrer and reflux condenser, 27 gms. (0.69M) sodium amide, 225 ml. dimethylsulphoxide and 56.5 gm. dimethylsulphone (0.6M). Heat to 55C for 1 hour with stirring, and cool to 50C. Add 65.4 gm. (0.25M) 3.4.5- trimethoxy-methylbenzoate and heat to 60C for 1 hour to complete the reaction.  
  Pour the mixture onto 1100 gm. of ice and acidify with 180 ml. dilute HCl (1:). Cool in an ice bath and filter and crystalline product. Wash with 2 l50 ml. of ice water and 2X 100 ml. ice cold lower alcohol such as ethanol. Air dry overnight or vacuum dry at 40C to constant weight. The yield will be 74 gm. or 88 percent of theory of suitable intermediate for the next step. A.N. Sample M.P. l47148C. Recrystallized from Ethanol Calculated Found C 49.98 49.8 H 5.59 5.54  
 EXAMPLE 96 Reduction of methyloi(3.4.5-trimethoxyacetophenone) sulphone to the corresponding alcohol Set up a 3 neck 1 liter flask equipped with a stirrer in an ice bath. Charge with 38.1 gm. of methyl (3.4.5-  
 trimethoxyacetophenone) sulphone, 100 ml. desalted water and ml. ethanol and cool this slurry to +14C. Add portion wise a precooled solution of 2 gm. sodium borohydride in 40 ml. desalted water. The first few ml. will cause a slight foaming but it can be controlled easily with a few ml. of ethanol. Additional ethanol can be used to wash down the sides of the reaction flask.  
  At the end of the addition of the borohydride remove the cooling bath and stir for 1 hour. Completion of the reaction is checked by UV. Cool the slurry to +2C and filter all solids. Wash with small amounts of ice water and dry in vacuum oven at 50C to constant weight. The yield will be 34.2 gm. or 89.3 percent of theory. A.N. Sample M.P. -l54C Recrystallized from ethanol Calculated Found C 49.7 49.39 H 6.24 6.27  
 EXAMPLE 97 w-( Methylsulfinyl)3 ,4,5-Trimethoxyacetophenone CHaO  0 CH3() iii-CHz-S O-CH:  
 Into a three necked flask, equipped with condenser, stirrer and thermometer. charge 4.0 gm. sodium amide (hexane washed) and 75 ml. dimethyl sulphoxide (distilled and dried). Slowly warm (in&#39;an external water bath) to 45C and the reaction begins. Raise temperature gradually to 60C and maintain for 1 hour, to complete. Cool to +15 and add dropwise a solution of 12 gm. 3,4,5-trimethoxymethylbenzoate in 25 ml. of dimethylsulphoxide. Keep the temperature between 20-25C by external cooling. Stir /2 hour at room temperature and quench into 300 ml. ice water. Carefully acidify to pH 5-6 with cold dilute hydrochloric acid.  
  Extract into chloroform 3X100 ml., wash the organic layer with 4X50 ml. water, dry over sodium sulphate, filter and flash evaporate all solvent.  
 The heavy oil will weigh 15 gm. and slowly crystallize on standing.  
  To purify; dissolve the thick oil in 75 ml. ethyl acetate. charcoal and cool the filtrate in an ice acetone bath. Filter and dry the white solid. Wt. 10 gm. percent yield. M.P. 1l3115C.  
  A.N. Sample M.P. ll5-1l6C Recrystallized from acetone Calculated Found C 53.05 52.69 H 5.92 5.84  
 EXA M PLE 98 B-HydroxyB3 .4,5-trimethoxyphenethylmethylsulphoxide  OH CH30 CHzS O-CH3 H CH:  
 Combine l4 gm.w( methylsulfinyl )3,4,5-  
 trimethoxyacetophenone, 50 ml. desalted water and 35 ml. methanol. Cool to +15C and with magnetic stirring add slowly a solution of 0.5 gm. sodium borohydride in.  
  ml. water. The reaction is exothermic but can be controlled between l520C with external cooling. Stir at room temperature for 2 hours, check for completion by U.V. and finally strip off methanol by vacuum at 4550C. Extract the aqueous solution with 3X75 ml. chloroform, wash with the organic layer 1X75 ml. water, dry over magnessium sulphate. filter and evaporate to a clear thick oil. A few drops of ethyl acetate causes complete crystallization. Weight 14 gm. This is suitable for use in the next step without further purification. A.N. Sample M.P. l50l55C (lsomers) Recrystallized from Ethyl Acetate.  
  Calculated Found* C 52.4 52.37 H 6.61 6.70  
 *Hexamethylphosphoramide has been substituted for the dimethyl sul hoxide as well as potassium hydroxide in methanol for the sodium methylate with the same results in all cases.  
 EX AM PL E 9 9 0:6 ,4,5-Trimethoxybenzyl) B-anilinoacrylonitrile CHNHPh CH;C  
  Combine in a flask at room temperature 5.4 gm. B-hydroxy-B-3,4,5-trimethoxyphenethyl methyl sulphoxide, 3 gm. B-anilinopropionitrile, ml. dimethylsulphoxide and 2.0 gm. sodium methylate. Warm slowly with stirring, on a steam bath up to 9095C. It gets very dark in color. Reaction, by U.V., is complete in 20 minutes at 95C.  
  Quench in ice water and wash the dark oily precipitate by decantation. Dissolve in 15 ml. of ethanol and cool. Filter the heavy yellow crystalline precipitate, wash with cold ethanol and hexane. Dry. Wt. 2 gm. z 31 percent yield. The U.V., 1.R., and M.P. are identical to that prepared from the 3,4,5-trimethoxybenzaldehyde and B-anilinopropionitrile. Ph phenyl.  
 EXAMPLE 100 a( 3 ,4,5-trimethoxybenzy1 )fi-anilinoacrylonitrile CHaO CHNHPh CHI-0% CHaO- filter. Wash the cake with ice water and finally hexane. Vacuum dry at C to constant weight. The yield will be 32 gm.* or theory of crude a-(3,4.5- trimethoxybenzyl-B-anilinoacrylonitrile). The UV. is satisfactory and it may be used directly in the preparation of Trimethoprim.  
 *Reerystallization Dissolve the crude intermediate in ml. hot ethanol. Cool in ice/acetone hath (preferably overnight) and filter. Wash the cake with cold ethanol 15 ml.) and hexane. \aeuum dry. Weight 26+ gmrpercent yield.  
 EXAMPLE 101 Trimethyl Gallic Acid A solution of sodium hydroxide (904 g) and water (5642 g) and ice, so that the final temperature was 0C, was prepared in a 12 litre three-neck round-bottomed flask equipped with stirrer, temperature probe, Y-tube and dip tube. The reaction vessel was purged continuously with a stream of nitrogen bubbled through the solution. Gallic acid (564 g) was added, the heat of solution raising the temperature to ca. 10C. Dimethyl sulphate (575.9 ml) was added, the temperature allowed to rise to 2025C and then controlled by means of an ice bath for 20 minutes (the temperature rise being very gradual). Two subsequent portions of dimethyl sulphate of equal quantity were added and the temperature maintained for 20 minutes at 3035C and 10 minutes at 40-45C respectively. The Y-tube was re moved and replaced with a reflux condenser. The mixture was refluxed for 2 hours on mantle, then chilled to 50C in an ice bath and the pH adjusted to 3-4 with cone hydrochloric acid (ca. 260 ml). Cooling was continued to 10C and the product collected. The product was washed with ice water (1,000 ml) and dried in vacuo at 60C overnight. The yield was 565 g. of crude trimethyl gallic acid (contaminated with a small quantity of ester) with an m.p. of l39l54C (89 percent yield).  
 EXAMPLE 102 Trimethyl gallic acid (565 g) and methanol (2.300 ml) were mixed, which was then heated to 55C for 5 hours. While anhydrous hydrogen chloride (46 g) was passed into the mixture. The reaction mixture was poured into an ice and water mixture (8 litres) containing lON sodium hydroxide solution (290 ml) under stirring. The slurry of solids was filtered, washed with ice water and dried in vacuo at 50C to give 3,4,5- trimethoxymethyl benzoate, wt. 523g, m.p. of 87-88C.  
  Sodamide (27 g. 0.69 m), dimethylsulphoxide (225 ml.) and dimethylsulphone (56.5 g. 0.6 m) were heated together to 55C for one hour and cooled to 50C. 3,4,- S-Trimethoxymethylbenzoate (65.4g. 0.29 mole) was added, and the mixture heated to 60C for 1 hour to complete the reaction.  
  The mixture was poured into ice 1,1 10 g), acidified with dilute (1:1) hydrochloric acid (180 ml) and cooled in an ice bath. The crystalline product was filtered, washed with ice water (2 X 150 ml) and icecold ethanol (2 X ml). Air drying overnight gave methyl-a-(3,4,5-trimethoxyacetophenone) sulphone, wt. 74 g., m.p. l47l48C.  
  Methyl-a-(3,4,5-trimethoxyacetophenone) sulphone (38.1 g), desalted water (100 ml) and ethanol (30 ml) were mixed and cooled to 15C. A pre-cooled solution of sodium borohydride (2 g) in desalted water (40 ml) was gradually added. The cooling bath was then removed and the reaction mixture stirred for one hour. The slurry was cooled to 2C, the solids filtered washed with iced water, and dried in vacuo at 50C to give 34.2 g. of the corresponding ,B-hydroxy-B-3,4,5-trimethoxyphenethysulphone, m.p. 153-154C.  
  a. The above sulphone (29 g), B-anilinopropionitrile l6.5 g), and dimethylsulphoxide (40 ml.) were heated together to 40C, and a solution of potassium tbutoxide in t-butanol (13.6 percent; 83 ml) was carefully added. The temperature was maintained at 45C for one hour. The alcohol was then removed from the reaction mixture by vacuum evaporation and the residue was poured into ice-water (200 ml.). The crude crystalline product was collected and recrystallized from ethanol to give B-anilino-a-3,4,5-trimethoxybenzylacrylonitrile. Wt. 26 g. (after washing with ethanol and hexane).  
  Under the conditions described above under a). the following sulphones were condensed with ,B-anilinopropionitrile to yield the corresponding B-anilino-ahalogenobenzylacrylonitriles:  
  b. B-hydroxy-,B(3,4-dichloro-phenethyl)methyl sulphone produced B-anilino-a-3.4- dichlorobenzylacrylonitrile;  
  c. ,B-hydroxy-B-(2-iodophenethyl)methyl sulphone produced B-anilino-a-Z-iodobenzylacrylonitrile;  
  d. ,B-hydroxy-,8(3-iodophenethyl)methyl sulphone produced ,B-anilino-a-3-iodobenzylacrylonitrile;  
  e. B-hydroxy-B-(4-iodophenethyl)methyl sulphone produced B-anilino-a-4-iodobenzylacrylonitrile;  
  f. B-hydroxy-B-(2-bromophenethyl)methyl sulphone produced B-anilino-a-2-bromobenzylacrylonitrile.  
 EXAMPLE 103 A three-necked flask, equipped with condenser, stirrer and thermometer. was charged with hexane-washed sodium amide (4.0 g) and distilled and dried dimethyl sulphoxide (75 ml). The mixture was slowly warmed in an external water bath to 45C and the reaction began. The temperature was raised gradually to 60C and maintained for 1 hour, to complete the reaction.  
  The mixture was cooled to +l5C and a solution of 3,4,5-trimethoxymethylbenzoate (12 g) in dimethylsulphoxide (25 ml) added dropwise. The temperature was kept between 2025 C by external cooling. The mixture was stirred for half an hour at room temperature and quenched into ice water (300 ml). It was then carefully acidified to pH 5-6 with cold dilute hydrochloric acid (1:1).  
  It was extracted into chloroform (3 X 100 ml), the organic layer washed with water (4 X 50 ml), dried over sodium sulphate, filtered and all solvent flash evaporated.  
  The heavy oil weighed l5 g and slowly crystallised on standing.  
  Purification was effected by dissolving the thick oil in ethyl acetate (75 ml), charcoal and cooling the filtrate in an ice acetone bath. The white w-(methylsulfinyh- 3.4,5-trimethoxyacetophenone was filtered and dried. Wt. gm.. m.p. ll3-l 15C.  
  Recrystallised from acetone, the m.p. l l5l 16C. and the analytical results were:  
  Calculated Found C 53.05 52.69 H 5.92 5.84  
 EXAMPLE 104 w-(Methylsulfinyl) 3.4,5-trimethoxyacetophenone (l4 g). desalted water (50 ml) and methanol (35 ml) were combined and cooled to +l5C. With magnetic stirring a solution of sodium borohydride (0.5 g) in water 10 ml) was added. The reaction was exothermic but could be controlled between l520C with external cooling.  
  The mixture was stirred at room temperature for 2 hours. and the methanol stripped off by vacuum at 4550C. The aqueous solution was extracted with chloroform (3 X ml), the organic layer washed with water (1 X 75 ml) dried over anhydrous magnesium sulphate, filtered and evaporated to a clear thick oil. A few drops of ethyl acetate caused complete crystallisation B-hydroxy-B-3,4,5-trimethoxyphenethyl methyl sulphoxide. Wt. 14 g. This was suitable for use in the next step without further purification.  
  The melting point was i50-l55C (isomers). Recrystallised from ethyl acetate, the analytical results were:  
  Calculated Found C 52.4 52.37 H 6.6] 6.70  
 EXAMPLE 105 B-Hydroxy-B-3,4,5-trimethoxyphenethyl methyl sulphoxide (5.4 g), ,B-anilinopropionitrile (3 g), dimethylsulphoxide (25 ml) and sodium methylate (2.0 g) were combined in a flask at room temperature and warmed slowly with stirring, on a steam bath up to 95C. The mixture became very dark in colour and the reaction was complete in 20 minutes at C.  
  The mixture was quenched in ice water and dark oily precipitated washed by decantation. It was dissolved in ethanol (15 ml) and cooled. The heavy yellow crystalline precipitate was filtered, washed with cold ethanol and hexane, and dried. Wt. 2 g. The product was identical with a sample prepared from the 3,4,5-trimethoxybenzaldehyde and A-anilinopropionitrile.  
  Hexamethylphosphoramide has been substituted for the dimethyl sulphoxide, as well as potassium hydroxide in methanol for the sodium methylate, with the same results in all cases.  
 EXAMPLE 106 A quanidine solution was prepared from guanidine hydrochloride (15 g), sodium methoxide (10 g) and ethanol ml). It was cooled, filtered salt-free, and combined with a-(3,4,5-trimethoxybenzyl) ,B-anilinoacrylonitrile (16 g). It was then refluxed on a steam bath overnight, and the hot solution was treated with charcoal Darco 0-60 (2.0 g) and evaporated to A volume. It was cooled to complete crystallisation, filtered and washed with cold ethanol, acetone and ether and dried. Wt. 13 g. (91 percent theory), m.p.  
 EXAMPLE 107 The procedure of Example 2 was repeated using hexamethylphosphoramide (40 ml) in place of dimethylsulphoxide, and on work-up B-anilino-a-3,4,5- trimethoxybenzylacrylonitrile was obtained. Wt. 26 g. m.p. 126-l28C.  
 EXAMPLE 108 A mixture of (3.3 g; 0.0115 mole) of methyl a-(3,4,5-trimethoxyacetophenone) sulfone, isopropanol (distilled from aluminum isopropoxide) (75 ml) and of aluminum isopropoxide (2.7 g; 0.0132 mole) was heated to reflux. Periodically, a few drops of distillate were taken from beyond a 15 inch Vigreaux column and tested for the presence of acetone with 2,4- dinitrophenyl hydrazone reagent. After two days of refluxing and removal of distillate the acetone test became negative. During the refluxing period additional dry isopropyl alcohol (50 ml) was required to replace that removed for testing. The reaction mixture was evaporated to dryness and mixed with 2N hydrochloric acid (230 ml). The mixture was washed 4 times with chloroform. The combined chloroform washes were dried over magnesium sulfate and evaporated to give a solid, 3.3 g (97 percent); m.p. l513C. Recrystallisation from chloroformbenzene gave B-hydroxy-B-3,4,5- trimethoxyphenethylmethylsulfone, 3.1 g. (92 percent); m.p. l53.5-155.5C. The recrystallised product showed one spot on silica gel thin layer after development with chloroform-acetone (9:1) and visualization with iodine vapors.  
 EXAMPLE 109 ,B-Hydroxyl33,4,5-trimethoxyphenethylmethylsulphone g), B-anilinopropionitrile (3 g) dimcthylsulphoxide (20 ml) and a solution of potassium hydroxide in methanol (20 percent; 2 ml) were reacted together at 9095C for 20 minutes. Work-up gave B-anilino-a-3,4,5-trimethoxybenzylacrylonitrile (3 g) m.p. 126l29C (recrystallised from ethanol).  
 EXAMPLE 110 The procedure of Example 109 was repeated using hexamethylphosphoramide (20 ml) in place of dimethylsulphoxide and on work-up gave B-anilino-a-3,4.5- trimethoxybenzylacrylonitrile (2 g) m.p. 125-127C (recrystallised from ethanol).  
 EXAMPLE 111 The procedure of Example 110 was repeated using sodium methoxide (0.5 g) in place of potassium hydroxide in methanol, and on work-up gave ,B-anilino-a- 3,4,5-trimethoxybenzylacrylonitrile. Wt. 3 g.. m.p.128-130C.  
 EXAMPLE 112 B-Hydroxy-B-3,4,5-trimethoxyphenethylmethylsulphone (10 g), B-anilinopropionitrile (5.1 g), hexamethylphosphoramide ml), and sodium methoxide 1 g) were reacted at 60C for 30 minutes, and on workup gave B-anilino-oz-3,4,5-trimethoxybenzylacrylonitrile. Wt. 6 g., m.p. l27l29C.  
 EXAMPLE 113 The procedure of Example 110 was repeated using N,N-dimethylacetamide ml) in place of dimethylsulphoxide, and on work up gave B-anilino-a-3,4,5- trimethoxybenzylacrylonitrile. Wt. 2.5 g., m.p. l25l28C.  
 EXAMPLE 1 14 B-Hydroxy-B-3,4,5-trimethoxyphenethylmethylsulphoxide (5.4 g), B-anilinopropionitrile (3 g), dimethylsulphoxide (25 ml), and sodium methylate (0.5 g) were reacted together at -95C for one hour. The mixture was then poured into ice-water; the solid collected; and recrystallised from denatured ethanol to give ,B-anilino- 01-3,4,5-trimethoxybenzylacrylonitrile. Wt. 2 g. (30 percent) m.p. 125127C.  
 EXAMPLE The procedure in Example 114 was repeated using potassium hydroxide (2 g) in methanol (5 ml) in place of sodium methoxide, and on work-up gave B-anilino- 01-3,4,5-trimethoxybenzylacrylonitrile. Wt. 2 g.. m.p. l25&#39; l28C.  
 EXAMPLE 1 16 The procedure in Example 114 was repeated using hexamethylphosphoramide in place of dimethylsulphoxide and sodium methoxide (2 g), and on work-up gave ,B-anilino-a-3,4,5-trimethoxybenzylacrylonitrile. Wt. 2 g., m.p. 125129C.  
 EXAMPLE 117 The procedure in Example 114 was repeated using potassium t-butoxide in t-butanol (13.6 percent; 15 ml) in place of sodium methoxide, and on work-up gave B-anilino-a-3,4,5-trimethoxybenzylacrylonitrile. Wt. l g., m.p. 128130C.  
 EXAMPLE 118 The procedure in Example 117 was repeated using hexamethylphosphoramide (25 ml.) in place ofdimethylsulphoxide, and on work-up gave ,B-anilino-a-3,4,5-  
 trimethoxybenzylacrylonitrile. Wt. 1 g.. m.p. 123-126C.  
 EXAMPLE 119 ,B-Morpholinopropionitrile (3.0g), B-hydroxy-B- 3,4,5-trimethoxyphenethylmethylsulphone (2.9 g), sodium methoxide (0.3 g) and hexamethylphosphoramide (6 ml) were reacted together at 60-65C for 40 minutes, and then poured into ice-water (50 ml). The crude solid was collected by decantation and recrystallised from ethanol (10 ml) to give B-morpholino-a- 3,4,5-trimethoxybenzylacrylonitrile. Wt. 2 g.  
 EXAMPLE 120 The procedure in Example 118 was repeated using benzyltrimethylammonium hydroxide in place of sodium methoxide and on work-up B-morpholino-a- 3,4,5-trimethoxybenzylacrylonitrile was obtained in 50 percent yield.  
 EXAMPLE 121 B-Anilino-a-3,4,5-trimethoxybenzylacrylonitrile (32 g) and a solution of guanidine hydrochloride 19 g) and sodium methoxide (13 g) in denatured ethanol (100 ml) were heated under reflux for 2 /2 hours the solvent (31 ml) was boiled off and the mixture was cooled to C. The resulting crystals of 2,4-diamino-5-(3&#39;,4,5&#39;- trimethoxybenzyl)pyrimidine were collected and washed with denatured ethanol and acetone. Wt. 27 g. (94 percent), m.p. 198200C.  
  Using methanol in place of denatured ethanol gave 2,4-diamino-5-( 3 ,4 &#39;,5 &#39;-trimethoxybenzyl) pyrimidine in 86 percent yield after 6 hours reflux, with isopropanol the reaction was over in 2 hours and the yield was 78 percent. I  
 EXAMPLE 122 The products from Examples 102 (b) to (1&#39;), were converted by the procedure of Example 21.. into a. 2,4-Diamino--(3,4-dichlorobenzyl) pyrimidine,  
 b. 2,4-Diamino-5-(2-iodobenzyl)pyrimidine, m.p.  
 c. 2,4-Diamino-5 -(3&#39;-iodobenzyl)pyrimidine. m.p.  
 d. 2.4-Diamino-5-(4&#39;-iodobenzyl)pyrimidine, m.p.  
 e. and 2.4-diamino-5-(2&#39;-bromobenzyl)pyrimidine.  
 EXAMPLE 123 B-Morpholino-a-3.4,5-trimethoxybenzylacrylonitrile (32 g), guanidine carbonate (34 g) and dimethylsulphoxide (50 ml) were heated together at 160C for 1 hour with good stirring. The reaction mixture was cooled and poured into ice-water (200 ml) and gave 2,4- diamino-5-(3&#39;,4&#39;,5-trimethoxybenzyl)pyrimidine which was collected and washed with water and acetone. Wt. 23.6 g. (80 percent) m.p. 196-l98C.  
 EXAMPLE 124 Methyl p-methylbenzoate is converted into 2,4- diamino-S -(p-methylbenzyl)-pyrimidine, m.p. 166171C., by the procedures of Example 102. Example 105, and Example 106.  
 EXAMPLE 125 EXAMPLE 126 2-Ethyl-4,5-dimethoxybenzoic acid is esterified in methanol containing hydrochloric acid. The methyl ester is converted consecutively to methyl-a-(2-ethyl- 4,5-dimethoxyacetophenone) sulphone, methyl-B- hydroxy-B-(2-ethyl-4,5-dimethoxyphenyl)-ethyl sulphone, and ,B-anilino-a-(2-ethyl-4,S-dimethoxybenzyl) acrylonitrile according to Example 107. Following the s procedure of Example 121 the ,B-anilino-a-(Z-ethyl- 4,5-dimethoxybenzyl) acrylonitrile is allowed to react with guanidine to give 2,4-&#39;diamino-5-(2&#39;-ethyl-4&#39;,5&#39;- dimethoxybenzyl)pyrimidine. m.p. 206207C. after recrystallization from 60 percent to ethanol.  
 EXAMPLE 127 Syringic acid was esterified by the Fischer Method using concentrated sulfuric acid as catalyst and a large excess of methanol to give a nearly quantitative yield of methyl syringate, m.p. 104-l06C. after recrystallization from isopropanol and hexane.  
 LII  
  A mixture of 21.2 g. of methyl syringate, 15 g. of potassium carbonate, 1 g. of sodium iodide, 70 ml. of 95 percent ethanol (5 percent methanol), and 14 g. of benzyl chloride was heated at reflux with stirring for 4 hours. The alcohol was stripped off, ice water added, and the mixture extracted with ether. The ether extract was washed with water and the ether stripped off. Benzene was added and stripped to remove traces of water. The residual oil was dissolved in isopropanol. charcoal added, and the mixture filtered. Hexane was added and the solution cooled. A total of 19 g. (63 percent yield) of methyl 3,5-dimethoxy-4-benzyloxybenzoate. m.p. 6265C., was obtained.  
  A mixture of 6 g. of sodamide, ml. ofdimethylsulphoxide. and 1 1.5g. of dimethylsulphone was heated for 1 hour at 60C. with stirring and then cooled to C. To this was added 17 g. of methyl 3,5-dimethoxy- 4-benzyloxybenzoate. The solution was heated at C. for 1 hour and poured into 200 ml. of ice water which was then acidified to pH 2-3. The white crystalline product was dissolved in 400 ml. of percent ethanol,  
 EXAMPLE 128 Following the procedure of Example 127 using nbutyl bromide instead of benzyl chloride 2,4-diamino- 5-( 3 ,5&#39;-dimethoxy-4&#39;-n-butoxybenzyl)pyrimidine, m.p. 163164C., is prepared.  
 EXAMPLE 129 3-Bromo-4-methoxybenzoic acid is esterified by the Fischer method and the ester converted successively into methyl-a-(3-bromo-4-methoxyacetophenone) sulphone, B-hydroxy-B-(3-bromo-4-methoxyphenyl)ethyl sulphone,B-anilino-a-( 3-bromo-4-methoxybenzyl )acrylonitrile, and 2,4-diamino-5-(3&#39;-bromo-4- methoxybenzyl) pyrimidine following successively the procedures of Examples 102, 102a, and 106. The pyrimidine has a m.p. of 232233C.  
 EXAMPLE 130 a. 2,4,6-trimethylmethyl benzoate is converted into 2,4-diamino-5-(2&#39;,4,6-trimethylbenzyl)pyrimidine by the procedure of examples 102, and 106.  
  b. 2-bromo-3,4,5 trimethoxymethyl benzoate is converted into 2,4-diamino-5-(2&#39;-bromo-3&#39;,4&#39;,5&#39;- trimethoxybenzyl)pyrimidine by the procedure of examples 102, 105 and 106.  
  c. 2-bromo-3,5-dimethoxy-4n butoxy methyl benzoate is converted into 2,4-diamino-5-(2-bromo-3&#39;,5- dimethoxy-4&#39;-n-butoxybenzyl)pyrimidine by the procedure of examples 102, 105 and 106.  
  d. 3,4 methylenedioxy methyl benzoate is converted into 2,4-diamino-5-(3,4methylenedioxy pyrimidine by the procedure of examples 102. I and EXAMPLE 131 Trimethoprim 2.4-diamino-5-( 3,4&#39;,5 &#39;-trimethoxybenzyl )pyrimidine Prepare a guanidine solution from gm. guanidine HCl. 10 gm. sodium methylate. and 100 ml. ethanol. Cool. filter salt free. and combine with 16 gm.a(3.4.5- trimethoxy-benzyl)B-anilinoacrylonitrile. Reflux on a steam bath overnight. charcoal the hot solution with 2.0 gm. Darco 0-60 and evaporate to A volume. Cool to complete crystallization, filter. and wash with cold ethanol. acetone, and ether. Dry. Weight l3+gm.-9l% theory.M.P.l98-200C.  
 EXAMPLE I32 B-hydroxyB3,4,5-trimethoxyphenethylmethylsulphoxide  Sodium methylate (5.4 gm.) was dissolved in hot dimethylsulfoxide (50 ml.), the solution was cooled to room temperature, 3,4,5&#39;trimethoxybenzaldehyde (18 gm.) was added. and the mixture was stirred at room temperature for 2 hours. Water (100 ml.) was then added to the mixture which was next extracted with chloroform. The chloroform extract was washed with water, dried over anhydrus sodium sulfate, and evaporated to dryness. The residual yellow oil crystallized on addition of ethylacetate. The crystals were collected and washed with pentane. Weight 14.8 gm. (59 percent) M.P. l60-l62C (after recrystallization from cthylacetate.) LR. and UV. spectra in agreement with structure Calculated Found C 52.4 52.37 H 6.61 6.70  
 We claim:  
 1. The compound P&#34; R1 OH J;H X R where X is CH SO CH or CH SOCl-l and where R R are the same or different and each is hydrogen, halogen, loweralkyl, lower alkoxyl, benzyloxy, wherein the lower alkyl and lower alkoxyl contain 1 to 4 car- 5. A compound according to claim 4 in which there is methyl at the 2 position and methoxyl at the 4 and 5 positions of the ring.  
  6. A compound according to claim 4 in which there is methoxyl at the 3 and 4 positions of the ring, and two of RR are hydrogen.  
  7. A compound according to claim 4 in which there is methoxyl at the 3, 4 and 5 positions of the ring.  
  8. A compound according to claim 4 in which there is a para lower alkoxyl or para lower alkyl on the ring.  
  9. A compound according to claim 1 in which one or two bromine. chlorine or iodine atoms are positioned on the ring.  
  10. A compound according to claim 1 which is B-hydroxy-B-3,4-dichlorophenethylmethylsulfone.  
  11. A compound according to claim 1 which is B-hydroxy&#39;-B-(2-iodophenethyl)methyl sulphone.  
  12. A compound according to claim 1 which is B-hydroxy-B-( 3-iodophenethyl )methyl sulphone.  
  13. A compound according to claim 1 which is B-hydroxy-,8(4-iodophenethyl)methyl sulphone.  
  14. A compound according to claim 1 which is ,B-hydroxy-,8(2-bromophenethyl)methyl sulphone.  
  15. A compound according to claim 1 which is B-hydroxy-B-(3,4-dimethoxyphenyl)ethylmethyl sulphoxide.  
  16. A compound according to claim 1 which is methyl-B-hydroxy-B-( 2-ethyl-4,5-dimethoxyphenyl )ethyl sulphone.  
  17. A compound according to claim 1 which is B-hydroxy-B-( 3 ,5-dimethoxy-4-benzylloxyphenyl )ethylmethyl sulphone. I  
  18. A compound according to claim 1 which is B-hydroxy-B-(3-bromo-4-methoxyphenyl)ethyl sulphone.  
 19. A compound of the formula where R, R&#39;-&#39; and R are the same or different and each is a loweralkyl or loweralkoxy group and X is CH SO CH or CH SOCH and wherein the loweralkyl and loweralkoxyl contain 1 to 4 carbon atoms.  
  20. The compound of claim 19 in which R, R and R are loweralkoxy.  
  21. The compound of claim 19 wherein R, R and R are methoxyl groups.  
  22. The compound of claim 19 wherein X is CH SO CH 23. The compound of claim 19 wherein X is CH SOCH 24. The compound of claim 22 wherein R. R and R are methoxyl.  
  25. The compound of claim 23 wherein R. R and R are methoxyl.  
  26. The compound of claim 1 in which R R are the same or different and each is hydrogen, halogen, loweralkyl, loweralkoxyl, benzyloxy. provided that at least one of R R is always a substituent selected from the above definition other than hydrogen.  
  i l l= l= l