Duplicating the notebook shell script