User documentation: synchronize userguide from the userguide translator
Change-Id: I9b30ae27658a40b85c67a4c30aaea2b4bf9507f9
This commit is contained in:
@@ -35,6 +35,7 @@
|
||||
<li><a href="../de/bash-scripting.html">Deutsch</a></li>
|
||||
<li><a href="../en/bash-scripting.html">English</a></li>
|
||||
<li><a href="../es/bash-scripting.html">Español</a></li>
|
||||
<li><a href="../eo/bash-scripting.html">Esperanto</a></li>
|
||||
<li><a href="../fr/bash-scripting.html">Français</a></li>
|
||||
<li><a href="../fur/bash-scripting.html">Furlan</a></li>
|
||||
<li><a href="../it/bash-scripting.html">Italiano</a></li>
|
||||
@@ -52,7 +53,7 @@
|
||||
<li><a href="../jp/bash-scripting.html">日本語</a></li>
|
||||
</ul>
|
||||
<span>
|
||||
« <a href="preferences.html">Preferences</a>
|
||||
« <a href="preferences.html">Tercihler</a>
|
||||
:: <a href="contents.html" class="uplink">İçerik</a>
|
||||
<!-- :: <a href="filesystem-layout.html">Dosya sistemi yerleşimi</a> » -->
|
||||
</span></div>
|
||||
@@ -60,57 +61,55 @@
|
||||
|
||||
<div id="content">
|
||||
<div>
|
||||
<div class="box-info">Bu sayfanın çevrilmesi henüz tamamlanmamıştır. Tamamlanana kadar henüz bitirilmeyen kısımlar İngilizce metni kullanır.</div>
|
||||
|
||||
<h1>Bash ve betik yazımı</h1>
|
||||
|
||||
<p>"Scripting" is the technique of automating procedures by stringing together commands and saving it all as text files, so called "scripts". Every time you run such a script, the commands are processed one after the other just like they would if you entered them into the <a href="applications/terminal.html">Terminal</a> by hand.<br />
|
||||
Scripts can range from simply executing a few commands in a specific order to sophisticated pieces of code that solve complex tasks.</p>
|
||||
<p>"Betik yazımı", komutları birbiri ardına ekleyip adına "betik" denilen metin dosyaları oluşturarak süreçleri ve işlemleri otomatikleştirme tekniğidir. Bir betiği çalıştırdığınızda, betikteki komutlar sanki onları <a href="applications/terminal.html">Uçbirim</a>'e el ile girmişsinizcesine çalıştırılır.<br />
|
||||
Betikler, basit komutlarla başlayıp karmaşık görevleri yerine getiren uzun kod parçalarına dönüşebilir.</p>
|
||||
|
||||
<h2>
|
||||
<a href="#"><img src="../images/up.png" style="border:none;float:right" alt="index" /></a>
|
||||
<a id="bash" name="bash">The Bash</a></h2>
|
||||
<p>Since scripts rely naturally a lot on the shell they are interpreted by, you should first familiarize yourself with the BASH that's used by Haiku. There are many resources online as it's a widely used shell. One nice document is Johan Jansson's <a href="https://web.archive.org/web/20011205095723/http://www.beforever.com/bashtut.htm" class="printurl">Introduction to bash - a tutorial for bash under BeOS</a>.<br />
|
||||
The <a href="https://www.gnu.org/software/bash/manual/bash.pdf" class="printurl">Bash Reference Manual (PDF, 720 KiB)</a> is a nice resource to get into the details.</p>
|
||||
<a id="bash" name="bash">Bash</a></h2>
|
||||
<p>Genelde betikler kendilerini yorumlayan kabuğa bel bağladıklarından dolayı, öncelikle Haiku'nun kullandığı Bash'e kendinizi alıştırmalısınız. Yaygın kullanılan bir kabuk olduğundan internette Bash ile ilgili çokça kaynak bulabilirsiniz. Johan Jansson'un <a href="https://web.archive.org/web/20011205095723/http://www.beforever.com/bashtut.htm" class="printurl">Introduction to bash - a tutorial for bash under BeOS (İngilizce)</a> kitabı yararlı bir kitaptır.<br />
|
||||
Ayrıntılara girmek için <a href="https://www.gnu.org/software/bash/manual/bash.pdf" class="printurl">Bash Reference Manual (İngilizce, PDF, 720 KiB)</a> kitabına başvurabilirsiniz.</p>
|
||||
|
||||
<h2>
|
||||
<a href="#"><img src="../images/up.png" style="border:none;float:right" alt="index" /></a>
|
||||
<a id="scripting-bible" name="scripting-bible">The Scripting Bible</a></h2>
|
||||
<p>After you've learned a few basics about working in the shell, it's time to slowly ease yourself into the world of scripting. Again, you'll find loads of tutorials and reference material online as well as in bookstores. A very nice introduction that's practically tailor-made for Haiku is the online available <a href="http://www.birdhouse.org/beos/bible/bos/ch_scripting1.html" class="printurl">Scripting Chapter</a> (<a href="http://www.birdhouse.org/beos/bible/bos/BeOS.scripting.PDF">PDF, 900 KiB</a>) of Scot Hacker's BeOS Bible.</p>
|
||||
<a id="scripting-bible" name="scripting-bible">BeOS Bible (BeOS İncili)</a></h2>
|
||||
<p>Kabuk ortamında çalışmayla ilgili birkaç basit kuralı öğrendikten sonra kendinizi betik yazımı dünyasına alıştırmanızın zamanı gelmiş demektir. Haiku/BeOS için özel olarak hazırlanmış olan Scott Hacker'ın BeOS İncili'nin <a href="http://www.birdhouse.org/beos/bible/bos/ch_scripting1.html" class="printurl">Scripting Chapter (Betik Yazımı Bölümü (İngilizce,</a> <a href="http://www.birdhouse.org/beos/bible/bos/BeOS.scripting.PDF">PDF, 900 KiB)</a> bölümünde bu konu ile ilgili ayrıntı bilgiyi bulabilirsiniz.</p>
|
||||
|
||||
<h2>
|
||||
<a href="#"><img src="../images/up.png" style="border:none;float:right" alt="index" /></a><a id="user-scripts" name="user-scripts">Scripts in Haiku</a></h2>
|
||||
<p>Haiku used to have scripts for booting and shutting down. Today it uses the <a href="https://dev.haiku-os.org/wiki/LaunchDaemon">launch_daemon</a> instead. However, the user can still augment this process with certain user scripts.
|
||||
If they don't exist already, you'll have to create the needed files yourself. Otherwise simply add your commands where in the process you want them to be executed.</p>
|
||||
<a href="#"><img src="../images/up.png" style="border:none;float:right" alt="index" /></a><a id="user-scripts" name="user-scripts">Haiku'daki Betikler</a></h2>
|
||||
<p>Haiku'da önceden açılış ve kapanış için özel betikler bulunmaktaydı. Ancak şimdi bütün bu işlemler için <a href="https://dev.haiku-os.org/wiki/LaunchDaemon">launch_daemon</a> kullanılmaktadır. Ancak, yine de kullanıcılar bu süreci belirli bazı betiklerle etkileyebilirler. Bu dosyalar mevcut değilse gerekli dosyaları kendiniz oluşturmanız gerekmektedir. Bunun dışında, yapmanız gereken tek şey çalıştırılmasını istediğiniz komutları sürecin hangi kısmında çalıştırılmasını istiyorsanız eklemektir.</p>
|
||||
|
||||
<h3>
|
||||
<a href="#"><img src="../images/up.png" style="border:none;float:right" alt="index" /></a>
|
||||
<a id="userbootscript" name="userbootscript">The UserBootscript</a></h3>
|
||||
<p><span class="path">/boot/home/config/settings/boot/UserBootscript</span> will be executed after the system has finished its boot process. For example, you could launch a number of programs that would then be automatically started on every boot up:</p>
|
||||
<pre># Start LaunchBox
|
||||
<a id="userbootscript" name="userbootscript">UserBootscript</a></h3>
|
||||
<p><span class="path">/boot/home/config/settings/boot/UserBootscript</span>, sistem önyüklemesi bittikten sonra çalıştırılır. Örneğin, bu betikle, sistem açıldıktan sonra bazı programların kendiliğinden başlatılmasını sağlayabilirsiniz:</p>
|
||||
<pre># Başlatma Rampası'nı başlat
|
||||
/boot/system/apps/LaunchBox &
|
||||
|
||||
# Start Workspaces Applet
|
||||
# Çalışma Alanları gerecini başlat
|
||||
/boot/system/apps/Workspaces &</pre>
|
||||
<p>Remember to end a command with an "<tt>&</tt>" to start it as a background process, or the script will halt until that command has finished (in this case: the launched app was closed).</p>
|
||||
<p>Komutu bir arka plan işlemi olarak çalıştırmak için komutu her zaman bir "<tt>&</tt>" ile bitirin. Yoksa betik sözü edilen komut bitinceye kadar durur (bu durumda, başlatılan uygulama kapatılıncaya kadar).</p>
|
||||
|
||||
<p>A simple alternative to the above for launching applications at boot up is to put links to them in the <span class="path">/boot/home/config/settings/boot/launch</span> directory. This can be done simply by right-clicking on the application you wish to have started automatically, going to <span class="menu">Create Link</span> and then <a href="tracker.html#navigating">navigating</a> to the above directory.</p>
|
||||
<p>Sistem açılışında uygulamaları başlatmanın başka bir kolay yolu da uygulama bağlantılarını <span class="path">/boot/home/config/settings/boot/launch</span> dizinine yerleştirmektir. Bunu yapmak için kendiliğinden başlatılmasını istediğiniz uygulamaya sağ tıklayıp <span class="menu">Bağlantı oluştur</span>'a tıklayın ve yukarıdaki dizine <a href="tracker.html#navigating">geçin</a>.</p>
|
||||
|
||||
<h3><a href="#"><img src="../images/up.png" style="border:none;float:right" alt="index" /></a>
|
||||
<a id="usershutdownscript" name="usershutdownscript">The UserShutdownScript - <i>not yet working</i></a></h3>
|
||||
<p><span class="path">/boot/home/config/settings/boot/UserShutdownScript</span> will be executed as the first step in the shutdown process. If the script returns a non-zero exit status, the shutdown is aborted.</p>
|
||||
<a id="usershutdownscript" name="usershutdownscript">UserShutdownScript - <i>henüz işlemiyor</i></a></h3>
|
||||
<p><span class="path">/boot/home/config/settings/boot/UserShutdownScript</span>, kapatma sürecinin ilk adımı olarak çalıştırılır. Betik, sıfır olmayan bir çıkış durumu döndürürse kapatma işlemi yarıda kesilir.</p>
|
||||
|
||||
<h3>
|
||||
<a href="#"><img src="../images/up.png" style="border:none;float:right" alt="index" /></a>
|
||||
<a id="usershutdownfinishscript" name="usershutdownfinishscript">The UserShutdownFinishScript - <i>not yet working</i></a></h3>
|
||||
<p><span class="path">/boot/home/config/settings/boot/UserShutdownFinishScript</span> is executed as the last step in the shutdown process. Note, that most parts of the system have terminated by the time this script is executed.</p>
|
||||
<a id="usershutdownfinishscript" name="usershutdownfinishscript">UserShutdownFinishScript - <i>henüz işlemiyor</i></a></h3>
|
||||
<p><span class="path">/boot/home/config/settings/boot/UserShutdownFinishScript</span>, kapatma sürecinin son adımı olarak çalıştırılır. Bu betiğin çalıştırıldığı anda sistemin bazı kısımlarının halihazırda kapanmış olabileceğini aklınızda tutun.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="nav">
|
||||
<div class="inner"><span>
|
||||
« <a href="preferences.html">Preferences</a>
|
||||
« <a href="preferences.html">Tercihler</a>
|
||||
:: <a href="contents.html" class="uplink">İçerik</a>
|
||||
<!-- :: <a href="filesystem-layout.html">Dosya sistemi yerleşimi</a> » -->
|
||||
</span></div>
|
||||
|
||||
Reference in New Issue
Block a user