I am trying to take my computer's name and pass it in the query line of a url. So far I can get the computer name, but I can't get the URL to assign to a variable.
This is what I wrote
This is the output I get
Any ideas?
This is what I wrote
Code:
BASEURL="http://isis/db.php?compname="
COMPNAME= /usr/sbin/networksetup -getcomputername
FINAL= ${BASEURL}${COMPNAME}
curl $FINAL
This is the output I get
Code:
testdb.sh: line 4: http://isis/db.php?compname=: No such file or directory
Any ideas?