The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
Answers
yes this behavior is correct. The RapidMiner operator waits until the called program is finished. Otherwise you cannot ensure that you can use the results of the executed command.
And if you just start cmd, this will open a shell which is only terminating when you type exit or close the window. To execute a shell command you have to use the parameters of cmd: "cmd /Q /C dir" for more information, please type cmd /help in a shell.
Greetings,
Sebastian
the problem is that no shell opens - so there is nothing I could close ??? Same behavior btw., if I type "cmd /Q /C dir". The only remedy is to shoot down RM.
Stefan
I will verify that.
Greetings,
Sebastian
I can confirm this problem. We will trace it down as soon as possible. Don't know why this occurs only on Windows 7.
Greetings,
Sebastian
My question ist: Does this problem just occur on Windows 7. I am using Vista and have the same problem as the person above that no shell at all opens when I use the cmd command on the excecute program operator.
What would be the excact syntax for the operator? Would it be "cmd" or 'cmd'? Please do not mind my stupid questions but I belong to the generation who are not really familiar with shells..........
at least under windows 7, this is not a bug, it's a feature!
I can not talk about windows vista, but under windows 7 though the command is executed without opening a shell window.
For example if you execute
cmd /c java -version
you get the output in the log window:
The instructions for windows users in the operator description were a little bit confusing and partly wrong. I just corrected it, so with the next update it will be correct.
@Manitou
Try this process here, does it work under vista?
It should print the java version in you log and open the notepad editor. Ciao Sebastian
cheers, indeed it did open notepad as well told me in the log window of RM which Java version curretly is installed on my machine. So I can confirm that it that the things it is supposed to do under windows vista too.
Thanks.
I would like to execute a command line program in windows 7 however my directory tree has spaces in it.
I have tried all versions of quotation of the command line and nothing seems to work. How do I send quote characters to the java interpreter?
Thanks,
-Gagi
did you try
cmd /c C:\"Program Files"\"Internet Explorer"\iexplore.exe
?
Ciao Sebastian
Ps. For a process search for "Execute Program on Windows 7" in the MyExperiment" plugin,
Example Below (I'm running Windows 7 x64)
Start a program with 3 options and two file names. Notice the double backslash!? Why does this work?
cmd /c start program_name -a 1 -b 2 -c 3 C:\Users\gagi\Work\\"Folder Name"\Data\A.dat C:\Users\gagi\Work\\"Folder Name"\Data\B.dat
I'm glad it works but still have no idea why. Also adding a slash before the end quote makes it fail parsing.
-Gagi