Detached process with wget 8 September 2006
Posted by Maulvi Bakar in : Linux,Work , add a commentNow, this is the umpteenth time I tried to post this. Problem with my webhoster’s security settings. It’s the infamous 406 Not Acceptable error!
Anyway, I need to download a fairly large file on my server which I accessed it remotely via ssh. Problem is that I can’t wait while it finishes the download. I need to close the session and get some real work done somewhere else
(Hey the laptop battery might expire on me)
This is how I do it -
# (wget -o logfile http://www.example.com/dl_file.gz &)
The “wget -o logfile” parameter will allow you to monitor the download progress in real time. Just tail the logfile -
# tail -f ./logfile
You can also monitor the process thus -
# ps -ef | grep wget
This one will show you all the wget processes that you have detached, including information of what file is currently being downloaded complete with the url and logfiles.
Probably you’ll want to assign a different log file name for each of the detached process ![]()
Enjoy!
-ps Much appreciation to Alexander B. of my WebHost for assisting in that pesky 406 error.
IBM DB2 Certification 5 September 2006
Posted by Maulvi Bakar in : Work , add a commentWe need to deploy an IBM Websphere Portal. One of the requirements is a database backend. It was decided to install IBM DB2. While I’m whittling away the time awating the completion of the installation, I come across this particular info. It is just a basic paper, but.. Since it is quite affordable at RM228 at Thomson Prometric, well..
DB2 UDB V8.1 Family Fundamentals
DB2 V8 Family Fundamentals certification prep tutorials
enjoy!
Passive FTP and IPTables 4 September 2006
Posted by Maulvi Bakar in : Linux,Work , add a commentHad to configure an FTP server at work. For reasons best left for discussion in a later undetermined future date, we put the FTP server outside the firewall. Therefore, the machine in question needs to be protected by it own built-in firewall.
IPTables to the rescue.
There’s a snag. The default IP connection tracking doesn’t seem to work properly. IPTables rules below suggest that stateful inspection would do IP connection tracking as well, apparently not-
-A RH-Firewall-1-INPUT -m state –state ESTABLISHED,RELATED -j ACCEPT
-A RH-Firewall-1-INPUT -m state –state NEW -m tcp -p tcp –dport 21 -j ACCEPT
Seems that the “ip_conntrack_ftp” needed to be loaded separately in order to enable it.
# /sbin/modprobe/ip_conntrack_ftp
That should do the trick… but to have IPTables load it automatically, edit the file “/etc/sysconfig/iptables-config”
Add the following into it -
IPTABLES_MODULES=”ip_conntrack_ftp”
New Internet Connection 16 August 2006
Posted by Maulvi Bakar in : Home , add a commentAfter several weeks of waiting and indecision, I’ve finally decided to go for a local telco’s Broadband Service. Got tired of waiting for the Satellite Broadband Service. Now I’m connected again! Actually ordered for it early last week, with the phone as well, but.. the local telco’s usual inefficiency, it was delayed for almost a week. I am amazed that I managed to restrain myself from actually killing somebody
Oh well, they did give me a cheap broadband modem for RM60. It’s a router modem with a bridging capability – means I can configure it as an ordinary ethernet-modem. That’s what I’m gonna do.. Have it connected to my own Linux-based Router.
Blog Migration 31 July 2006
Posted by Maulvi Bakar in : System , add a commentI’ve always liked WordPress. It seems very customizable, full-featured and lotsa plugins for me to play around with.
Actually, I installed WordPress on Maulvi.Net a few days ago, but delayed the Data Migration from http://deunan.wordpress.com till earlier today. Everything works perfectly! All I did was a simple export from the old one to the new one.
Data Migration is Evil.. 1 May 2006
Posted by Maulvi Bakar in : Work , add a commentWell, I say that the hard part is almost done. Duplicates eliminated, hanging records purged. Now, I only need to create new 'Registration No', since the new system requires on 16 characters, instead of 25++ in the original.
What else? Oh yeah, remove all hyphens ("-") characters in the Identity Card Number column (This one needs a bit thinking). Seperate all I/C #s from old to new (This one's peanuts). Remove all instances of the apostrophe ("'" – heh!) and ampersand ("&") from Names and Addresses Fields (Ought to be fun!). Yeah, don't forget to split the addresses field by 35 characters
(More to remind myself than just a simple blogging
)
Umm.. Hope I can finish by midnight!
Weekend.. Shot! 30 April 2006
Posted by Maulvi Bakar in : Work , add a commentDarn, sometimes I hate my life. My boss asks me to redo the whole database for the state of Kedah. Exactly 33,297 records in the database. First I have to clean them for duplicates, then I have to slowly and painfully update them to prepare for upload into the new database and eventually, new system that they gonna use at the Ministry.
Someone else might do the job ala – "chin chai".. Well, someone else did.. I started the job first, did it about 20% to a quater of the way. Later my boss told me to turn it over to someone else and told me to concentrate on my prime duties. Well, they botched it bad enough that my boss asks me to redo it again, from the top.
Oh well..
Hello world! 27 April 2006
Posted by Maulvi Bakar in : System , add a commentWelcome to WordPress. This is your first post. Edit or delete it and start blogging!
Yeah, yeah.. I get it.. This is the umphteenth time I started a blog.. Dunno whether this one lasts.. or maybe not.. I’ll damn well’ll give it a try.. a shot.. whatever..