Sign in to follow this  
Followers 0
snoopy.pa30

Script automation problems with running RUBY

5 posts in this topic

Help!

I am running an automation script that pieces together MANY programs in sequence. One of the pieces is a Ruby script that does some file merging and data manipulation (that I don't think AutoIT could do).

My problem is that when I run the Ruby Script from within my AutoIT script it does not work properly. When I run the Ruby Script manually it runs properly.

Any ideas??

Here is the line that calls my Ruby Script:

RunWait("C:\ruby\bin\ruby.exe C:\QPD\6Scripts\QPDProcess.rb ")

After the above processing I run a PERL script that works fine. The line that calls Perl Script is:

RunWait("C:\Perl\bin\perl.exe C:\QPD\6Scripts\addntdays.pl ")

Any help would be greatly appreciated.

Snoopy

"Still trying to shoot down that Red Baron"


Snoopy=====Still trying to shoot down that Red Baron :-))

Share this post


Link to post
Share on other sites



Have you tried ShellExecute?

Share this post


Link to post
Share on other sites

Thanks D, but there isn't much in the way of documentation on the parameters for ShellExecute.

I did look in the FAQ, and it shows a couple of examples, but does not explain all the parms.

I have tried it - but it gives me an error - Unknown function name for the ShellExecuteWait

here is my calling line(s):

ShellExecuteWait("C:\QPD\6Scripts\QPDProcess.rb ")

ShellExecuteWait("C:\QPD\6Scripts\QPDProcess.rb", "", "", "")

ShellExecute("C:\QPD\6Scripts\QPDProcess.rb ")

ShellExecute("C:\QPD\6Scripts\QPDProcess.rb", "", "", "")

I Assume I have to "include" something to get the ShellExecute to work. But What?

But where can I find docs on it????

Thanks


Snoopy=====Still trying to shoot down that Red Baron :-))

Share this post


Link to post
Share on other sites

are you using one of the latest betas?

Share this post


Link to post
Share on other sites

Thanks D

Will Download latest and see what happens.

Have a good weekend. Won't be able to work on this till sometime next week.

Snoopy


Snoopy=====Still trying to shoot down that Red Baron :-))

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