Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Using Cron to unzip files
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- Using Cron to unzip files
Using Cron to unzip files
13-02-2009 10:40 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I have just started using my Payh webspace and uploaded PhpGedView.zip to my httpdocs folder but cannot get unzip to work.
After studying both Cron tutorials I created the following command:
'/usr/bin/unzip -a httpdocs/PhpGedView.zip httpdocs/ > httpdocs/pgvunzip-log 2>&1'
which produces the log file containing:
'Archive: httpdocs/PhpGedView.zip caution: filename not matched: httpdocs/'.
Searching the web finds several instances of 'filename not matched' but they all relate to unzipping multiple files using wildcards.
Do I need a longer path name to the file location?
Thanks
David
After studying both Cron tutorials I created the following command:
'/usr/bin/unzip -a httpdocs/PhpGedView.zip httpdocs/ > httpdocs/pgvunzip-log 2>&1'
which produces the log file containing:
'Archive: httpdocs/PhpGedView.zip caution: filename not matched: httpdocs/'.
Searching the web finds several instances of 'filename not matched' but they all relate to unzipping multiple files using wildcards.
Do I need a longer path name to the file location?
Thanks
David
Message 1 of 3
(1,303 Views)
2 REPLIES 2
Re: Using Cron to unzip files
13-02-2009 7:48 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I think the problem is that you've asked for directory httpdocs to be extracted from the ZIP file and, of course, it isn't in there.
To fix this you need to include "-d" after the ZIP archive specifier as in
'/usr/bin/unzip -a httpdocs/PhpGedView.zip -d httpdocs/ > httpdocs/pgvunzip-log 2>&1'
to tell unzip that what follows is the location to which files are to be extracted. Since the file list is omitted all files in the archive will be extracted.
David too
To fix this you need to include "-d" after the ZIP archive specifier as in
'/usr/bin/unzip -a httpdocs/PhpGedView.zip -d httpdocs/ > httpdocs/pgvunzip-log 2>&1'
to tell unzip that what follows is the location to which files are to be extracted. Since the file list is omitted all files in the archive will be extracted.
David too
David
Message 2 of 3
(257 Views)
Re: Using Cron to unzip files
13-02-2009 10:41 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Thanks David that was it.
It inflated to over 4000 files in minutes.
It would have taken me days doing it manually.
Thanks again
David
It inflated to over 4000 files in minutes.
It would have taken me days doing it manually.
Thanks again
David
Message 3 of 3
(257 Views)
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- Using Cron to unzip files