SHELL script

If you're new here, you may want to subscribe to my RSS feed. Also you may want to leave a comment to the posts. xD Thanks for visiting! |m|

at last!.. i have made my first successful shell script (not literally the first… just want to exaggerate it.. lolx)

the “simple” script that i made will just ping a host specified.. then show port 80 and 21 status.. and that’s it.. (lame script!.. lolx)

here’s the scipt:
#!/usr/local/bin/bash

echo “=============SERVER PING STATS============”;
ping -c3 $1
echo “==========================================”;
echo ” “;

echo “=========HTTP PORT CHECK(port 80)=========”;
nc -vvv -z $1 80
echo “Done!”;
echo “========END OF PORT CHECK(port 80)========”;
echo ” “;

echo “==========FTP PORT CHECK(port 21)==========”;
nc -vvv -z $1 21
echo “Done!”;
echo “========END OF PORT CHECK(port 21)=========”;
echo ” “;

I saved the script as portcheck and chmodded to 700…

here’s the result:

[+_Fueled_By_Ramen_+@root:~]—> portcheck tambayanbox.org
=============SERVER PING STATS============
PING tambayanbox.org (74.208.24.212): 56 data bytes
64 bytes from 74.208.24.212: icmp_seq=0 ttl=55 time=341.001 ms
64 bytes from 74.208.24.212: icmp_seq=1 ttl=55 time=336.076 ms
64 bytes from 74.208.24.212: icmp_seq=2 ttl=55 time=324.186 ms

— tambayanbox.org ping statistics —
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 324.186/333.754/341.001/7.058 ms
==========================================

=========HTTP PORT CHECK(port 80)=========
Connection to tambayanbox.org 80 port [tcp/http] succeeded!
Done!
========END OF PORT CHECK(port 80)========

==========FTP PORT CHECK(port 21)==========
Connection to tambayanbox.org 21 port [tcp/ftp] succeeded!
Done!
========END OF PORT CHECK(port 21)=========

me… happy… lolx…

am a skimboarder!

ei.. this is my first post under this category… wiw!

Last weekend, our team just had an outing down south…
DESTINATION: MOALBOAL
not many of you know that I love to skim.. [not sure if I’m good though.. but i love to skim.. lolx]..

lucky thing we brought our cameras.. and voila.. a skimboard clip…

This is Robert… the Professional “wipeout” skimboarder.. lolx.. they did not take a shot at me making my “ride”, i can ride the wave better than Robert I suppose so Robert makes a better “wipeout” video.. so it will not be a wipeout video with me.. lolx…

ENJOY!


Teambang!! in Moalboal

dUbistaS! eyes here!

So we are still hyped with the album that they have released last year [Embrace under EMi], now the band is already planning on launching a new album… w00t!.. Dont you just love that?!

Here’s a tentative list of songs under the new album..
1.An Invitation
2.The Fight Is Over
3.Cebuana
4.Guillotine
5.She Keeps Me Warm
6.A Lonely Time In The World
7.Prayer
8.Life Is Easy
9.Inside The Mind Of A Killer
10.I Heard You Sing And It’s Beautiful

.. I was lucky enough to hear the first two songs before hand.. they actually played it during PictureFilled’s [one of Cebu’s finest bands] first Album Launching..

The “feel” of the first two songs, “An Invitation” & “The Fight Is Over”, is kinda melancholic but still mixed with those aggressive riffs by John and Gabby… I just love how Lalay makes the “groove” from her bass.. dang!.. as a bassist… im freakin’ jealous..

Could this be the end of something beautiful?!.. nah… it’s another start… ;p