Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

executing dataload.bat or dataload.sh

 
Rambabu Balla
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2993
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic