Jump to content

Want to execute a perl command on occurenec of Event


Recommended Posts

Hi All,I am using Altova Authentic, there i should create a macro, for executing perl script.I created a form, in the onclick event.I want to execute the perlscript with parameters that are got dynamically from textbaxes in the form.Is it possible?As of now I am using ShellExecute API and calling a .bat file containing the perl script. But I am not able to pass parameters dynamically.Can anybody help me with this.Thank You in advance

Link to post
Share on other sites

you could use AJAX and call the script through the browser and pass params via GET. You would need to append some redireciton info to the script when the processing is done to go back to the correct browser page.

Link to post
Share on other sites
duh :) lol I really need to read better.
It is offline, I dont connect to the web at all, so I cannot use Ajax.
function Button1_EventClick() {	This = Button1;EditBox1.Text	="Done";var oShell = new ActiveXObject("Shell.Application");var commandtoRun = "perl.bat";// Invoke the execute method.oShell.ShellExecute(commandtoRun, "", "", "open", "1");

This is the code I am using.this perl.bat contains command to run perlscript.I have arguments to be passed to the perlscript also.

Link to post
Share on other sites

If your question is how to send arguments to the perl script, you would need to send those arguments to the batch file (included in commandtoRun), and then have the batch file forward its arguments to the perl script.http://www.microsoft.com/resources/documen...t.mspx?mfr=true

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...