Unix code working