<div dir="ltr">Hi all,<div><br></div><div>I got 3 problems:</div><div><br></div><div>1. <span style="color:rgb(0,0,0);white-space:pre-wrap"> </span></div><div><pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap">By default, afewmore prints the instance IDs of the newly created EC2
instances as the only output. Unless an error occurs, no other output is
generated.</pre></div><div>This instruction tell us to <font color="#000000"><span style="white-space:pre-wrap">print</span></font> IDs of <b>newly created </b>ec2 instances, but in the example specified below:</div><div><pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap">The following examples illustrate common usage of this tool.
To create ten more instances of the EC2 instance i-0a1b2c3d4f and copy
the contents of the '/data' directory from that instance:
         $ afewmore <span style="background-color:rgb(255,255,0)">i-0a1b2c3d4f</span>
         <span style="background-color:rgb(255,255,0)">i-0a1b2c3d4f</span>
         i-1a1b2c3d4f
         i-2a1b2c3d4f
         i-3a1b2c3d4f
         i-4a1b2c3d4f
         i-5a1b2c3d4f
         i-6a1b2c3d4f
         i-7a1b2c3d4f
         i-8a1b2c3d4f
         i-9a1b2c3d4f
         $ echo $?
         0
         $</pre><pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap"><pre style="word-wrap:break-word;white-space:pre-wrap">"$ afewmore i-0a1b2c3d4f" <font face="arial, helvetica, sans-serif">this command generated ten IDs, but one of them is the original ID itself, there are only 9 newly generated IDs. Do we need to count the source instance itself as newly generated instance?</font></pre><pre style="word-wrap:break-word;white-space:pre-wrap"><font face="arial, helvetica, sans-serif">2.</font></pre><pre style="word-wrap:break-word;white-space:pre-wrap"> -d dir Copy the contents of this data directory from the orignal source
         instance to all the new instances. If not specified, defaults
         to /data.</pre><pre style="word-wrap:break-word;white-space:pre-wrap"><font face="arial, helvetica, sans-serif">By default(-d not specified), source data directory should be /data, but in the example below:</font></pre><pre style="word-wrap:break-word;white-space:pre-wrap"> To create just one more instance and copy the contents of the directory
'/usr/local/share':
         $ afewmore -n 1 i-0a1b2c3d4f
         i-1a1b2c3d4f
</pre><pre style="word-wrap:break-word;white-space:pre-wrap">         $<font face="arial, helvetica, sans-serif"> </font></pre></pre></div><div>In the command, -d option is not specified, but this command "copy the contents of the directory '/usr/local/share'". Which one is the right default directory?</div><div><br></div><div>3. </div><div>User who uses afewmore cannot chose the directory to which the contents of source data should be copied. </div><div>-- Can we just copy the source data to home directory of newly created instance?</div><div>-- If we need to copy the /data directory from source instance A to the /data directory in newly created instance B(doesn't have a /data directory), we usually need to execute the operation as superuser for instance B. How could we know the what is the superuser command(sudo or yum etc.)?</div><div>-- If /data directory in A is a mount point for a filesystem, do we need to create the same filesystem in B and mount it to the same directory?</div><div><br></div><div>Thanks,</div><div>Tianxiao Yang</div><div> </div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Apr 9, 2017 at 10:54 AM, Jan Schaumann <span dir="ltr"><<a href="mailto:jschauma@stevens.edu" target="_blank">jschauma@stevens.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Josh Dolisca <<a href="mailto:jdolisca@stevens.edu">jdolisca@stevens.edu</a>> wrote:<br>
<br>
> I was wondering if there were any restrictions on how the command<br>
> should be run. Does it have to be packaged to the point where it is a<br>
> standalone command? For example, if we have the tool written in perl,<br>
> can we include in the README that the tool should be run as "#<br>
</span>> <a href="http://afewmore.pl" rel="noreferrer" target="_blank">afewmore.pl</a><<a href="http://afewmore.pl/" rel="noreferrer" target="_blank">http://afewmore.<wbr>pl/</a>> [...]", or does it have to run as "#<br>
<span class="">> afewmore [...]" from the command line?<br>
<br>
</span>Your tool should be able to be run as "./afewmore".<br>
<br>
-Jan<br>
______________________________<wbr>_________________<br>
cs615asa mailing list<br>
<a href="mailto:cs615asa@lists.stevens.edu">cs615asa@lists.stevens.edu</a><br>
<a href="https://lists.stevens.edu/mailman/listinfo/cs615asa" rel="noreferrer" target="_blank">https://lists.stevens.edu/<wbr>mailman/listinfo/cs615asa</a><br>
</blockquote></div><br></div>