Hi
ps aux | grep java
or
ps aux | grep jboss
or
ps aux | grep ant
Probably all of the above will show you the process of jboss AS and the pid of the java process running the task service. If you have embedded the task service in jboss then the above commands will only show you the process of jboss AS