• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

executing dataload.bat or dataload.sh

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 3064
12
Mac IntelliJ IDE Python VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
snakes are really good at eating slugs. And you wouldn't think it, but so are tiny ads:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic