<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:'times new roman', 'new york', times, serif;font-size:12pt"><div></div><div>I did the following</div><div><br></div><div>1.  opened the file ~/.Scilab/scilab-5.2.2/.scilab</div><div>2.  getd('~/Downloads/scilab-5.2.2/comm')</div><div><br></div><div>This works, but the clear command clears my functions and I'm not able to use them anymore.  And I do need to use the clear command if I'm going to run a script regularly.</div><div><br></div><div>Vishwanath.</div><div><br> </div><br><div><br></div><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><br><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Allan CORNET <allan.cornet@scilab.org><br><b><span style="font-weight:
 bold;">To:</span></b> users@lists.scilab.org<br><b><span style="font-weight: bold;">Sent:</span></b> Mon, 6 December, 2010 16:21:51<br><b><span style="font-weight: bold;">Subject:</span></b> RE: [scilab-Users] Automatic function loading<br></font><br><style><!--
 
 _filtered {font-family:"Cambria Math";panose-1:2 4 5 3 5 4 6 3 2 4;}
 _filtered {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}
 _filtered {font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;}
 
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;margin-bottom:.0001pt;font-size:12.0pt;font-family:"serif";}
a:link, span.MsoHyperlink
        {color:blue;text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;text-decoration:underline;}
span.EmailStyle17
        {font-family:"sans-serif";color:#1F497D;}
.MsoChpDefault
        {font-size:10.0pt;}
 _filtered {margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {}
--></style><div class="WordSection1"><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"sans-serif";color:#1F497D;">Hi,</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"sans-serif";color:#1F497D;">  </span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"sans-serif";color:#1F497D;">You can create a startup file. see help startup in scilab</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"sans-serif";color:#1F497D;">  </span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"sans-serif";color:#1F497D;">And add in this file a call to getd (See help getd)</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"sans-serif";color:#1F497D;">  </span></p><p class="MsoNormal"><span
 style="font-size:11.0pt;font-family:"sans-serif";color:#1F497D;">Allan</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"sans-serif";color:#1F497D;">  </span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"sans-serif";color:#1F497D;">  </span></p><div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm;"><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"sans-serif";">De :</span></b><span style="font-size:10.0pt;font-family:"sans-serif";"> Vishwanath Rao [mailto:gadepall@yahoo.com] <br><b>Envoyé :</b> lundi 6 décembre 2010 11:47<br><b>À :</b> users@lists.scilab.org<br><b>Objet :</b> [scilab-Users] Automatic function loading</span></p></div></div><p class="MsoNormal">  </p><div><div><p class="MsoNormal"><span style="color:red;">Hi,</span></p></div><div><p class="MsoNormal"><span
 style="color:red;">  I'm using Scilab 5.2.2 on Ubuntu Lucid.</span></p></div><div><p class="MsoNormal"><span style="color:red;">  </span></p></div><div><p class="MsoNormal"><span style="color:red;">   I have defined the functions qfunc.sci and randsrc.sci in the directory ~/Downloads/scilab-5.2.2/comm and load them through the command </span></p></div><div><p class="MsoNormal"><span style="color:red;">  </span></p></div><div><p class="MsoNormal"><span style="color:red;">genlib('comm','~/Downloads/scilab-5.2.2/comm')</span></p></div><div><p class="MsoNormal"><span style="color:red;">  </span></p></div><div><p class="MsoNormal"><span style="color:red;">in my scilab script test.sce.  While this works, I want the functions from my 'comm' directory to be available permanently without having to use genlib each time.  Is there a simple way to do this?  The toolbox creation method seems too complicated to
 me right now.</span></p></div><div><p class="MsoNormal"><span style="color:red;">  </span></p></div><div><p class="MsoNormal"><span style="color:red;">Vishwanath.<br> </span></p></div><p class="MsoNormal"><span style="color:red;">  </span></p><div><p class="MsoNormal"><span style="color:red;">  </span></p></div></div><p class="MsoNormal">  </p></div></div></div><div style="position:fixed"></div>


</div><br>



      </body></html>