NG_ECHO(4) BSD Kernel Interfaces Manual NG_ECHO(4)NAME
ng_echo -- netgraph echo node type
SYNOPSIS
#include <netgraph/ng_echo.h>
DESCRIPTION
The echo node type reflects all data and control messages back to the sender. This node type is used for testing and debugging.
HOOKS
A echo node accepts any request to connect, regardless of the hook name, as long as the name is unique.
CONTROL MESSAGES
This node type supports only the generic control messages. Any other control messages are reflected back to the sender.
SHUTDOWN
This node shuts down upon receipt of a NGM_SHUTDOWN control message, or when all hooks have been disconnected.
SEE ALSO netgraph(4), ng_hole(4), ngctl(8)HISTORY
The ng_echo node type was implemented in FreeBSD 4.0.
AUTHORS
Julian Elischer <julian@FreeBSD.org>
BSD January 19, 1999 BSD
Check Out this Related Man Page
NG_HOLE(4) BSD Kernel Interfaces Manual NG_HOLE(4)NAME
ng_hole -- netgraph discard node type
SYNOPSIS
#include <sys/types.h>
#include <netgraph/ng_hole.h>
DESCRIPTION
The hole node type silently discards all data and control messages it receives. This type is used for testing and debugging.
HOOKS
A ng_hole node accepts any request to connect, regardless of the hook name, as long as the name is unique.
CONTROL MESSAGES
This node type supports the generic control messages, plus the following:
NGM_HOLE_GET_STATS
This command takes an ASCII string argument, the hook name, and returns the statistics associated with the hook as a struct
ng_hole_hookstat.
NGM_HOLE_CLR_STATS
This command takes an ASCII string argument, the hook name, and clears the statistics associated with the hook.
NGM_HOLE_GETCLR_STATS
This command is identical to NGM_HOLE_GET_STATS, except that the statistics are also atomically cleared.
SHUTDOWN
This node shuts down upon receipt of a NGM_SHUTDOWN control message, or when all hooks have been disconnected.
SEE ALSO netgraph(4), ng_echo(4), ngctl(8)HISTORY
The ng_hole node type was implemented in FreeBSD 4.0.
AUTHORS
Julian Elischer <julian@FreeBSD.org>
BSD May 19, 2004 BSD
hi .
I'm trying to write the following line in csh :
echo "abc=$(AA)" >> $filename
and I get "variable syntax" ... what's the problem ?
How can I write $ ? not in the meanning of a file pointer .
thanks , Eyal Hegamal . (7 Replies)
how to print 3 backslah using Unix AIX,
i have try in my fedora and AIX,both give dirrent output for same echo statment
test.sh
sed -e 's/\(\)/\\\1/g' -e 's/\$?/\\$?/g' -e 's/\$#/\\$#/g' -e 's/^/echo "/g' -e 's/$/ "/g' xMNBDF070 > xMNBDF070_test
xMNBDF070
sed -e "s/'/\\\'/g" -e... (8 Replies)
hello ,
I want the output as
Let the script is as below
first=second
second=third
My requirement is I want the output as fourth through $first
i am doing
echo ""`echo "echo $"$""$first""""`""
its giving echo $second but i want ouput as third (9 Replies)
Hi,
I've set up a script so that a user answers questions, and then these answers come back onto the screen accompanied by text that I've echoed. Is there a way of putting this into a new file?
Thanks (7 Replies)
Hello,
I have written the script below to extract specific data from a text file and then use the data extracted as parameters for another shell script call 'loto_tsim'.
Everytime I run my script it complains about the 'echo' line. Am I missing something? I have spent hours and still cannot solve... (10 Replies)
Hi All,
Need help in resoving the issue . Can anyone let me know how to get fix length using unix shellscript.
For Ex: echo "NUMBER OF RECORDS "${NO_OF_ROWS}"\nFILE CREATION DATE&TIME "${PROD_DT}"
output should be :
NUMBER OF RECORDS 2546
CREATIN DATE&TIME 2009-12-01
Each... (14 Replies)
Hi I am new to shell scripting. I am using a shell script to create a SQL script file and then call it as well. The created SQL script file has calls to 2 other sql script file, as well as compile and execute a procedure. all this works fine. I am getting some simple errors. My code is as below
... (8 Replies)
Hello Everyone.
I am trying to bold, blink, italicise words using echo command. As per the research I did, it says to use the following escape code to get the effects.
#!/bin/bash
clear
echo -e "\033
However when I am compiling I am not getting the desired effect.
Can anyone... (7 Replies)
#!/usr/bin/ksh
var1="Hi World"
var2="Morning"
var3=$(echo "$var1" \n "$var2")
echo $var3
var3=$(printf "$var1 \n $var2")
echo $var3
Output
Any way to get
in my $var3 ? (7 Replies)
I am using echo as follows
echo -n "arg_path = echo $0:h = $arg_path"
which produces
arg_path = echo /home/chrisd/tatsh/trunk/hstmy/bin/csh = /home/chrisd/tatsh/trunk/hstmy/bin/csh
However I want to get
arg_path = echo $0:h = /home/chrisd/tatsh/trunk/hstmy/bin/csh (6 Replies)
i have a script that has many lines similar to:
echo $var | awk -F"--" '{print $2}'
as you can see, two commands are being run here. echo and awk.
id like to combine this into one awk statement.
i tried:
awk -F"--" "BEGIN{print $var; print $2}"
but i get error messages. (10 Replies)
My current line command is as follows:
echo -n "text: " ; grep "blah text" ../dir1/filename | wc -l
The output to the screen is as needed, but how do I print to a text file? (9 Replies)
Hi Team,
Need a small help. I want to format my echo o/p. let say
echo " helo helo helo helo helo helo helo helo helo helo helo helo helo helo helo helo helo helo helo "
I want o/p to be displayed in below format
helo helo helo helo helo helo helo helo helo helo helo helo... (6 Replies)
Hi guys...
Sometime ago I said I was going to attempt an Android project.
I got my phone for XMAS and after installing a terminal program I realised how limited the command line is.
I do NOT intend to __root__ the phone at this point but I can read and write to certain folders.
The biggest... (14 Replies)
Hi everyone,
I'm executing a shell script and one of the commands is creating a file with text via echo.
However, if the text within echo has "\t" or similar, it automatically translates it into a TAB character, same goes for other special characters.
I know that if I put another "\"... (7 Replies)