Spent on July 2, 2007 to dig in into SiLK tools by reading the Analyst Handbook, creating a simple Java program(7/3/7) to call SiLK commandline programs, import SiLK soruce to KDevelop development environment(7/6/7).
I read and tried rwfilter, rwcut, rwset, rwcat, rwsetcat, and also was able to call them from a sample Java program from this site. However, I can not use pipe in the Java program such as “rwfilter …. | rwcut …”. A bit of googling gave this discussion board thread which suggested using a shell script to include th e”rwfilter … | rwcut …” command, say test.sh, and then call that script from Java. The modified Java file is here and the SiLK script, test.sh, is here.
Import SiLK project into KDevelop
Creating a Develop project based on the SiLK code is straight forward. I used KDevelp 3.1.1 based on KDE “3.3.1-3.14 Red Hat, which came in the RedHat Enterprise 4 install CD. I imported the SiLK source to a KDevelop project by “Projects”->”Import Exsiting Projecgt”, then at the “Import Existing Projects” dialog, at “Directory:” text box, enter your SiLK unzipped directory, in my case, it was /root/silk-0.11.2. At the Project name”, just enter any name you like; I enter silk. For “Project Type”, please select Generic C Application(Custom Makefiles), then click “OK”. To build, do “Build”->”Clean Project”, then “Build”->”Make Project”.
Post a Comment
You must be logged in to post a comment.