xboxscanner Posted October 7, 2005 Share Posted October 7, 2005 please help with crontab and froogle upload i am using the foll command within the crontab control panel, the date and time i get right this is the path to the froogle.php given by the host administrator /usr/local/bin/php /hsphere/local/home/user/domain.co.uk/admin/froogle.php below is the email i get when the crontab schedule is run Warning: fopen(/usr/local/bin/php /hsphere/local/home/user/domain.co.uk/feeds/feed_upload.txt): failed to open stream: No such file or directory in /hsphere/local/home/user/domain.co.uk/admin/froogle.php on line 301 Warning: fwrite(): supplied argument is not a valid stream resource in /hsphere/local/home/user/domain.co.uk/admin/froogle.php on line 302 Warning: fclose(): supplied argument is not a valid stream resource in /hsphere/local/home/user/domain.co.uk/admin/froogle.php on line 303 File completed: <a href="/usr/local/bin/php /hsphere/local/home/user/domain.co.uk/feeds/feed_upload.txt" target="_blank">feeds_upload.txt</a><br> Warning: chmod(): No such file or directory in /hsphere/local/home/user/domain.co.uk/admin/froogle.php on line 305 Connected to hedwig.google.com, for user username<BR> hedwig.google.com: FTP upload has failed!<BR> <p style="margin:auto; text-align:center">Script timer: <b>10.026128</b> seconds.</p> --- i have a dir called "Feeds" attrib set at 777 if i manually run the froogle.php the txt file is placed in the correct folder and is uploaded to froogle. i just cant find any way of getting the crontab to run. just a note: I have absolutely no experience with with unix or linux (noob) my host is ixwebhosting if that helps below is the extraction from the froogle.php file $OutFile = "../feeds/feeds_upload.txt"; //"CHANGEME-full-path-to-file-with-777-dir-and-file-permissions.fr-outfile.txt"; $destination_file = "feeds_upload.txt"; //"CHANGEME-filename-to-upload-to-froogle.txt" ; $source_file = $OutFile; $imageURL = 'http://www.pickandpay.co.uk/catalog/images/'; $productURL = 'http://pickandpay.co.uk/catalog/product_info.php/products_id/'; $already_sent = array(); Link to comment Share on other sites More sharing options...
kgt Posted October 7, 2005 Share Posted October 7, 2005 You say you have a directory called "Feeds." Is this a typo? Linux and Unix are case-sensitive, so "Feeds" is definitely different from "feeds." Contributions Discount Coupon Codes Donations Link to comment Share on other sites More sharing options...
xboxscanner Posted October 9, 2005 Author Share Posted October 9, 2005 the folder and the entry in froogle.php are in lowercase Link to comment Share on other sites More sharing options...
Guest Posted October 10, 2005 Share Posted October 10, 2005 this is most likely wrong all the way, as froogle does not have you upload a file this name: feed_upload.txt Link to comment Share on other sites More sharing options...
xboxscanner Posted October 10, 2005 Author Share Posted October 10, 2005 the file name has been changed for this forum. i can login to froogle and upload the text file, named in froogle.php after i have extracted using the froogle.php (with ftp settings disabled in froogle.php) after enabling the ftp settings i run the froogle.php from http://mydomain.com/froogle.php, it uploads fine. the only place it fails is from the crontab Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.