Sybase Connectivity Check through Shell Script

Hi,

I need to check the sysbase database connectivity through the Unix Shell Script. Can you help me on the how to write the script to test the sysbase database connection.

Thanks in Advance
Nandha