Write Batch files to script (Jython)

Discussion in 'Software' started by potchi, May 17, 2011.

  1. potchi

    potchi Private E-2

    Hi!

    I have a batch file (potchi.bat) that has the lines
    ...
    set maxHeap = 2048
    set intialHeap = 512
    set myfullPath = D:\myDirectory\websphere\myApp.war
    ...

    I want to pass these variables to a Jython script (potchi.py)
    to execute a command

    AdminApp.install(myfullPath, -contextroot myApp)
    AdminTask.setJVMMaxHeapSize(-maximumHeapSize maxHeap)
    AdminTask.setJVMInitialHeapSize(-initialHeapSize initialHeap)

    these variables serves as parameters

    help please
    thanks!!!
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds