aspose file tools*
The moose likes Websphere and the fly likes executing dataload.bat or dataload.sh Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "executing dataload.bat or dataload.sh" Watch "executing dataload.bat or dataload.sh" New topic
Author

executing dataload.bat or dataload.sh

Rambabu Balla
Greenhorn

Joined: Aug 25, 2013
Posts: 4
Hi,
WebSphere Commerce comes with dataload utilities and there is documentation to use data load in Infocenter. How to call these batch files (dataload.bat or dataload.sh) from a CustomTaskCmdImpl class. Is there a way to do this? Thanks for your reponse.
Greg Charles
Sheriff

Joined: Oct 01, 2001
Posts: 2854
    
  11

I don't believe there's a platform independent way to do it. As far as I can remember, on Windows it's:


And everywhere else it's:


Rambabu Balla
Greenhorn

Joined: Aug 25, 2013
Posts: 4
Greg Charles wrote:I don't believe there's a platform independent way to do it. As far as I can remember, on Windows it's:


And everywhere else it's:




Thanks for the information. I have tried the same by passing the argument to dataload.bat. Now, I have the task command executed in a batch command as:

When the App-Server is up and running, I'm able to schedule the batch job and in turn it executes my task command and data gets populated in the corresponding tables. The biggest concern is that the subprocess created by exec is not terminating even after completion of data load process. (I can see a cmd.exe process in system tasks and there is a lock file created in the logs directory of data loads)


I tried even proc.waitFor(); How is this to be handled? Thanks again
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: executing dataload.bat or dataload.sh