Re: returning multi-line string via pass through

Christopher Fitzner <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
thanks for your response.

I was looking at that "zap the linefeed" section of the code earlier
and couldn't figure out why that would be truncating to the first
line.  I see now that just before that the data is being read with
fgets which will do this.  It's easier to work around this limitation
on my end but if you think it's a patch that may be desirable to
integrate into the code base I don't mind working on it.

thanks again!

Chris

On Mon, Mar 15, 2010 at 2:40 AM, Dave Shield <[email protected]> wrote:
> On 14 March 2010 20:02, Christopher Fitzner <[email protected]> wrote:
>> I was wondering if anyone knows if it's possible to send a multiline
>> string back from an snmp pass through script.
>
> No - it's explicitly defined in the manpage,
> and coded to return a single line.
>
> If you want to try changing this, look in the file mibgroup/ucd-snmp/pass.c
> around line 412   ("zap the linefeed")
>
> Dave
>

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.