Comments (3)
Hello.
I don't think you can have a "line break" in your command-line, in the sense of a line-feed (0x0A
) or carriage-return (0x0D
) character. Yes, in Batch files you can put a ^
symbol at the end of the line, which tells the Batch interpreter "command continues in next line". But this does not put a "line break" in the command-line! It rather concatenates several lines from your Batch file to a single command-line. This happens in Batch interpreter. And then the command-line, as a whole, will be passed to the program.
You can easily verify this with the following test program I have attached:
args.2018-12-26.zip
Above program does nothing but print all command-lin arguments, as they arrive at main()
function.
Regards
MuldeR
from mparallel.
Yes, exactly. Is it possible to have that kind of flexibility to concatenate multiple lines within the enclosed quote of --pattern ?
from mparallel.
Hello.
Again, this is not about MParallel, but all about how Windows' Batch interpreter (cmd.exe
) assembles multiple lines to a single command, when you put a ^
char at the end of a line in a Batch file.
It appears that, within a quoted string, Batch does not allow you to put a ^
char in order to make the command continue on next line! Or, in other words, you apparently can not make a single quoted string continue in the next line. You can easily confirm this behavior with args tool from my previous post:
args.exe "aaaa^
bbbb"
This does not work 😠
You would expect that the the single argument string aaaabbbb
is sent to args.exe. But, in fact, the argument string aaaa^
is passed to args.exe, whereas bbbb
is executed as a separate command!
Args [Dec 26 2018]
argv[0] = "args.exe"
argv[1] = "aaaa^"
'bbbb"' is not recognized as an internal or external command,
operable program or batch file.
So, obviously, all that you can do is this:
args.exe "aaaa" ^
"bbbb"
But then, of course, you will have two separate argument strings (command-line options):
Args [Dec 26 2018]
argv[0] = "args.exe"
argv[1] = "aaaa"
argv[2] = "bbbb"
Then again, I have no clue why you would need the pattern string to span multiple lines ❓
You could always do something like this with Batch syntax:
set "MY_PATTERN=aaaa"
set "MY_PATTERN=%MY_PATTERN% bbbb"
set "MY_PATTERN=%MY_PATTERN% cccc"
MParallel.exe --pattern="%MY_PATTERN%" [...]
...which, of course, is equivalent to:
MParallel.exe --pattern="aaaa bbbb cccc" [...]
Regards
MuldeR
from mparallel.
Related Issues (8)
- in long command strings, 8,262th character consistently missing HOT 5
- Process creation has failed: Access denied. HOT 5
- Feature Request: ETA HOT 1
- Is there a way to add new jobs on the fly? HOT 8
- Request for Feature to Close the Mparallel in between HOT 3
- Feature run as system/admin/etc HOT 2
- file path must be ascii ? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mparallel.