Results 1 to 4 of 4
  1. #1
    ABW Ambassador Ron Bechdolt's Avatar
    Join Date
    January 18th, 2005
    Location
    Affiliateville, USA
    Posts
    7,927
    cron job unzipping protocol
    Not sure if this is the right place to post this but it is related to datafeeds.

    If one is using a cron job to unzip a datafeed that has been delivered to a server, how do you do it in such a way that the unzipped file(s) go to a specified file folder? I used the following years ago but it put the unzipped file into the home directory, not a public directory. I'd like to do it in such a way that the file is public for easy accessibility.

    unzip -o /home/domainusername/public_html/domainfolder/filename.zip

    Thanks!
    Ron Bechdolt | Affiliate Program Management Consultant
    7 Days A Week Marketing

  2. #2
    Full Member iolaire's Avatar
    Join Date
    October 3rd, 2006
    Location
    Arlington, VA
    Posts
    229
    I think -d is destination, this is what I use:
    Code:
    unzip -o /data/incoming.zip -d /data/unzipped_path/
    FYI: Yes I think this is the correct place to post this question.

  3. #3
    Moderator MichaelColey's Avatar
    Join Date
    January 18th, 2005
    Location
    Mansfield, TX
    Posts
    16,232
    If you type "unzip -?", you'll see the usage instructions. It looks like "-d" is right.

    I'd say the post technically should go in the Programmer's Corner subforum, but since most people trying to unzip files are probably doing it for datafeeds, this subforum is fine as well.
    Michael Coley
    Amazing-Bargains.com
     Affiliate Tips | Merchant Best Practices | Affiliate Friendly? | Couponing | CPA Networks? | ABW Tips | Activating Affiliates
    "Education is the most powerful weapon which you can use to change the world." Nelson Mandela

  4. #4
    ABW Ambassador Ron Bechdolt's Avatar
    Join Date
    January 18th, 2005
    Location
    Affiliateville, USA
    Posts
    7,927
    Worked like a charm! Thank you both!!
    Ron Bechdolt | Affiliate Program Management Consultant
    7 Days A Week Marketing

  5. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Help setting my cron job!
    By Ricardo Dacosta in forum Programming / Datafeeds / Tools
    Replies: 1
    Last Post: June 19th, 2008, 09:35 AM
  2. Deleted Cron Job
    By bettylou in forum Programming / Datafeeds / Tools
    Replies: 8
    Last Post: March 27th, 2008, 12:55 AM
  3. Cron Job Question
    By Doug247 in forum Programming / Datafeeds / Tools
    Replies: 9
    Last Post: March 18th, 2008, 01:13 PM
  4. Cron job
    By templus in forum ShareASale - SAS
    Replies: 22
    Last Post: July 29th, 2007, 03:50 PM
  5. Unzipping a dafafeed file using a cron job
    By Ron Bechdolt in forum Programming / Datafeeds / Tools
    Replies: 4
    Last Post: March 8th, 2005, 12:58 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •