<div dir="ltr"><div>Hi Rick,<span id="result_box" class="" lang="en"><span class=""><br><br>your</span> <span class="">suggestion</span> <span class="">seemed to be</span> <span class="">the right one</span> <span class="">..</span> <br><span class="">But</span> <span class="">still</span> <span class="">did not work ...</span> <br><br><span class="">I</span> <span class="">made now</span> <span class="">​​one further</span> <span class="">try</span> <span class="">:</span><br><span class="">these are the</span> <span class="">listed</span> <span class="">files</span> <span class="">I used<br><br>-------------------------[angelo_dev@zorro rc.d]$ cat rc.local---------<br>#!/bin/bash <br>/etc/rc.d/dummy-test.sh<br>/etc/rc.d/syncronize-java_srcs.sh<br></span></span><br><span id="result_box" class="" lang="en"><span class=""><span id="result_box" class="" lang="en"><span class="">------------------------</span></span>[angelo_dev@zorro rc.d]$ cat dummy-test.sh--------------<br>#!/bin/bash<br>cp /home/angelo_dev/Documents/dconf-Editor.xcf /media/PRTZ-src_sync<br><br>----------------[angelo_dev@zorro rc.d]$ cat syncronize-java_srcs.sh</span></span><span id="result_box" class="" lang="en"><span class="">--------</span></span><span id="result_box" class="" lang="en"><span class=""><br>#!/bin/bash<br>/usr/bin/rsync -av \<br>              --delete \<br>              --include=&#39;*/&#39; \<br>              --include=&#39;*.java&#39; \<br>              --include=&#39;*.form&#39; \<br>              --exclude=&#39;*&#39; \<br>              /home/programmers/java/PROJECTS_development/ \<br>              /media/PRTZ-src_sync<br>==============<br></span></span></div><div><span id="result_box" class="" lang="en"><span class="">1) if I launch rc.local <u>from the command line</u> then <br>   the <u>file is copied</u> and <u>the backup is done</u> <br></span></span></div><div><span id="result_box" class="" lang="en"><span class="">2) if I <u>reboot the computer</u> then<br></span></span></div><div><span id="result_box" class="" lang="en"><span class="">   the <u>file is copied</u> <b>BUT</b> <u>the backup is  not done</u>...<br><br><br><br></span></span><span tabindex="-1" id="result_box" class="" lang="en"><span class="">The</span> <span class="">test proves</span> <span class="">conclusively that</span> <span class="">the failure</span> <span class="">is</span> <span class="">related to the use</span> <span class="">of the</span> <span class="">rsync command</span> <span class="">...</span> <br><span class="">but</span> <span class="">can not depend on</span> <span class="">its</span> <span class="">path</span> <span class="">because this time</span> <span class="">I used the</span> <span class="">absolute path</span> <span class="">..</span> <br><br><span class="">Need to</span> <span class="">investigate</span> <span class="">more</span> <span class="">about</span> <span class="">something specific</span> <span class="">related</span> <span class="">to the rsync command</span></span><span id="result_box" class="" lang="en"><span class=""><br><br></span></span></div><div><span id="result_box" class="" lang="en"><span class="">Thank Rick you for your advice<br><br><br></span></span></div><div><span id="result_box" class="" lang="en"><span class=""><br><br><br><br></span></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 31, 2014 at 2:41 AM, Rick Stevens <span dir="ltr">&lt;<a href="mailto:ricks@alldigital.com" target="_blank">ricks@alldigital.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 10/29/2014 09:06 PM, Angelo Moreschini issued this missive:<br>
<span class="">&gt; Hi Ed,<br>
&gt;<br>
&gt; I also thought that I setting controls the command in a different way<br>
&gt; could be the solution.<br>
&gt; But it did not was so.<br>
</span>&gt; The question is now, however, morelimited: it is about understanding why<br>
<span class="">&gt; a script that can be run from the command line, does not run inside the<br>
&gt; file /etc/rc.d/rc.local<br>
<br>
</span>Because the /etc/rc.d/rc.local script does not have your login<br>
environment. The odds are that the path to one or more of your commands<br>
is missing. If you want to prove this, modify your script to do<br>
something like<br>
<br>
        echo $PATH &gt;/tmp/path.txt<br>
<br>
and reboot. Compare the contents of /tmp/path.txt and &quot;echo $PATH&quot; at<br>
the command line and I&#39;ll bet the paths are different.<br>
<br>
This is incredibly common for startup scripts and crontab entries. If<br>
you wish to avoid them, ensure you have a &quot;PATH=&quot; command in the top<br>
of your script or specify the full path to each command inside the<br>
script:<br>
<br>
        /usr/bin/rsync........<br>
<br>
NOT<br>
<br>
        rsync.....<br>
<br>
because &quot;/usr/bin&quot; may NOT be in the crontab or initscript&#39;s PATH.<br>
----------------------------------------------------------------------<br>
- Rick Stevens, Systems Engineer, AllDigital    <a href="mailto:ricks@alldigital.com">ricks@alldigital.com</a> -<br>
- AIM/Skype: therps2        ICQ: 22643734            Yahoo: origrps2 -<br>
-                                                                    -<br>
-   After a shooting spree, they always want to take the guns away   -<br>
-                from the people who didn&#39;t do it.                   -<br>
-                                         -- William S.Burroughs     -<br>
----------------------------------------------------------------------<br>
<div class="HOEnZb"><div class="h5">--<br>
users mailing list<br>
<a href="mailto:users@lists.fedoraproject.org">users@lists.fedoraproject.org</a><br>
To unsubscribe or change subscription options:<br>
<a href="https://admin.fedoraproject.org/mailman/listinfo/users" target="_blank">https://admin.fedoraproject.org/mailman/listinfo/users</a><br>
Fedora Code of Conduct: <a href="http://fedoraproject.org/code-of-conduct" target="_blank">http://fedoraproject.org/code-of-conduct</a><br>
Guidelines: <a href="http://fedoraproject.org/wiki/Mailing_list_guidelines" target="_blank">http://fedoraproject.org/wiki/Mailing_list_guidelines</a><br>
Have a question? Ask away: <a href="http://ask.fedoraproject.org" target="_blank">http://ask.fedoraproject.org</a><br>
</div></div></blockquote></div><br></div>