]> bicyclesonthemoon.info Git - ott/enhance/commitdiff
I must know everything.
authorb <b@0d794883-4e4e-4f65-aa7a-0e7f5947bab5>
Tue, 31 Dec 2013 08:54:12 +0000 (08:54 +0000)
committerb <b@0d794883-4e4e-4f65-aa7a-0e7f5947bab5>
Tue, 31 Dec 2013 08:54:12 +0000 (08:54 +0000)
git-svn-id: svn://botcastle1b/npb@21 0d794883-4e4e-4f65-aa7a-0e7f5947bab5

npbd
npbd.cpp

diff --git a/npbd b/npbd
index 0642aafeca26f76488bd242d979c5a4f26ad0109..9fc150e4027e4f21a1479e4728377cb7c51a8f6e 100755 (executable)
Binary files a/npbd and b/npbd differ
index 6854c54e44dd148b3369e7cafd0d3585c7a4e031..ea09373fb1d49bff0cb7f546d235d705c7c364f9 100644 (file)
--- a/npbd.cpp
+++ b/npbd.cpp
@@ -19,6 +19,7 @@
 #define WGET_PATH "/usr/bin/wget"
 #define NPB_PATH  "./npb"
 #define RM_PATH   "/bin/rm"
+#define LOG_PATH  "/var/log/npb/npb.log"
 
 int main (int argc, char *argv[]);
 void mustard(int mustard);
@@ -99,5 +100,11 @@ void mustard(int mustard)
                exit(t);
        }
        waitpid(sub,&t,0);
+       pix=fopen(LOG_PATH,"at");
+       if(pix!=NULL)
+       {
+               fprintf(pix,"%x %s\n",mustard,url);
+               fclose(pix);
+       }
        exit(mustard);
 }
\ No newline at end of file