I have started a background job. Is there a way to know how it is progressing, and whether it has stopped?
My command line is like:
java weka.classifiers.trees.J48 -t data.arff J48-data.model >& log
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
For java processes, use jps command. This would give more information pertaining to the java environment of the java process.
You could simply
tail the log, which would be useful if the job produces regular output
ps -ef will let you know current status of your job (ie whether it is running, finished or in some other state)
You can trace the process with
strace (on Linux, or some equivalent such as
ktrace on other unices):
strace -p1234 where 1234 is the process ID. This will tell you if the process is doing something (which may or may not be something useful) or if it's blocked waiting for input somewhere.