Monday, January 25, 2010

One Problem Solved, Come Another Problem

This is some solution comes from DOVIS Developer

Hi Muhammad,

It took a while but here are some suggestions.
The changes in the dovis_dock.cpp and perl scripts are not working because you are using the options for “lockfile” instead of those for “lockfile-create”.
check:
http://www.tin.org/bin/man.cgi?section=1&topic=lockfile-create
and
http://linux.about.com/library/cmd/blcmdl1_lockfile.htm

I have added below some suggestions on how to alter the code but they may not be 100% correct and you may need to include additional changes. I cannot test here because I don’t have a machine with the Debian Sarge OS.

Daniel


insert this line into dovis_dock.h
after line 47, inside the definition of DOVIS_DATA_TYPE)


std::string lock_command2;

In dovis_dock.cpp file:
Replace these three lines (lines 287-289):


command_oss.str("");
command_oss << "lockfile -" << dovis_data.lock_sleep_time; command_oss << " -r " << dovis_data.lock_retries << " "; with

command_oss.str("");
command_oss << "lockfile-touch “ dovis_data.lock_command2 = command_oss.str(); command_oss.str(""); command_oss << "lockfile-create –retry “ << dovis_data.lock_retries << " "; ------- Also, after line 475 of dovis_dock.cpp, which reads:

command_oss << dovis_data.lock_command << dovis_data.job_control_lock_1; add:

command_oss << dovis_data.lock_command2 << dovis_data.job_control_lock_1 << " & "; ----- after lines 1488 and 1682 of dovis_dock.cpp, which read:

command_oss << dovis_data.lock_command << dovis_data.job_control_lock_2; add:

command_oss << dovis_data.lock_command2 << dovis_data.job_control_lock_2 << " & "; In the perl script you should include something like:

my $lockfile_command = "lockfile-create --retry " . $dovis_opt{LOCK_RETRIES};
my $lockfile_command2 = "lockfile-touch ”;

Then, after these lines:
#############################

# get lock to log cpu count

#############################
if (system "$lockfile_command $lockfile")
{
print "Can not get init lock!\n";
exit;
}

Add these ones

if (system "$lockfile_command2 $lockfile & ")
{
print "Cannot lock_touch file!\n";
exit;
}

And the result is


Well, I still have to work hard then . . . . .

Read More...

Friday, January 15, 2010

Horray, I've got the solution

Horray, I've got the solution for the previous problem.

Mr Daniel Ripoll personally sent it yesterday.

It seems I could work with it next tuesday.

Tommorow till monday, I've backpacking trip to Ujung Genteng, Sukabumi.

Have a nice weekend



Read More...

Wednesday, January 6, 2010

Problems Today

Dear DOVIS developer

I got trouble when trying to install DOVIS

First, I checked the lockfile command on my OS (Debian Sarge)


Yeah, the lockfile is on my OS with different form (lockfile-create)
So, I changed the dovis_dock.cpp source code from original installer (openbabel)

Before




After


I install DOVIS in the usual way
Then I changed the dovis_dock_driver.pl source code from script folder

Before


After


But, still there's some mistake on my process
The result is


Actually, I'm newbie on using DOVIS and Debian
I hope I can get some assistance on installation and running some test

Thank You



Muhammad H Hilman

Read More...

Monday, January 4, 2010

Can not access hastinapura !!!

Today, on my first 2010 day
When I already in front of my computer
Doing DOVIS work on hastinapura

I CAN'T ACCESS THE SERVER

updated:
It's my wrong, I forgot my username and password

Read More...