Re: Running unix shell script from remote java app



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 generates
a report of errors, runtimes etc, of a clients overnight batch run.

Why 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?

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
this report.

*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.


--
martin@ | Martin Gregorie
gregorie. | Essex, UK
org |
.



Relevant Pages

  • Re: Schedule report to run and email it?
    ... > something like the Windows scheduler to schedule Access to run, ... > db and to output a report at a specific time. ... > create the report as a file and attach it to an e-mail and then send it. ... > no way to do this without user interaction. ...
    (microsoft.public.access.reports)
  • Re: how to email an access report automatically every month
    ... However, it is not necessary, and probably not preferable, to run it via an AutoExec macro. ... In the Command Line of your scheduler, you can specify the macro, somewhat like this... ... command with a report selected or displayed. ... Scheduler to start your Access database at the time you want to send ...
    (microsoft.public.access.gettingstarted)
  • RE: How to stop reports printing with blank fields
    ... I have managed to get round the 'printing reports with no data' problem by ... I have built a simple macro to open a report based on a query, ... if the initial query (on which the report is based) does not return ... I had planned to use the windows task scheduler ...
    (microsoft.public.access.macros)
  • Re: Schedule report to run and email it?
    ... It can be done, to be sure, but it takes a number of steps to automate this. ... something like the Windows scheduler to schedule Access to run, ... and to output a report at a specific time. ... way to do this without user interaction. ...
    (microsoft.public.access.reports)
  • Re: catch-22 task manager
    ... I'm thinking that I am using task scheduler. ... multiple user accounts one a one person machine. ... >> Every time I attempt to setup a task in task manager it asks me for a password. ...
    (microsoft.public.windowsxp.newusers)

Loading