Rss Feed
Tweeter button
Facebook button
Technorati button
Reddit button
Myspace button
Linkedin button
Webonews button
Delicious button
Digg button
Flickr button
Stumbleupon button
Newsvine button
Youtube button

gxmessages: Displaying GUI Messages from Scripts

intipadi.com - There are many dialog programs out there, Zenity, Kdialog, xdialog, etc. I love programs like these. They make it so easy to spice up a shell script with a little GUI action. Today I’m going to go look at a dialog program called gxmessage.

I just recently got a Nokia N900 (Every Linux user should get one) and while playing with it I found that a few programs on it were calling gxmessage to create a user interface. I found that it seemed to have a number of options and seemed easy to use. So I jumped on to my laptop and did a search through the repositories for it. I found it in a package called “gmessage”. To install it just do the following: More »

Popularity: 1% [?]

Bash Examples – Mistakes to Avoid

Bash Examples

A bash script is a text file containing a list of commands to be executed by the bash shell. A long time back, I had written a guide on Bash scripting which teaches you the basic syntax of bash scripts in a mere 10 seconds. More »

Popularity: 1% [?]

Lebih mahir untuk file built ini /dev/tcp di Bash

intipadi.com – Bash sebagai salah satu shell favorit dan default dihampir kebanyakan distribusi linux mempunyai sebuah file device built-in untuk menangani TCP/IP. Device berbasis TCP/IP itu biasanya berada di <code>/dev/tcp</code>. Dalam artikel ini kita akan coba memanfaatkan fasilitas built-in itu untuk membuka,membaca dan menulis halaman web sehingga lebih mirip sebuah browser command line.

Langsung ke contoh, berikut adalah script yang kita dapati dari halaman depan Google:

exec 3<>/dev/tcp/www.google.com/80
echo -e "GET / HTTP/1.1\r\nhost: http://www.google.com\r\nConnection: close\r\n\r\n" >&3
cat <&3

Ya, hanya 3 baris saja. Baris pertama yang membingungkan itu adalah sebuah aksi untuk mengeksekusi deskriptor file nomor 3 untuk membaca dan menulis via socket TCP/IP yang dikehendaki. More »

Popularity: 1% [?]

Rss Twitter Facebook