Zilee Posted February 10, 2011 Posted February 10, 2011 Hi, I need to automate the installation of perl package manager packet's. I used a simple Run("cmd.exe") Sleep(2000) Send("ppm install --area site --force String-CRC32") Send("{enter}") Here is an example of a good result: Downloading String-CRC32-1.4...done Unpacking String-CRC32-1.4...done Generating HTML for String-CRC32-1.4...done Updating files in site area...done 7 files unchanged The thing is, the code above is working but the result is unexpected. It stops at: Downloading String-CRC32-1.4... I can manually type this command in a cmd console and it works perfectly.
enaiman Posted February 10, 2011 Posted February 10, 2011 I doubt it will make a difference in your case - because it is basically the same as you did but in a more elegant form. You can try to replace all your code with this: Run(@ComSpec & " /c " & 'ppm install --area site --force String-CRC32', "", @SW_SHOW) Anyway - you have nothing to lose by trying it. SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script wannabe "Unbeatable" Tic-Tac-Toe Paper-Scissor-Rock ... try to beat it anyway :)
Zilee Posted February 11, 2011 Author Posted February 11, 2011 I doubt it will make a difference in your case - because it is basically the same as you did but in a more elegant form. You can try to replace all your code with this: Run(@ComSpec & " /c " & 'ppm install --area site --force String-CRC32', "", @SW_SHOW) Anyway - you have nothing to lose by trying it. Is it possible that the cmd.exe I run from the run function of autoit and the one I execute from the 'run as' window in windows has different permissions? Because I add an env variable before executing the cmd in autoit to bypass the proxy. Maybe an EnvUpdate will do the trick. P.S I know that syntax, I used it at first, not ideal for debugging though.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now