• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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: 3063
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
 
It's fun to be me, and still legal in 9 states! Wanna see my tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic