Linux script should work now (not tested)