That issue has absolutely nothing to do with AppleScript -- it's a Shell Script problem.
-Chris
For more information, see the wiki Searching the Forum for Answers section.