Sign in to follow this  
Followers 0
jumbo

Invoke a perl script

6 posts in this topic

Hi,

I have a simple perl script in c:/folder/sample.pl. How do i invoke this script with the help of autoit3?

Share this post


Link to post
Share on other sites



What you need is the perl interpreter. Use the standard DOS parameters in a run() command to call the script. If .pl extension is associated with the interpreter on your system shellexecute the script directly will do too. Look up run()+StdoutRead() to capture console results.

Share this post


Link to post
Share on other sites

By doing this via command line will be manual...but I want the perl script to get invoked automatically...Can this be done using autoIt?

Share this post


Link to post
Share on other sites

By doing this via command line will be manual...but I want the perl script to get invoked automatically...Can this be done using autoIt?

invoked by who? User or script?

Share this post


Link to post
Share on other sites

By script...

Share this post


Link to post
Share on other sites

Ok, this is exactly what KaFu just told you but in code:

Run("perl.exe C:\yourscript.pl") ; ( lol at perl.exe )

ShellExecute("C:\yourscript.pl")

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0