Synchronize userguide with most recent translations

This commit is contained in:
Niels Sascha Reedijk
2020-05-30 10:43:56 +01:00
parent 0d7d1fccff
commit c12a0f8ebb
1266 changed files with 12261 additions and 9146 deletions
+26 -26
View File
@@ -9,19 +9,21 @@
*
* Authors:
* Humdinger <[email protected]>
* Translators:
* mazbrili abu ibrahim
*
-->
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="robots" content="all" />
<title>Bash and Scripting</title>
<title>Bash dan Scripting</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" type="text/css" href="../Haiku-doc.css" />
</head>
<body>
<div id="banner">
<div><span>Panduan pengguna</span></div>
<div><span>User guide</span></div>
</div>
<div class="nav">
@@ -51,57 +53,55 @@
</ul>
<span>
«  <a href="preferences.html">Preferensi</a> 
::  <a href="contents.html" class="uplink">Daftar Isi</a> 
::  <a href="contents.html" class="uplink">Contents</a> 
<!-- ::  <a href="filesystem-layout.html">Layout Filesystem</a>  » -->
</span></div>
</div>
<div id="content">
<div>
<div class="box-info">Terjemahan halaman ini belum lengkap. Sampai saat itu, bagian yang belum selesai menggunakan aslinya bahasa Inggris.</div>
<h1>Bash and Scripting</h1>
<h1>Bash dan Scripting</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>"Scripting" adalah teknik mengotomatisasi prosedur dengan merangkai perintah bersama dan menyimpan semuanya sebagai file teks, yang disebut "script". Setiap kali Anda menjalankan script seperti itu, perintah diproses satu demi satu sama seperti yang akan Anda lakukan jika Anda memasukkan mereka ke <a href="applications/terminal.html">Terminal</a> dengan tangan.<br />
Skrip dapat berkisar dari hanya menjalankan beberapa perintah dalam urutan tertentu hingga potongan kode canggih yang menyelesaikan tugas kompleks.</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>Karena skrip sangat bergantung pada shell yang ditafsirkan olehnya, Anda harus terlebih dahulu membiasakan diri dengan BASH yang digunakan oleh Haiku. Ada banyak sumber daya online karena ini adalah shell yang banyak digunakan. Salah satu dokumen yang bagus adalah Pengantar Johan Jansson <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 />
<a href="https://www.gnu.org/software/bash/manual/bash.pdf" class="printurl">Bash Reference Manual (PDF, 720 KiB)</a> adalah sumber yang bagus untuk masuk ke detail.</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">Kitab Scripting</a></h2>
<p>Setelah Anda mempelajari beberapa dasar-dasar tentang cara bekerja di shell, sekarang saatnya untuk perlahan-lahan mempermudah diri Anda dalam dunia scripting. Sekali lagi, Anda akan menemukan banyak tutorial dan bahan referensi online maupun di toko buku. Pengantar yang sangat bagus itu praktis dibuat khusus untuk Haiku adalah yang tersedia secara online di <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>) dari Kitab BeOS Scot Hacker.</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">Script Haiku</a></h2>
<p>Haiku dulu memiliki skrip untuk boot dan shutdown. Hari ini ia menggunakan <a href="https://dev.haiku-os.org/wiki/LaunchDaemon">launch_daemon</a> sebagai gantinya. Namun, pengguna masih dapat menambah proses ini dengan skrip pengguna tertentu. Jika belum ada, Anda harus membuat file yang dibutuhkan sendiri Jika tidak, cukup tambahkan perintah Anda di mana dalam proses yang Anda inginkan dijalankan.</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> akan dieksekusi setelah sistem menyelesaikan proses bootingnya. Misalnya, Anda dapat meluncurkan sejumlah program yang kemudian akan dimulai secara otomatis pada setiap boot:</p>
<pre># Memulai LaunchBox
/boot/system/apps/LaunchBox &amp;
# Start Workspaces Applet
# Memulai Applet Workspaces
/boot/system/apps/Workspaces &amp;</pre>
<p>Remember to end a command with an "<tt>&amp;</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>Ingatlah untuk mengakhiri perintah dengan "<tt>&amp;</tt>" untuk memulainya sebagai proses latar belakang, atau skrip akan berhenti sampai perintah itu selesai (dalam hal ini: aplikasi yang diluncurkan ditutup).</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>Alternatif sederhana di atas untuk meluncurkan aplikasi saat boot up adalah dengan meletakkan tautan ke dalam direktori <span class="path">/boot/home/config/settings/boot/launch</span>.Ini dapat dilakukan hanya dengan mengklik kanan pada aplikasi yang ingin Anda miliki mulai secara otomatis, pergi ke <span class="menu">Buat link</span> dan kemudian <a href="tracker.html#navigating">navigasi</a> ke direktori diatas.</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>belum bisa bekerja</i></a></h3>
<p><span class="path">/boot/home/config/settings/boot/UserShutdownScript</span> akan dieksekusi sebagai langkah pertama dalam proses shutdown.Jika script mengembalikan status keluar yang tidak nol, shutdown dibatalkan.</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>belum bisa bekerja</i></a></h3>
<p><span class="path">/boot/home/config/settings/boot/UserShutdownFinishScript</span> dieksekusi sebagai langkah terakhir dalam proses shutdown. Perhatikan, bahwa sebagian besar sistem telah dihentikan pada saat script ini dieksekusi.</p>
</div>
</div>
@@ -109,7 +109,7 @@ If they don't exist already, you'll have to create the needed files yourself. Ot
<div class="nav">
<div class="inner"><span>
«  <a href="preferences.html">Preferensi</a> 
::  <a href="contents.html" class="uplink">Daftar Isi</a> 
::  <a href="contents.html" class="uplink">Contents</a> 
<!-- ::  <a href="filesystem-layout.html">Layout Filesystem</a>  » -->
</span></div>
</div>