I don't think you can, especially not with the same delimiter for them all. Perl has support for combining here documents but you still can't nest them there, only serialize.
But this is Perl only as far as I know.
What do you mean by nesting these, and how do you expect to achieve three of the "quiz" processes? Do you mean a pipeline, by any chance?
That's still only one of each (pipes the output as quiz as the input to qtp, then the output from that as input to qdesign.)
Last edited by era; 09-09-2008 at 03:04 PM..
Reason: Pipeline speculation
My supervisor keep getting "stdin not tty" or something like that when he pipe or redirect input into a program. Others
don't seem to get this message. Is there some way I can help him to fix or turn this off?
Thx in advance (1 Reply)
can you redirect STDIN with command arguments?
I have tried this approach:
# ./script -option <argument1> <argument2> 0<$2
# $2: ambiguous redirect
Is this possible? (4 Replies)
Can someone tell me how to enter inline parameters with script call? This is a little urgent so some help would be highly appreciated.
Thanks a lot.
Indira (2 Replies)
For windows was pretty simple to redirect the std in a and out of a
child process for "cmd.exe " command prompt terminal to a socket using connected pipes passed to a new process in the STARTUPINFO structure.
BOOL b = ::CreatePipe((LPHANDLE)h_stdInRead,(LPHANDLE)hsdtInWriteTmp, &SecAttrib,... (1 Reply)
Hi:
I have the next script on ksh
#!/usr/bin/ksh
cd $FUENTES
qdesign <<-!
\$/opt/cognos/ph843e/bin/qtp <<-!
\$/opt/cognos/ph843e/bin/quiz <<-!
!
!
!
This script is very simple, i want to nest three process quiz into qtp, and this into qdesign.
When I run it , i receive the... (5 Replies)
I am unable to use STDIn redirection with < (commands)
When I do the following, both approaches work and give the same results:
1.
$ printf "aaa\nbbb\n" > file1
$ printf "111\n222\n" > file2
$ cat file1 file2
aaa
bbb
111
2222.
$ cat <(printf "aaa\nbbb\n") <(printf "111\n222\n")
aaa... (8 Replies)
i need to log the feedback from the ftp server as i'm performing some deletes.
the only way i know of to do this is with the inline redirect << EOF
... but from there to the closing EOF, it's like i'm at the ftp command prompt, so I don't know how to have ksh script logic in there
I have an... (3 Replies)
Hi,
i know how to
a) redirect stdout and stderr to one file,
b) and write to two files concurrently with same output using tee command
Now, i want to do both the above together.
I have a script and it should write both stdout and stderr in one file and also write the same content to... (8 Replies)
Looking for the proper way to bring a string into the stdin. I have a string that I would like to grep and awk. Each have to be run separately, not piped together. So far, the only way I could figure out how is to echo the string and pipe it:
echo 'This is my string' | grep my (3 Replies)
Hi there,
I need to execute a command in the bash. The program prints some standard (output and) error and then wants the user to choose one of several options and type the according input. I am trying to solve this issue in a bash script but also running into some circular dependency. How can I... (7 Replies)
Discussion started by: fredestet
7 Replies
LEARN ABOUT OSX
netsnmp_serialize
serialize(3) net-snmp serialize(3)NAME
serialize - Calls sub handlers one request at a time.
Functions
netsnmp_mib_handler * netsnmp_get_serialize_handler (void)
returns a serialize handler that can be injected into a given handler chain.
int netsnmp_register_serialize (netsnmp_handler_registration *reginfo)
functionally the same as calling netsnmp_register_handler() but also injects a serialize handler at the same time for you.
int netsnmp_serialize_helper_handler (netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info
*reqinfo, netsnmp_request_info *requests)
Implements the serial handler.
void netsnmp_init_serialize (void)
initializes the serialize helper which then registers a serialize handler as a run-time injectable handler for configuration file use.
Detailed Description
Calls sub handlers one request at a time.
This functionally passes in one request at a time into lower handlers rather than a whole bunch of requests at once. This is useful for
handlers that don't want to iterate through the request lists themselves. Generally, this is probably less efficient so use with caution.
The serialize handler might be useable to dynamically fix handlers with broken looping code, however.
Function Documentation
netsnmp_mib_handler* netsnmp_get_serialize_handler (void)
returns a serialize handler that can be injected into a given handler chain.
Definition at line 31 of file serialize.c.
References netsnmp_create_handler(), and netsnmp_serialize_helper_handler().
Referenced by netsnmp_init_serialize(), and netsnmp_register_serialize().
void netsnmp_init_serialize (void)
initializes the serialize helper which then registers a serialize handler as a run-time injectable handler for configuration file use.
Definition at line 93 of file serialize.c.
References netsnmp_get_serialize_handler(), and netsnmp_register_handler_by_name().
int netsnmp_register_serialize (netsnmp_handler_registration * reginfo)
functionally the same as calling netsnmp_register_handler() but also injects a serialize handler at the same time for you.
Definition at line 40 of file serialize.c.
References netsnmp_get_serialize_handler(), netsnmp_inject_handler(), and netsnmp_register_handler().
Referenced by netsnmp_register_instance(), netsnmp_register_read_only_instance(), netsnmp_register_read_only_scalar(),
netsnmp_register_scalar(), and netsnmp_register_scalar_group().
int netsnmp_serialize_helper_handler (netsnmp_mib_handler * handler, netsnmp_handler_registration * reginfo, netsnmp_agent_request_info *
reqinfo, netsnmp_request_info * requests)
Implements the serial handler.
Definition at line 48 of file serialize.c.
References netsnmp_call_next_handler(), netsnmp_request_info_s::next, and NULL.
Referenced by netsnmp_get_serialize_handler().
Version 5.4.2 5 Sep 2008 serialize(3)