hiddenpremise
May 26, 2009, 03:53 PM
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
BASEURL="http://isis/db.php?compname="
COMPNAME= /usr/sbin/networksetup -getcomputername
FINAL= ${BASEURL}${COMPNAME}
curl $FINAL
This is the output I get
testdb.sh: line 4: http://isis/db.php?compname=: No such file or directory
Any ideas?
This is what I wrote
BASEURL="http://isis/db.php?compname="
COMPNAME= /usr/sbin/networksetup -getcomputername
FINAL= ${BASEURL}${COMPNAME}
curl $FINAL
This is the output I get
testdb.sh: line 4: http://isis/db.php?compname=: No such file or directory
Any ideas?
