c# - Trigger Apache Nutch Crawl Programatically -
i'm trying create asp.net web api trigger crawl event happen. can't seem cygwin process of commands give it. thing can open terminal. once terminal open i'd have redirect pwd location , trigger command want.
process p = new process(); processstartinfo info = new processstartinfo(); info.createnowindow = false; info.redirectstandardinput = true; info.useshellexecute = false; info.filename = "c:\\cygwin64\\bin\\mintty.exe"; p.startinfo = info; p.start(); streamwriter sw = p.standardinput; if (sw.basestream.canwrite) { sw.writeline(@"cd c:\users\uname\desktop\apache-nutch-2.3-mongodb\runtime\local\"); sw.writeline("bin/autocrawl"); } sw.close(); p.waitforexit();
i've tried many approaches, last 1 i've tried nothing. there way launch crawl .net application? i've looked nutchapi creating new job type of crawl i'm not sure if applies here or not.
i ended figuring out how use nutchapi answer question.
Comments
Post a Comment