πŸŽ‰ πŸŽ‰ RAPIDMINER 9.10 BETA IS OUT!!! πŸŽ‰πŸŽ‰

GRAB THE HOTTEST NEW BETA OF AI HUB/SERVER, STUDIO, AND RADOOP. LET US KNOW WHAT YOU THINK!

CLICK HERE TO DOWNLOAD

How to use multiple cmd statements in one 'execute program' operator?

llohmannllohmann Member Posts: 1 Newbie
I want to run a cmd statement on the rm machine:

"ssh [email protected] && Password && db2 connect to testdb && db2 terminate"

Is it correct to write it with double &? And does anyone know if there is a limit of commands you can use with one execute program operator?

Thanks in advance!


Answers

  • rfuentealbarfuentealba Moderator, RapidMiner Certified Analyst, Member, University Professor Posts: 555   Unicorn
    Hello @llohmann,

    Whether you can chain or not and the length of the operators depend on whether you're using PowerShell (255 to 65535 chars), Bash (65535 chars on older versions, I think 4 million on the newer ones) or another terminal. If what you want is to execute several commands on top of an ssh connection, that's not the syntax, though. I believe it's "ssh [options] host command".

    On the other hand, I wouldn't do chained operations but rather make a group and write each command on execute commands. Why? Because it helps you debugging and because you can document it better.

    Hope this helps,

    Rod.
Sign In or Register to comment.