Invoking sql server from UNIX

I would like to invoke a procedure in SQL server which will return some results of a select query from UNIX script. I would like to invoke this procedure and load the data into a flat file in UNIX.

Can you please help? I am not able to find any sample programs in Internet.

Firstly, are you able to connect to SqlServer from Unix?