I got bitten by this quite recently. The explanation was that each shell.execute operation is complete, in itself, and has no dependency on previous shell.execute operations. As a result, in order to get the “desired” result in the example code, it is necessary to string together multiple shell commands in a single string with command delimiters (commas, semicolons, ???) between them.
I got bitten by this quite recently. The explanation was that each shell.execute operation is complete, in itself, and has no dependency on previous shell.execute operations. As a result, in order to get the “desired” result in the example code, it is necessary to string together multiple shell commands in a single string with command delimiters (commas, semicolons, ???) between them.
— Jim Wagner · May 14, 11:22 AM · #
You use semicolons.
— charles · May 14, 11:35 AM · #