Re: Running unix shell script from remote java app
- From: Martin Gregorie <martin@xxxxxxxxxxxxxxxxxxx>
- Date: Wed, 13 Sep 2006 14:46:42 +0100
mwmann wrote:
>
The reason for the the java app is 2 fold, the unix box is a clients
machine, and we are not able to create or get them to create individual
user accounts, we have one (powerfull) user account for the company.
This particular app was built to basically run a script which generatesWhy not automatically run the script, either as the final task in the overnight run or later as a cron job, and have it e-mail you the report?
a report of errors, runtimes etc, of a clients overnight batch run.
Making a script send e-mail is easy and by doing it that way you don't have to worry about giving the juniors access to the client system OR about them forgetting to create the report.
If you're worried about security, it should be easy enough to encrypt the report and attach it to the e-mail.
So this java app will also be used to automatically schedule/generate*nixes already have a scheduler (see above), so why reinvent that particular wheel. You have a choice of scheduler: cron for jobs that always run at the scheduled interval and "at", that a process can use to schedule a following job.
this report.
--
martin@ | Martin Gregorie
gregorie. | Essex, UK
org |
.
- Follow-Ups:
- Re: Running unix shell script from remote java app
- From: mwmann
- Re: Running unix shell script from remote java app
- References:
- Running unix shell script from remote java app
- From: mwmann
- Re: Running unix shell script from remote java app
- From: Gordon Beaton
- Re: Running unix shell script from remote java app
- From: Mark Space
- Re: Running unix shell script from remote java app
- From: mwmann
- Running unix shell script from remote java app
- Prev by Date: Re: Can a method be a parameter of another method in Java?
- Next by Date: Re: Can you help me understand this?
- Previous by thread: Re: Running unix shell script from remote java app
- Next by thread: Re: Running unix shell script from remote java app
- Index(es):
Relevant Pages
|
Loading