01-10-2018 07:27 PM
I am validating SAS Web URL by using below script .
sample=`curl -ksSf -u sasdemo@saspwass https://sample.com:8343/SASSTUDIO -v`
kill -0 $sample > /dev/null 2>&1
if [ $? -eq 0 ]; then
echo " Web URL is connecting "
echo " $sample "
The URL is connecting but even if i give wrong password it is showing as URL is connected. After validations i observed that curl command is checking till SASLogon page but not actual URL.
Can anyone help me in validating the SAS Web URL's with usernames and passwords in linux.
Thanks & Regards,
01-10-2018 07:51 PM
AFAIK, since SAS Studio has a logon page where you have to enter username and password, the way you have executed curl won't work. I am not sure of the solution and would leave it to the members to answer your question. Thanks!
01-10-2018 07:57 PM