I’m having a little bit of trouble with the shell command. The problem is I don’t understand the bash shell well enough so if I sound like a babbling fool here kindly correct me.
I am able to hit a remote system by opening up a terminal on my mac and typing in the following command:
Everything works just fine.
But then I tried to do so in xojo:
dim myShell as new Shell
dim myCURL as string ="/usr/bin/curl "
myCURL=myCURL+"https://api.someurl.com \\ "+endofline+" -u abcdefg123456789"
And I get back a rather confusing verbose error, The meat of which is:
curl: (6) Could not resolve host: -u
curl: (6) Could not resolve host: abcdefg123456789
I did notice that somehow the bash shell on my Mac is breaking the command into two lines;
Then it (the bash shell) spits out a ">"
And it accepts the second line: -u abcdefg123456789
What am I missing here?