A scheduled java application?  
Author Message
maguirebren





PostPosted: 2005-5-3 19:21:00 Top

java-programmer, A scheduled java application? Hi,

I have a Linux box running Red Hat 9. There is a java application on
this box that is scheduled to run twice daily, once a night and once
in the morning.
My problem is that I do not know what java program is running or how
this java application is scheduled to run.

Initially I thought it must be a cron job running the java application
but I cannot find any listing for a java app in crontab.

If anyone has any ideas on how to find which java application is
running and where to find how it is being scheduled to run I would
really appreciate it.

Thanks
 
Arnaud Berger





PostPosted: 2005-5-3 19:27:00 Top

java-programmer >> A scheduled java application? Hi,

Have a look inside the scripts that are called by cron.
one of them probably contains a java launching instruction (java
"whatever").

If you find nothing there, also check that the start script of the box
(rc.local ?) doesn't trigger another kind of scheduling .

Regards,

Arnaud

"Bren" <email***@***.com> a 閏rit dans le message news:
email***@***.com...
> Hi,
>
> I have a Linux box running Red Hat 9. There is a java application on
> this box that is scheduled to run twice daily, once a night and once
> in the morning.
> My problem is that I do not know what java program is running or how
> this java application is scheduled to run.
>
> Initially I thought it must be a cron job running the java application
> but I cannot find any listing for a java app in crontab.
>
> If anyone has any ideas on how to find which java application is
> running and where to find how it is being scheduled to run I would
> really appreciate it.
>
> Thanks


 
klaus zerwes





PostPosted: 2005-5-3 19:49:00 Top

java-programmer >> A scheduled java application? Bren schrieb:
> Hi,
>
> I have a Linux box running Red Hat 9. There is a java application on
> this box that is scheduled to run twice daily, once a night and once
> in the morning.
> My problem is that I do not know what java program is running or how
> this java application is scheduled to run.
>
> Initially I thought it must be a cron job running the java application
> but I cannot find any listing for a java app in crontab.
>
> If anyone has any ideas on how to find which java application is
> running and where to find how it is being scheduled to run I would
> really appreciate it.
>
> Thanks

run something like
pstree -al | grep java
when the job is running

if you dont know exactly when it is shedueled,
run a loop like:
while true; do
pstree -al | sed '/grep/d' \
| grep java >> /tmp/log && date >> /tmp/log;
sleep 10;
done

Klaus Zerwes
 
 
mswope





PostPosted: 2005-5-3 21:03:00 Top

java-programmer >> A scheduled java application? "klaus zerwes" <email***@***.com> wrote in message
news:d57oe8$790$02$email***@***.com...
> Bren schrieb:
>> Hi,
>>
>> If anyone has any ideas on how to find which java application is
>> running and where to find how it is being scheduled to run I would
>> really appreciate it.
>>
>> Thanks
>
> run something like
> pstree -al | grep java
> when the job is running
>
> if you dont know exactly when it is shedueled,
> run a loop like:
> while true; do
> pstree -al | sed '/grep/d' \
> | grep java >> /tmp/log && date >> /tmp/log;
> sleep 10;
> done
>
> Klaus Zerwes

You might also try checking the syslog for entries.
mas


 
 
Harald





PostPosted: 2005-5-4 2:00:00 Top

java-programmer >> A scheduled java application? email***@***.com (Bren) writes:

> Hi,
>
> I have a Linux box running Red Hat 9. There is a java application on
> this box that is scheduled to run twice daily, once a night and once
> in the morning.
> My problem is that I do not know what java program is running or how
> this java application is scheduled to run.

Get the full commandline with ps axwwwwwwww.
Get the pid of that java process and look into /proc/${pid}/fd to see
which files are opened.

> Initially I thought it must be a cron job running the java application
> but I cannot find any listing for a java app in crontab.

Do it the hard way:
cd /etc
find . -type f -exec grep -i java /dev/null {} \;

Harald.

--
---------------------+---------------------------------------------
Harald Kirsch (@home)|
Java Text Crunching: http://www.ebi.ac.uk/Rebholz-srv/whatizit/software
 
 
Nigel Wade





PostPosted: 2005-5-4 17:08:00 Top

java-programmer >> A scheduled java application? Bren wrote:

> Hi,
>
> I have a Linux box running Red Hat 9. There is a java application on
> this box that is scheduled to run twice daily, once a night and once
> in the morning.
> My problem is that I do not know what java program is running or how
> this java application is scheduled to run.
>
> Initially I thought it must be a cron job running the java application
> but I cannot find any listing for a java app in crontab.
>
> If anyone has any ideas on how to find which java application is
> running and where to find how it is being scheduled to run I would
> really appreciate it.
>
> Thanks

It's likely run by cron or at. Check the relevent spool directory for all
users.

Also, don't forget that cron typically runs whatever is
in /etc/cron.hourly, /etc/cron.daily, /etc/cron.weekly etc. So you need to
look there as well.

--
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : email***@***.com
Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555