|
Patrick, You might want to look at Ant (http://jakarta.apache.org/ant). You can script pretty much anything. With Ant, you could send your mail directly using the email task support. I built an Ant command that runs on the AS/400 to make it simpler to run Ant scripts, but it needs some work. A version of that command is available via CVS at www.iseries-toolkit.org. David Morris >>> Patrick.F.O'Dowd@gsk.com 01/28/03 09:50AM >>> Hi, I am wondering if it is possible to write a java routine for the as400 that can run NT batch files and unix shell scripts on the remote NT/unix machines? The machines are all on the same network. I would like to capture the output from the batch/shell scripts and send the collated results as an email to an administrator. (I am thinking along the line of piping the output from the scripts to a file, copy the files to the as400 via some ftp type classes, then send off the results via a System.exec() call to snddst.). Ideally I would like to keep the java routine platform independent, allowing me to run it on an NT machine if required. Thanks
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.