<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[SoliForum - 3D Printing Community — Quick hack script to do part of what a version control system can do]]></title>
		<link>https://www.soliforum.com/topic/10530/quick-hack-script-to-do-part-of-what-a-version-control-system-can-do/</link>
		<atom:link href="https://www.soliforum.com/feed/rss/topic/10530/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Quick hack script to do part of what a version control system can do.]]></description>
		<lastBuildDate>Sun, 05 Apr 2015 21:34:22 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Quick hack script to do part of what a version control system can do]]></title>
			<link>https://www.soliforum.com/post/92095/#p92095</link>
			<description><![CDATA[<div class="quotebox"><cite>graham wrote:</cite><blockquote><p>Thanks folks!</p><p>Now I see what you are doing :-)</p><p>Cheers</p></blockquote></div><br /><p>And it works like a dream!&nbsp; One enhancement - remove the zip files when completed?</p><p>Cheers</p>]]></description>
			<author><![CDATA[null@example.com (graham)]]></author>
			<pubDate>Sun, 05 Apr 2015 21:34:22 +0000</pubDate>
			<guid>https://www.soliforum.com/post/92095/#p92095</guid>
		</item>
		<item>
			<title><![CDATA[Re: Quick hack script to do part of what a version control system can do]]></title>
			<link>https://www.soliforum.com/post/92048/#p92048</link>
			<description><![CDATA[<p>Thanks folks!</p><p>Now I see what you are doing :-)</p><p>Cheers</p>]]></description>
			<author><![CDATA[null@example.com (graham)]]></author>
			<pubDate>Sun, 05 Apr 2015 00:47:40 +0000</pubDate>
			<guid>https://www.soliforum.com/post/92048/#p92048</guid>
		</item>
		<item>
			<title><![CDATA[Re: Quick hack script to do part of what a version control system can do]]></title>
			<link>https://www.soliforum.com/post/90911/#p90911</link>
			<description><![CDATA[<p>graham, the problem is that&#039;s not the right site <img src="https://www.soliforum.com/img/smilies/wink.png" width="15" height="15" alt="wink" /> look for the link with &quot;printables.html&quot; in it <img src="https://www.soliforum.com/img/smilies/wink.png" width="15" height="15" alt="wink" /></p><br /><br /><p>edit: graham, not fmotta</p><br /><p>also, make sure after creating the shell script, you run chmod 755 on it so that it becomes executable.</p><p>e.g. my script was named &quot;latest.sh&quot; in a folder named &quot;Atlas3D&quot; on my Desktop , so I ran chmod 755 ~/Desktop/Atlas3D/latest.sh</p><p>then</p><p>cd ~/Desktop/Atlas3D/</p><p>then</p><p>./latest.sh</p><br /><br /><p> <img src="https://www.soliforum.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (Frozen)]]></author>
			<pubDate>Thu, 26 Mar 2015 07:27:28 +0000</pubDate>
			<guid>https://www.soliforum.com/post/90911/#p90911</guid>
		</item>
		<item>
			<title><![CDATA[Re: Quick hack script to do part of what a version control system can do]]></title>
			<link>https://www.soliforum.com/post/90860/#p90860</link>
			<description><![CDATA[<div class="quotebox"><cite>graham wrote:</cite><blockquote><p>I&#039;m not a boffin at shell stuff, so I amy have messed up.&nbsp; </p><p>This is what I got:</p><p>G-MBP:LaserParts graham$ ls<br />Atlas3d.sh&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; left_frame_section_3-2.stl<br />F9GZSUMI5MD0Q20.stl&nbsp; &nbsp; &nbsp; &nbsp; left_frame_section_3.stl<br />FC85TRAI5MD0Q21.stl&nbsp; &nbsp; &nbsp; &nbsp; left_laser_arm.stl<br />FRINO86I5MD0Q22.stl&nbsp; &nbsp; &nbsp; &nbsp; left_laser_holder.stl<br />camera_arm.stl&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; right_frame_section_3-2.stl<br />camera_bracket.stl&nbsp; &nbsp; &nbsp; &nbsp; right_frame_section_3.stl<br />camera_bracket_no_support.stl&nbsp; &nbsp; right_laser_arm.stl<br />camera_case_back.stl&nbsp; &nbsp; &nbsp; &nbsp; right_laser_holder.stl<br />camera_case_front.stl&nbsp; &nbsp; &nbsp; &nbsp; rpi_cable_carrier.stl<br />camera_shaft.stl&nbsp; &nbsp; &nbsp; &nbsp; rpi_case_bplus_lower.stl<br />camera_tower.stl&nbsp; &nbsp; &nbsp; &nbsp; rpi_case_bplus_upper.stl<br />camera_tower_front_plate.stl&nbsp; &nbsp; table_coupler.stl<br />cross_bar.stl&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; turn_table_d4.stl<br />frame_connector.stl&nbsp; &nbsp; &nbsp; &nbsp; turn_table_d5p5.stl<br />frame_section_2.stl&nbsp; &nbsp; &nbsp; &nbsp; turn_table_d7p5.stl<br />G-MBP:LaserParts graham$ sudo ./Atlas3d</p><p>WARNING: Improper use of the sudo command could lead to data loss<br />or the deletion of important system files. Please double-check your<br />typing when using sudo. Type &quot;man sudo&quot; for more information.</p><p>To proceed, enter your password, or type Ctrl-C to abort.</p><p>Password:<br />sudo: ./Atlas3d: command not found<br />G-MBP:LaserParts graham$ sudo ./Atlas3d.sh<br />--2015-03-25 15:53:51--&nbsp; <a href="https://s3.amazonaws.com/atlas3d/">https://s3.amazonaws.com/atlas3d/</a><br />Resolving s3.amazonaws.com... 54.231.244.8<br />Connecting to s3.amazonaws.com|54.231.244.8|:443... connected.<br />HTTP request sent, awaiting response... 403 Forbidden<br />2015-03-25 15:53:52 ERROR 403: Forbidden.</p><p>grep: printables.html: No such file or directory<br />G-MBP:LaserParts graham$</p></blockquote></div><p>OK - well, I did not sudo this (however, it should work that way too).&nbsp; I ran it on OSX as well.&nbsp; I just ran a successful test on Ubuntu.&nbsp; But, I tried to make it use common point tools that is on most POSIX systems.</p><p>I am guessing that the moderators change caused it to fail as I think he was protecting the files by removing the URL and adding a bogus one.&nbsp; You should have the correct value for the &#039;url&#039; variable available at the Kickstarter website/update.&nbsp; Find that and change the script to have that URL.&nbsp; I think I should not offer it again as the moderator redacted it.</p><p>Another thought is that bash can be sensitive to line ending.&nbsp; if you used an odd editor (I only use vi) then maybe it has some DOS guck at the end of lines and needs &#039;dos2unix&#039; filtering.</p>]]></description>
			<author><![CDATA[null@example.com (fmotta)]]></author>
			<pubDate>Wed, 25 Mar 2015 23:35:04 +0000</pubDate>
			<guid>https://www.soliforum.com/post/90860/#p90860</guid>
		</item>
		<item>
			<title><![CDATA[Re: Quick hack script to do part of what a version control system can do]]></title>
			<link>https://www.soliforum.com/post/90856/#p90856</link>
			<description><![CDATA[<p>I&#039;m not a boffin at shell stuff, so I amy have messed up.&nbsp; </p><p>This is what I got:</p><p>G-MBP:LaserParts graham$ ls<br />Atlas3d.sh&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; left_frame_section_3-2.stl<br />F9GZSUMI5MD0Q20.stl&nbsp; &nbsp; &nbsp; &nbsp; left_frame_section_3.stl<br />FC85TRAI5MD0Q21.stl&nbsp; &nbsp; &nbsp; &nbsp; left_laser_arm.stl<br />FRINO86I5MD0Q22.stl&nbsp; &nbsp; &nbsp; &nbsp; left_laser_holder.stl<br />camera_arm.stl&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; right_frame_section_3-2.stl<br />camera_bracket.stl&nbsp; &nbsp; &nbsp; &nbsp; right_frame_section_3.stl<br />camera_bracket_no_support.stl&nbsp; &nbsp; right_laser_arm.stl<br />camera_case_back.stl&nbsp; &nbsp; &nbsp; &nbsp; right_laser_holder.stl<br />camera_case_front.stl&nbsp; &nbsp; &nbsp; &nbsp; rpi_cable_carrier.stl<br />camera_shaft.stl&nbsp; &nbsp; &nbsp; &nbsp; rpi_case_bplus_lower.stl<br />camera_tower.stl&nbsp; &nbsp; &nbsp; &nbsp; rpi_case_bplus_upper.stl<br />camera_tower_front_plate.stl&nbsp; &nbsp; table_coupler.stl<br />cross_bar.stl&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; turn_table_d4.stl<br />frame_connector.stl&nbsp; &nbsp; &nbsp; &nbsp; turn_table_d5p5.stl<br />frame_section_2.stl&nbsp; &nbsp; &nbsp; &nbsp; turn_table_d7p5.stl<br />G-MBP:LaserParts graham$ sudo ./Atlas3d</p><p>WARNING: Improper use of the sudo command could lead to data loss<br />or the deletion of important system files. Please double-check your<br />typing when using sudo. Type &quot;man sudo&quot; for more information.</p><p>To proceed, enter your password, or type Ctrl-C to abort.</p><p>Password:<br />sudo: ./Atlas3d: command not found<br />G-MBP:LaserParts graham$ sudo ./Atlas3d.sh<br />--2015-03-25 15:53:51--&nbsp; <a href="https://s3.amazonaws.com/atlas3d/">https://s3.amazonaws.com/atlas3d/</a><br />Resolving s3.amazonaws.com... 54.231.244.8<br />Connecting to s3.amazonaws.com|54.231.244.8|:443... connected.<br />HTTP request sent, awaiting response... 403 Forbidden<br />2015-03-25 15:53:52 ERROR 403: Forbidden.</p><p>grep: printables.html: No such file or directory<br />G-MBP:LaserParts graham$</p>]]></description>
			<author><![CDATA[null@example.com (graham)]]></author>
			<pubDate>Wed, 25 Mar 2015 22:56:46 +0000</pubDate>
			<guid>https://www.soliforum.com/post/90856/#p90856</guid>
		</item>
		<item>
			<title><![CDATA[Re: Quick hack script to do part of what a version control system can do]]></title>
			<link>https://www.soliforum.com/post/90715/#p90715</link>
			<description><![CDATA[<p>I did a quick edit since the files have not been released to the public.<br />I think most will know what to put in for the URL.</p>]]></description>
			<author><![CDATA[null@example.com (wardjr)]]></author>
			<pubDate>Tue, 24 Mar 2015 20:25:52 +0000</pubDate>
			<guid>https://www.soliforum.com/post/90715/#p90715</guid>
		</item>
		<item>
			<title><![CDATA[Quick hack script to do part of what a version control system can do]]></title>
			<link>https://www.soliforum.com/post/90711/#p90711</link>
			<description><![CDATA[<p>I grew tired of manually doing what should be done automatically if we had the STL files in a version control system.&nbsp; This hacked script has worked for me and is likely not great - but I do not have to manually click each file and mentally keep track of which ones I downloaded.</p><br /><p>#!/bin/bash<br />rm -f printables.html<br />url=&quot;http://files not releasedyet&quot;</p><p>wget $url<br />files=`grep zip printables.html | awk &#039;BEGIN{FS=&quot;\&quot;&quot;;}{print $6}&#039; | grep -v href`<br />for f in $files; do<br />&nbsp; &nbsp; echo &quot;Downloading File $f&quot;<br />&nbsp; &nbsp; wget $f<br />done</p><p>NOTE: I added a like to remove any pre-existing printables.html in hopes to prevent use of an old file.</p><p>WRT Atlas3D</p>]]></description>
			<author><![CDATA[null@example.com (fmotta)]]></author>
			<pubDate>Tue, 24 Mar 2015 19:42:48 +0000</pubDate>
			<guid>https://www.soliforum.com/post/90711/#p90711</guid>
		</item>
	</channel>
</rss>
