Issue
I am having a problem with my bash script. It is producing an error of
curl (6) couldn't resolve host
What have I done wrong?
The following is my bash script.
#!/bin/bash
string="$(mysql -u root -p Company 'select name from HR')"
url="http://www.company.com/company/hr/$string"
curl -F $url
Solution
Try printing out the whole string/url. I believe it should have some problems in it.
Answered By - J eremy Answer Checked By - Robin (WPSolving Admin)