Alton man gets life for attempted murder of cab driver