The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Running a script immediately (but not a cron job)

Discussion in 'General Discussion' started by estado3, Jul 9, 2007.

  1. estado3

    estado3 Member

    Joined:
    May 12, 2006
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    Is there a cpanel program that enables running a script one time only, but not on a regular basis like cron job?
     
  2. estado3

    estado3 Member

    Joined:
    May 12, 2006
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    on the same theme is there a cpanel feature that can execute files from the file system?
     
  3. brianoz

    brianoz Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,146
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    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.
     
  4. verdon

    verdon Well-Known Member

    Joined:
    Nov 1, 2003
    Messages:
    836
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Northern Ontario, Canada
    cPanel Access Level:
    Root Administrator
    Or just a terminal / shell
     
  5. Nhojohl

    Nhojohl Well-Known Member

    Joined:
    Nov 28, 2006
    Messages:
    101
    Likes Received:
    0
    Trophy Points:
    16
    You could just do a cron job and set the time as a specific date & time.....Would cause it to only be ran once.
     
Loading...

Share This Page