dlevens Posted July 13, 2004 Posted July 13, 2004 I am trying to find an easy way to run a cron job without having to login to cpanel click on cron and manually create it, then schedule it to run every minute, then delete it after it runs. I have a few scripts that I need to run once in awhile, but not on a consistant enough basis to put them on a schedule. I would like to have a way to just run something that would create the cron job and then after it runs delete it self. Maybe a php file? It would be nice if cpanel would add a config option where you did not need to schedule a cron but could instead just click a button to run it once. At least then I could just login real quick and click run once. Any help would be appreciated, Dennis Quote
borfast Posted July 13, 2004 Posted July 13, 2004 Dennis, in order to do what you're describing, you'd need a shell or something like that - I can't think of anything else. TCH does not offer shell access, so I guess you'll have to stick with the cron job option. Quote
dlevens Posted July 13, 2004 Author Posted July 13, 2004 I saw a php script somewhere that you put your cpanel account and password into and it logged into cpanel for you and created a full backup request. Was hoping to build something similar that would still use cron jobs and cpanel but would login for me and create it then a follow up that would remove it. Dennis Quote
borfast Posted July 13, 2004 Posted July 13, 2004 Sorry, Dennis, I don't know such a script But perhaps someone else knows how to do it and gives you a hand. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.