oracle765 Posted March 13, 2014 Share Posted March 13, 2014 Cronjob #Viator /usr/bin/wget "/home/oracle765/public_html/feed/vapProducts.xml.zip" 'http://www.partner.viator.com/partner/admin/tools/links_feeds/downloadFeed.jspa?feed=Products&PUID=13594'; #/usr/bin/unzip /home/oracle765/public_html/feed/vapProducts.xml.zip > /home/oracle765/public_html/feed/viatorfeed.xml #rm /home/oracle765/public_html/feed/vapProducts.xml.zip result email /home/oracle765/public_html/feed/vapProducts.xml.zip: Scheme missing. --2014-03-12 20:08:01-- http://www.partner.viator.com/partner/admin/tools/links_feeds/downloadFeed.jspa?feed=Products&PUID=13594 Resolving www.partner.viator.com... 66.59.45.143 Connecting to www.partner.viator.com|66.59.45.143|:80... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [application/zip] Saving to: “downloadFeed.jspa?feed=Products&PUID=13594.85” 0K .......... .......... .......... .......... .......... 403K 50K .......... .......... .......... .......... .......... 686K 100K .......... .......... .......... .......... .......... 808K 150K .......... .......... .......... .......... .......... 965K 200K .......... .......... .......... .......... .......... 1.05M 250K .......... .......... .......... .......... .......... 1.58M 300K .......... .......... .......... .......... .......... 746K 350K .......... .......... .......... .......... .......... 1.14M 400K .......... .......... .......... .......... .......... 1.25M 450K .......... .......... .......... .......... .......... 1.13M 500K .......... .......... .......... .......... .......... 807K 550K .......... .......... .......... .......... .......... 1.56M 600K .......... .......... .......... .......... .......... 798K 650K .......... .......... .......... .......... .......... 1.13M 700K .......... .......... .......... .......... .......... 807K 750K .......... .......... .......... .......... .......... 1.25M 800K .......... .......... .......... .......... .......... 849K 850K .......... .......... .......... .......... .......... 1.13M 900K .......... .......... .......... .......... .......... 1.26M 950K .......... .......... .......... .......... .......... 1.13M 1000K .......... .......... .......... .......... .......... 913K 1050K .......... .......... .......... .......... .......... 1.13M 1100K .......... .......... .......... .......... .......... 804K 1150K .......... .......... .......... .......... .......... 1.14M 1200K .......... .......... .......... .......... .......... 797K 1250K .......... .......... .......... .......... .......... 1.13M 1300K .......... .......... .......... .......... .......... 1.25M 1350K .......... .......... .......... .......... .......... 1.13M 1400K .......... .......... .......... .......... .......... 809K 1450K .......... .......... .......... .......... .......... 1.13M 1500K .......... .......... .......... .......... .......... 794K 1550K .......... .......... .......... .......... .......... 1.25M 1600K .......... .......... .......... .......... .......... 1.13M 1650K .......... .......... .......... .......... .......... 807K 1700K .......... .......... .......... .......... .......... 1.14M 1750K .......... .......... .......... .......... .......... 1.25M 1800K .......... .......... .......... .......... .......... 1.13M 1850K .......... .......... .......... .......... .......... 795K 1900K .......... .......... .......... .......... .......... 806K 1950K .......... .......... .......... .......... .......... 1.13M 2000K .......... .......... .......... .......... .......... 1.25M 2050K .......... .......... .......... .......... .......... 1.13M 2100K .......... .......... .......... .......... .......... 796K 2150K .......... .......... .......... .......... .......... 1.14M 2200K .......... .......... .......... .......... .......... 1.25M 2250K .......... .......... .......... .......... .......... 1.13M 2300K .......... .......... .......... .......... .......... 806K 2350K .......... .......... .......... .......... .......... 797K 2400K .......... .......... .......... .......... .......... 1.14M 2450K .......... .......... .......... .......... .......... 1.25M 2500K .......... .......... .......... .......... .......... 1.13M 2550K .......... .......... .......... .......... .......... 809K 2600K .......... .......... .......... .......... .......... 1.14M 2650K .......... .......... .......... .......... .......... 1.25M 2700K .......... .......... .......... .......... .......... 794K 2750K .......... .......... .......... .......... .......... 1.13M 2800K .......... .......... .......... .......... .......... 809K 2850K .......... .......... .......... .......... .......... 1.14M 2900K .......... .......... .......... .......... .......... 1.25M 2950K .......... .......... .......... .......... .......... 1.13M 3000K .......... .......... .......... .......... .......... 797K 3050K .......... .......... .......... .......... .......... 1.14M 3100K .......... .......... .......... .......... .......... 807K 3150K .......... .......... .......... .......... .......... 1.25M 3200K .......... .......... .......... .......... .......... 1.13M 3250K .......... .......... .......... .......... .......... 796K 3300K .......... .......... .......... .......... .......... 1.14M 3350K .......... .......... .......... .......... .......... 1.25M 3400K .......... .......... .......... .......... .......... 1.13M 3450K .......... .......... .......... .......... .......... 809K 3500K .......... .......... .......... .......... .......... 793K 3550K .......... .......... .......... .......... .......... 1.14M 3600K .......... .......... .......... .......... .......... 1.25M 3650K .......... .......... .......... .......... .......... 1.13M 3700K .......... .......... .......... .......... .......... 808K 3750K .......... .......... .......... .......... .......... 1.14M 3800K .......... .......... .......... .......... .......... 1.25M 3850K .......... .......... .......... .......... .......... 1.13M 3900K .......... .......... .......... .......... .......... 793K 3950K .......... .......... .......... .......... .......... 809K 4000K .......... .......... .......... .......... .......... 1.14M 4050K .......... .......... .......... .......... .......... 1.25M 4100K .......... .......... .......... .......... .......... 1.13M 4150K .......... .......... .......... .......... .......... 798K 4200K .......... .......... .......... .......... .......... 1.13M 4250K .......... .......... .......... .......... .......... 1.25M 4300K .......... .......... .......... .......... .......... 807K 4350K .......... .......... .......... .......... .......... 1.13M 4400K .......... .......... .......... .......... .......... 797K 4450K .......... .......... .......... .......... .......... 1.14M 4500K .......... .......... .......... .......... .......... 1.25M 4550K .......... .......... .......... .......... .......... 1.13M 4600K .......... .......... .......... .......... .......... 810K 4650K .......... .......... .......... .......... .......... 1.13M 4700K .......... .......... .......... .......... .......... 794K 4750K .......... .......... .......... .......... .......... 1.25M 4800K .......... .......... .......... .......... .......... 1.13M 4850K .......... .......... .......... .......... .......... 810K 4900K .......... .......... .......... .......... .......... 1.13M 4950K .......... .......... .......... .......... .......... 1.25M 5000K .......... .......... .......... .......... .......... 1.13M 5050K .......... .......... .......... .......... .......... 796K 5100K .......... .......... .......... .......... .......... 807K 5150K .......... .......... .......... .......... .......... 1.14M 5200K .......... .......... .......... .......... .......... 1.25M 5250K .......... .......... .......... .......... .......... 1.13M 5300K .......... .......... .......... .......... .......... 797K 5350K .......... .......... .......... .......... .......... 1.14M 5400K .......... .......... .......... .......... .......... 1.25M 5450K .......... .......... .......... .......... .......... 1.13M 5500K .......... .......... .......... .......... .......... 806K 5550K .......... .......... .......... .......... .......... 797K 5600K .......... .......... .......... .......... .......... 1.13M 5650K .......... .......... .......... .......... .......... 1.39M 5700K .......... .......... .......... .......... .......... 810K 5750K .......... .......... .......... .......... .......... 1.13M 5800K .......... .......... .......... .......... .......... 1.25M 5850K .......... .......... .......... .......... .......... 1.04M 5900K .......... .......... .......... .......... .......... 794K 5950K .......... .......... .......... .......... .......... 1.13M 6000K .......... .......... .......... .......... .......... 811K 6050K .......... .......... .......... .......... .......... 1.13M 6100K .......... .......... .......... .......... .......... 1.25M 6150K .......... .......... .......... .......... .......... 1.13M 6200K .......... .......... .......... .......... .......... 796K 6250K .......... .......... .......... .......... .......... 1.14M 6300K .......... .......... .......... .......... .......... 806K 6350K .......... .......... .......... .......... .......... 1.25M 6400K .......... .......... .......... .......... .......... 1.13M 6450K .......... .......... .......... .......... .......... 796K 6500K .......... .......... .......... .......... .......... 1.14M 6550K .......... .......... .......... .......... .......... 1.25M 6600K .......... .......... .......... .......... .......... 1.13M 6650K .......... .......... .......... .......... .......... 811K 6700K .......... .......... .......... .......... .......... 794K 6750K .......... .......... .......... .......... .......... 1.14M 6800K .......... .......... .......... .......... .......... 1.25M 6850K .......... .......... .......... .......... .......... 1.13M 6900K .......... .......... .......... .......... .......... 808K 6950K .......... .......... .......... .......... .......... 1.13M 7000K .......... .......... .......... .......... .......... 1.25M 7050K .......... .......... .......... .......... .......... 1.13M 7100K .......... .......... .......... .......... .......... 796K 7150K .......... .......... .......... .......... .......... 807K 7200K .......... .......... .......... .......... .......... 1.13M 7250K .......... .......... .......... .......... .......... 1.26M 7300K .......... .......... .......... .......... .......... 1.13M 7350K .......... .......... .......... .......... .......... 797K 7400K .......... .......... .......... .......... .......... 1.14M 7450K .......... .......... .......... .......... .......... 1.25M 7500K .......... .......... .......... .......... .......... 807K 7550K .......... .......... .......... .......... .......... 1.13M 7600K .......... .......... .......... .......... .......... 796K 7650K .......... .......... .......... .......... .......... 1.13M 7700K .......... .......... .......... .......... .......... 1.25M 7750K .......... .......... .......... .......... .......... 1.13M 7800K .......... .......... .......... .......... .......... 809K 7850K .......... .......... .......... .......... .......... 1.14M 7900K .......... .......... .......... .......... .......... 794K 7950K .......... .......... .......... .......... .......... 1.25M 8000K .......... .......... .......... .......... .......... 1.13M 8050K .......... .......... .......... .......... .......... 809K 8100K .......... ......... 79.4M=8.0s 2014-03-12 20:08:09 (1013 KB/s) - “downloadFeed.jspa?feed=Products&PUID=13594.85” saved [8313894] FINISHED --2014-03-12 20:08:09-- Downloaded: 1 files, 7.9M in 8.0s (1013 KB/s) Hi All I am running the following cronjob and I cannot find the file for some reason, even though it says its downloaded in my email. any ideas (code and output included) Quote Link to comment https://forums.phpfreaks.com/topic/286930-cronjob-can-find-the-file-on-my-host/ Share on other sites More sharing options...
trq Posted March 13, 2014 Share Posted March 13, 2014 use wget's -O option to specify where you want the file to output to. Quote Link to comment https://forums.phpfreaks.com/topic/286930-cronjob-can-find-the-file-on-my-host/#findComment-1472415 Share on other sites More sharing options...
oracle765 Posted March 13, 2014 Author Share Posted March 13, 2014 Internal Server Error 500 No response from subprocess (php): subprocess was killed with signal 11 cpsrvd/11.40.1.11 Server at p3plcpnl0050.prod.phx3.secureserver.net that's excellent thanks so much it worked great. my next question is that it is saved as filename.xml.zip and when I try to import this with MySQL I get the following error... am I doing something wrong or is there a way to un-compress it with php or something ive attached a screen shot of my phpmyadmin to show what parameters I used manually Quote Link to comment https://forums.phpfreaks.com/topic/286930-cronjob-can-find-the-file-on-my-host/#findComment-1472418 Share on other sites More sharing options...
oracle765 Posted March 13, 2014 Author Share Posted March 13, 2014 oh and sorry forgot to mention its only 8mb compressed Quote Link to comment https://forums.phpfreaks.com/topic/286930-cronjob-can-find-the-file-on-my-host/#findComment-1472419 Share on other sites More sharing options...
oracle765 Posted March 13, 2014 Author Share Posted March 13, 2014 CRON JOB #Viator /usr/bin/wget -O "/home/oracle765/public_html/feed/vapProducts.xml.zip" 'http://www.partner.viator.com/partner/admin/tools/links_feeds/downloadFeed.jspa?feed=Products&PUID=13594'; /usr/bin/unzip /home/oracle765/public_html/feed/vapProducts.xml.zip > /home/oracle765/public_html/feed/viatorfeed.xml #rm /home/oracle765/public_html/feed/vapProducts.xml.zip ################################################################### EMAIL ERROR 8050K .......... .......... .......... .......... .......... 863K 8100K .......... ......... 76.6M=8.0s 2014-03-13 03:38:09 (1011 KB/s) - “/home/oracle765/public_html/feed/vapProducts.xml.zip” saved [8313894] replace vapProducts.xml? [y]es, [n]o, [A]ll, [N]one, [r]ename: NULL (EOF or read error, treating as "[N]one" ...) managed to get the file into the directory, how do I unzip it I have tried these commands but its producing and error Quote Link to comment https://forums.phpfreaks.com/topic/286930-cronjob-can-find-the-file-on-my-host/#findComment-1472428 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.