- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Java: Error opening temporary file, runtime execut...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2007 10:47 AM
тАО02-27-2007 10:47 AM
Java: Error opening temporary file, runtime execution
When I attempt to execute a .com passing a parameter, with the syntax:
Runtime rt= Runtime.getRuntime();
Process p = rt.exec("sys$command:comJob parameter.LIS");
Do I need to set my permissions to an admin account? If so what is the syntax to do so?
Any help would greatly appreciated.
Thank you,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2007 10:53 AM
тАО02-27-2007 10:53 AM
Re: Java: Error opening temporary file, runtime execution
Runtime rt= Runtime.getRuntime();
Process p = rt.exec("sys$command:comJob parameter.LIS");
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2007 11:06 AM
тАО02-27-2007 11:06 AM
Re: Java: Error opening temporary file, runtime execution
Are you sure "SYS$COMMAND:comJob" is the correct filespec? Usually SYS$COMMAND points to the terminal. Maybe it should be "SYS$LOGIN:comJob"?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2007 01:38 PM
тАО02-27-2007 01:38 PM
Re: Java: Error opening temporary file, runtime execution
you can consider it blah$command
and yes I know that it works, when I execute
the line
$ @blah$command:comJob parameter.LIS
It works just fine, this is why I believe that it could be some type of permission issue. Some additional information:
The .COM job reads a file that the java file produces.
Thank you in advance for the help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2007 02:03 PM
тАО02-27-2007 02:03 PM
Re: Java: Error opening temporary file, runtime execution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2007 03:12 PM
тАО02-27-2007 03:12 PM
Re: Java: Error opening temporary file, runtime execution
OK, so what's the EXACT and COMPLETE error message you're seeing? Is it from rt.exec, or from within the procedure itself?
I'm not sure I understand the reference to "temporary file". Is the filename you're passing somehow classed as "temporary"? To diagnose, try replacing your procedure with one that does:
$ DIRECTORY/FULL 'p1'
$ SHOW DEVICE/FILE 'p1'
$ TYPE 'p1'
(ie: make sure the procedure can see the file, and make sure it's not opened by someone else).
If you have trouble capturing the output from inside Java, try changing the command to:
Process p = rt.exec("blah$command:comJob/OUT=test.out parameter.LIS");
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2007 04:12 PM
тАО02-27-2007 04:12 PM
Re: Java: Error opening temporary file, runtime execution
Here is the exact last two lines from the stream:
%DCL-I-SUPERSEDE, previous value of RECON_DETAIL_COMMAND_FILE has been superseded
Error opening temporary file.
However, when I run the job passing the parameter interactively via:
@blah$command:comJOB paraFile.LIS
The job executes and completes successfully.
In an attempt to clear up everything:
paraFile.LIS is created by java app.
java app. kicks-off comJob
comJob reads the paraFile.LIS
I have closed the BufferedWriter. It does not have an exclusive lock on the file. So this is not an issue (out.close()).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2007 10:50 PM
тАО02-27-2007 10:50 PM
Re: Java: Error opening temporary file, runtime execution
Just wondering if a logical is missing somewhere.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-28-2007 12:45 AM
тАО02-28-2007 12:45 AM
Re: Java: Error opening temporary file, runtime execution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-28-2007 08:35 AM
тАО02-28-2007 08:35 AM
Re: Java: Error opening temporary file, runtime execution
Any results from replacing your real procedure with a diagnostic one?