[C-:1]#[N:2].[Na+].Cl[CH2:5][CH2:6][CH2:7][CH2:8][CH2:9][CH2:10][C:11]1[CH:16]=[CH:15][N:14]=[CH:13][CH:12]=1.O>CS(C)=O>[C:1]([CH2:5][CH2:6][CH2:7][CH2:8][CH2:9][CH2:10][C:11]1[CH:16]=[CH:15][N:14]=[CH:13][CH:12]=1)#[N:2]NaCN (509 mg) in DMSO (4.25 ml) is added to 4-(6-chlorohexyl)pyridine (1.71 g) dissolved in DMSO (4.25 ml). The mixture is stirred at 60° C. for 3 hours, poured into water (100 ml) and extracted with chloroform (3×15 ml). The combined extracts are washed with water (2×20 ml), dried (Na2SO4) and the solvent evaporated to give 4-(6-cyanohexyl)-pyridine.