You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Prashant Kommireddi (JIRA)" <ji...@apache.org> on 2013/02/11 19:41:13 UTC

[jira] [Created] (PIG-3180) Document using shell commands in Pig scripts

Prashant Kommireddi created PIG-3180:
----------------------------------------

             Summary: Document using shell commands in Pig scripts
                 Key: PIG-3180
                 URL: https://issues.apache.org/jira/browse/PIG-3180
             Project: Pig
          Issue Type: Improvement
    Affects Versions: 0.10.0
            Reporter: Prashant Kommireddi
             Fix For: 0.12


This recently came up on the mailing list 
http://mail-archives.apache.org/mod_mbox/pig-user/201302.mbox/%3CCANSvDjrerbmRbTwkpb1B9Es%3DaaN-6kGyw8nwCSNenhnhNo%2BbjA%40mail.gmail.com%3E

Shell commands can be used in pig scripts, for eg to set HOME directory.

{code}
%default HOME `echo \$HOME`
{code}

This feature is very useful and should be documented. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira