This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function sharif_login | |
{ | |
curl -d "username=$1&password=$2" -X POST "https://net2.sharif.edu/login" > /dev/null | |
curl -s https://net2.sharif.edu/status | grep -o '<td>.*</td>' | |
sleep 1s # To See login status | |
} | |
function sharif_ip | |
{ | |
# from ping net2.sharif.edu | |
# this is written since sometimes DNS server doesn't work! |