It's unclear to me what precisely you mean by "shell scripting", so sorry if this is off point. If you mean sending an automated series of commands to the system shell, there a a few commands you can use, depending on what you want back. You probably want system, though depending on what precisely you are trying to do, you may want to use exec or backticks instead...