View Single Post
Old 2013-06-27, 21:34   #87
TheJudger
 
TheJudger's Avatar
 
"Oliver"
Mar 2005
Germany

11×101 Posts
Default

Quote:
Originally Posted by roemer2201 View Post
So mfaktc allways uses the "pwd" as a workingdirectory? To this i can not agree. I'll attach my mfaktc startskript. There you can see that my pwd is $HOME and I launch the program with ~/bin/mfaktc-0.20/mfaktc.exe. According to your description mfaktc should look for the worktodo.ini directly in my $HOME, right? But what it actually does is that it reads/writes all related files to ~/bin/mfaktc-0.20.
It should use cwd for all files read an written:
Code:
somehost:/tmp # ls -la foo/ bar/
bar/:
total 140
drwxr-xr-x 2 root root   4096 Jun 27 23:29 .
drwxrwxrwt 9 root root 114688 Jun 27 23:26 ..
-rw-r--r-- 1 root root     40 Jun 27 23:29 M66362159.ckp
-rw-r--r-- 1 root root   8730 Jun 27 23:27 mfaktc.ini
-rw-r--r-- 1 root root     28 Jun 27 23:29 worktodo.txt

foo/:
total 764
drwxr-xr-x 2 root root   4096 Jun 27 23:27 .
drwxrwxrwt 9 root root 114688 Jun 27 23:26 ..
-rwxr-xr-x 1 root root 652622 Jun 27 23:27 mfaktc.exe

somehost:/tmp # cd bar/
somehost:/tmp/bar # ../foo/mfaktc.exe
mfaktc v0.20 (64bit built)
[...]
got assignment: exp=66362159 bit_min=64 bit_max=65 (0.06 GHz-days)
Starting trial factoring M66362159 from 2^64 to 2^65 (0.06 GHz-days)
 k_min = 138985409640
 k_max = 277970824814
Using GPU kernel "barrett76_mul32_gs"

found a valid checkpoint file!
  last finished class was: 105
  found 0 factor(s) already
[...]
Please check
Code:
ls -la /proc/<PID of mfaktc>/cwd
Oliver
TheJudger is offline   Reply With Quote