Running a script immediately (but not a cron job)

estado3

Member
May 12, 2006
15
0
151
Is there a cpanel program that enables running a script one time only, but not on a regular basis like cron job?
 

estado3

Member
May 12, 2006
15
0
151
on the same theme is there a cpanel feature that can execute files from the file system?
 

brianoz

Well-Known Member
Mar 13, 2004
1,146
7
168
Melbourne, Australia
cPanel Access Level
Root Administrator
I'm not sure that can be done through cpanel itself, although if you were careful of security you could write a PHP script to implement that.

If you want something that can be run from root, try installing Configserver Explorer from www.configserver.com. It appears down the bottom of WHM and allows you to manipulate files and run stuff from anywhere. It does run as root though so can't be given out to users; use the PHP solution for them.
 

Nhojohl

Well-Known Member
Nov 28, 2006
100
0
166
You could just do a cron job and set the time as a specific date & time.....Would cause it to only be ran once.