I'm trying to find a command to make a shared folder with the terminal to integrate in a shell script. But i couldn't find anything for making a shared folder on a MAC OS X client. Can you guys help me with this?
Take a look at this article by Mike Barron, NetBoot Part 4.
In the article Mike walks through the dscl commands he used to share folders on Mac OS X for the Apple Filing Protocol (AFP) and Server Message Block (SMB) protocols: