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.

Cron Job - Unzip?

Discussion in 'General Discussion' started by SneakerPimps, Feb 11, 2007.

  1. SneakerPimps

    SneakerPimps Registered

    Joined:
    Feb 11, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    I'm a bit of a newbie, but is there a way to schedule a script to automatically unzip a .zip file which overwrites all existing files?

    I've been reading and some people suggesting writing a .php script then having Cron to schedule it.

    If anyone can help me to figure out what do to, that will be much appreciated.

    Cheers,
    Nick
     
  2. dragonbooster

    dragonbooster Active Member

    Joined:
    Oct 4, 2006
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    Yes, you can set the cron to unzip the .zip file. Following will be your cron setting

    For example
    * * * * * server path of unzip (usr/bin/unzip) /home/username/public_hrml/ path of the file.

    Please try the above settings but confrim the path of unzip on the server.

    Thanks
     
Loading...

Share This Page