Topic: Express generator running on Zorin (Linux)
Hi,
Got a small issue, managed eventually to get powershell running, with Node js and express generator installed. For some reason if I call a script such as get data in the format of: -
ITLE Data Downloader
node .\bin\fetch.js ^
--fx-rates true ^
--symbols EURUSD USDJPY GBPUSD ^
--periods M1 M5 M15 M30 H1 H4 D1 ^
--max-bars 200000 ^
--time-zone 0
pause
I get an error of PS /home/andrew/express-generator> ./updatedata.ps1 ParserError: /home/andrew/express-generator/updatedata.ps1:2
Line |
2 | -- fx-rates true ^
| ~
| Missing expression after unary operator '--'.
However if I run like this from another ps script it works "# Fetch Data BlackBull
node ./bin/fetch.js --fx-rates true --symbols EURUSD USDJPY GBPUSD --periods M1 M5 M15 M30 H1 H4 D1 --max-bars 200000 --time-zone +2 --server BlackBull
pause
So I am thinking its an issue with new lines or carriage returns, I've tried various delimeters however if all the command string is not on a single line it will error.
Any ideas to help?
Best wishes,
Andrew.