Jump to content

Recommended Posts

Posted

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

Posted

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.

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...