--- On Sat, 4/18/09, Aashish Sharma <[email protected]> wrote:

> From: Aashish Sharma <[email protected]>
> Subject: [Simple-evcorr-users] Output of context to a script
> To: [email protected]
> Date: Saturday, April 18, 2009, 12:55 AM
> Hello: 
> 
> Is there a way I can send the contents of a context to a
> script for further processing. 
> 
> I am trying the following and works: 
> 
> context= create MY_CONTEXT 30 ( report MY_CONTEXT /bin/mail
> -s "mailing context" [email protected]
> ) 
> 
> but when I try to send contents of MY_CONTEXT to a script I
> don't see anything in my script in $ARGV[0] or [1] .. : 
> 
> context= create MY_CONTEXT 30 ( report MY_CONTEXT
> /usr/local/scripts/myscript.pl ) 
> 
> Am I missing something here ? 

The content is *not* passed in command line, but rather written to the standard 
input of the script. That's also stated in the man page, see the 'report' 
action description. Using standard input is much safer (there is no danger that 
shell metacharacters get interpreted), and it allows for sending much more data 
to the script (there is certainly a limit for command line length which is 
probably not too high).
br,
risto

> 
> Thanks for your help in advance.
> 
> Aashish Sharma 
> 
> 
> ------------------------------------------------------------------------------
> Stay on top of everything new and different, both inside
> and 
> around Java (TM) technology - register by April 22, and
> save
> $200 on the JavaOne (SM) conference, June 2-5, 2009, San
> Francisco.
> 300 plus technical and hands-on sessions. Register today. 
> Use priority code J9JMT32. http://p.sf.net/sfu/p
> _______________________________________________
> Simple-evcorr-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users
> 


      

------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Simple-evcorr-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users

Reply via email to