Passpersist Scripts
From Net-SNMP Wiki
Perl
see the simple example in local/passpersisttest
Python
You need to specify unbuffered output for python to work. The first line should look like:
#!/usr/bin/python -u
See also Pass_persist