Skip to main content
14 events
when toggle format what by license comment
Apr 16, 2019 at 13:31 history edited Rui F Ribeiro CC BY-SA 4.0
deleted 16 characters in body
Sep 17, 2015 at 21:55 comment added Andras P Well... that's a whole different situation that you described in the OP. You can do it in Java then, or even better, write an xslt and execute that in the distributed java application. But I strongly recommend not going in the 1 line-perl script-in-bash-run-by-Java world.
Sep 16, 2015 at 21:34 comment added david but if we add another server then we need to distribute again this script. But as of now, if we have everything in one script and then I convert it into one line and store it on zookeeper and then my program is generic because I will get this one line shell script from zookeeper and just execute it from java.
Sep 16, 2015 at 21:32 comment added Andras P If the job is just to convert the xmls then why don't you distribute the python script instead?
Sep 16, 2015 at 21:26 comment added david hmmm, problem is I need to have everything in one shell script and then I need to convert that shell script in one line and put it on some other place and then I am executing it.
Sep 16, 2015 at 21:24 history edited Andras P CC BY-SA 3.0
Integrating with the script
Sep 16, 2015 at 21:21 comment added Andras P See changed code above, use sys.argv[], then you just call the python script with the appropriate xml names.
Sep 16, 2015 at 21:19 comment added Andras P I recommend passing in the filenames as parameters then.
Sep 16, 2015 at 21:19 history edited Andras P CC BY-SA 3.0
Integrating with the script
Sep 16, 2015 at 21:10 history edited Andras P CC BY-SA 3.0
EDIT: noticed that you made changes in the example, changed the code accordingly
Sep 16, 2015 at 21:08 comment added david May be use Python for this and Perl for other stuff which I am doing?
Sep 16, 2015 at 21:00 comment added david thanks for your suggestion. How can I integrate this in my shell script. I need to have everything at one place as you can see in my above shell script. I am doing other stuff as well with same files.
Sep 16, 2015 at 20:54 review First posts
Sep 16, 2015 at 20:58
Sep 16, 2015 at 20:51 history answered Andras P CC BY-SA 3.0