Re: Running unix shell script from remote java app
- From: "mwmann" <mwmann@xxxxxxxxx>
- Date: 13 Sep 2006 23:43:04 -0700
Thanks everyone for you help, after sitting down and fighting my was
through unix scripts and unix shell tutorials, - and a lot of input
from a co-worker (with plenty unix skillls) - The problem is solved.
The following lines were added to the ksh script which sets up
everything I needed. (Sorry. had to Add XXXXX for confidentiallity
purposes)
.. /etc/profile
XX_HOME=/app/xxx/product/2.6
XXXXXX_BASE=/app/xxxx
MMO_HOME=/app/xx/xxxx/2.6
.. ${XX_HOME}/bin/shell_profile
.. /app/xxxx/product/2.6/src/scripts/xxxenv prd ds
.. ${MMO_HOME}/bin/mmo-env
Martin: I have thought about scheduling the report to run automatically
- on batch completion), and as a cronjob- Client restriction will not
allow us to add a cron job.
The the java app will be used to run many scripts in the near future as
his responsibilities increase, not necessarily only the report, which
is why I dont want to just schedule it the batch, at certain times the
report may also be needed to run Ad-hoc.
Thanks again everyone.
Cheers
Mike
Martin Gregorie wrote:
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
a report of errors, runtimes etc, of a clients overnight batch run.
overnight run or later as a cron job, and have it e-mail you the report?
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
this report.
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.
--
martin@ | Martin Gregorie
gregorie. | Essex, UK
org |
.
- 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
- Re: Running unix shell script from remote java app
- From: Martin Gregorie
- Running unix shell script from remote java app
- Prev by Date: Re: problem when calling unix command from jsp
- Next by Date: Re: Find the number of lines in a text file
- 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
|