Nohup Questions.
I'm unfamiliar with "nohup" and have a couple questions. I'm planning to use it to run my team's code from openlab.
1. I understand that if I disconnect for a while, my java program will keep running. What happens if I turn off my laptop? How does it know when to stop?
2. If we can't enter in data after the crawler stops, how can we get the total data as in the example code from 1.0.4? (This input would be from the "should i stop crawling?" question at the end.
1. I understand that if I disconnect for a while, my java program will keep running. What happens if I turn off my laptop? How does it know when to stop?
2. If we can't enter in data after the crawler stops, how can we get the total data as in the example code from 1.0.4? (This input would be from the "should i stop crawling?" question at the end.
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?1. When you use nohup, your program will continue to execute even if you turn off your laptop or go to a trip :) It doesn't know when to stop, it stops when your program exits or you kill it.
2. Generally, sophisticated crawlers have a web interface which allow users to communicate with the engine. But since we want to keep things simple, here is my solution:
I uploaded a new version (1.0.5). In this version, controller looks for a "stop.txt" file in the root folder of your crawl (the folder that you passed it) and only if this file doesn't exists will wait for the input. Therefore if you are using nohup, you can check the log file and when it is done just create an empty stop.txt file in the same folder.
1 person says
this answers the question
-
Inappropriate?Regarding 1) The program continues to run on *openlab* computers. Your laptop was only being used to connect to openlab, but the CPU cycles are coming from openlab.
I’m happy
Loading Profile...



EMPLOYEE
EMPLOYEE