Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » RCP Testing Tool » [SOLVED] ECL Command II(Proper syntax for exec-process)
[SOLVED] ECL Command II [message #1427115] Fri, 19 September 2014 18:35 Go to next message
Mike Patterson is currently offline Mike PattersonFriend
Messages: 4
Registered: September 2014
Junior Member
I'm trying to invoke cmd shell in order to run a tasklist command that has parameters. I'm not getting the same results if I run it in the cmd shell window.

Using this command in RCPTT script:

exec-process "\"c:/windows/system32/cmd.exe\"""/C tasklist /FO CSV /NH /FI \"IMAGENAME eq AcroRd32.exe\"" | get stdout | log

I know the process is running however I get:

!ENTRY org.eclipse.rcptt.ecl.platform 1 0 2014-09-19 14:09:35.434
!MESSAGE INFO: No tasks are running which match the specified criteria.






[Updated on: Wed, 30 September 2015 06:35] by Moderator

Report message to a moderator

Re: ECL Command II [message #1428650 is a reply to message #1427115] Mon, 22 September 2014 06:09 Go to previous messageGo to next message
Vasili Gulevich is currently offline Vasili GulevichFriend
Messages: 28
Registered: July 2009
Junior Member
Following works:

exec-process "C:\\Windows\\System32\\tasklist.exe" "/FO" "CSV" "/NH" "/FI" "IMAGENAME eq AcroRd32.exe" | get stdout | log


May be arguments were corrupted while being passed to or parsed by cmd?
Re: ECL Command II [message #1717269 is a reply to message #1428650] Fri, 11 December 2015 09:10 Go to previous message
Harshini Garikiparthi is currently offline Harshini GarikiparthiFriend
Messages: 23
Registered: March 2015
Junior Member
Hi , Similar to the above question , I want to replace the arguments given with the command with the variables.
Ex: I have defined $var1 and $var2

I need to give these variables as command argument.

exec-process "FC" $var1 $var2 does'nt work can you please suggest any other way around.

thanks,
Harhsini

Previous Topic:launching AUT using bat file
Next Topic:Procedure tooltip
Goto Forum:
  


Current Time: Thu Mar 28 17:41:17 GMT 2024

Powered by FUDForum. Page generated in 0.02749 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top