However, most of the time there are limits placed on such things by the actual administrators of the notebook. See, for instance, the Sage Server instructions on the wiki, where ulimit has several options used. The one of most interest to you would be -t 36000 which means after 10 hours, the server will kick you off, with that model.