#!/bin/ksh ssid=`iwgetid -s` if [ $ssid == "my_network_ssid" ] then cd /home/user/MyDocs/scripts list=`ls *.sh` for script in $list do $script done