this question is probably trivial to most of you but i do not have the answer.
the task is simple...
yank 7 lines of text from one file and paste them to another
so while in command mode i enter
"b7yy and i get 7 lines yanked
exit vi with :q!
open the new file
while in command mode i... (2 Replies)
This is my simple expect scritpt:
#!/usr/bin/expect -f
match_max 100000
set timeout -1
spawn telnet $IP
expect "#"
send -- "shell\r"
expect "*Ready*"
send -- "init\r"
expect "*Ready*"
send -- "readsensor \r"
expect -- "*" <<< Output of this is a 2 digit number
set val... (5 Replies)
Hello everyone!
This is the situation:
I execute this command from a bash script:
telnet 10.99.246.14 6001 >> output.txt
The question is:
How I do to execute this command and empty the buffer when is full?
The script is always running.
Thanks a lot! (2 Replies)
I am trying to use send and receive using expect. the expect_out(buffer) is working fine while it is running it as foreground. But the same script when it is ran as background, the expect_out(buffer) errored out.
Is there any factor influence when we run script in foreground and in background? ... (0 Replies)
Greetings,
Having an issue with the expect_out(buffer). in a foreach loop through some switches I am grabbing some arp table information and writing it out to output files (1 each for each switch looped through).
The first iteration works fine. the second iteration of the loop writes the... (0 Replies)
Hello "expect" experts
I am new at Expect. I have searched for a little while how to capture multiple lines with Expect and I am almost succeeded on that but I don't get all the lines of a command's output that the script executes on a server.
Here is how my script works in a nutshell -
... (6 Replies)
I am trying to read a file via SSH connect and store it to expect_out(buffer). I am a virgin to expect. Help is really appreciated. Wasted almost a day :-(
Code is as follows
expect "system32>"
send "type output.csv";
send "\r";
expect "system32>"
set outcome $expect_out(buffer)... (2 Replies)
Can some one tell me how to flush expect_out(buffer)?
below is my code
expect -re {.*} {}
expect "swpackages>*"
send -i $con "trial.bat \r"
set outcome $expect_out(buffer)
expect "*continue*"
set prevreport $expect_out(buffer)
send "\r \r";
problem is :- I am getting "pre" stuffs... (0 Replies)
I have a code like this :
set ipv6_acl_max_chars test_acl_max_chars123456a789%s%d2345678ww134rt789qa23456789012345%c89012%a56789012x4r67890test_acl_max_chars1234567890.01234aabcdob34567aBC0
spawn telnet $myip
expect "Login:" { send "admin\r" }
expect "Password:" {send "admin\r" }... (0 Replies)
trying to telnet to a device, list the files, and delete them. I can get the script to telnet and log in OK, and even issue the command to list out the files. I can't figure out how to parse the expect_out(buffer) and extract the file name for use in the delete command.
the files list out like... (4 Replies)
Discussion started by: imatinkerer
4 Replies
LEARN ABOUT OPENSOLARIS
ieee80211_input_all
IEEE80211_INPUT(9) BSD Kernel Developer's Manual IEEE80211_INPUT(9)NAME
ieee80211_input -- software 802.11 stack input functions
SYNOPSIS
#include <net80211/ieee80211_var.h>
void
ieee80211_input(struct ieee80211_node *, struct mbuf *, int rssi, int noise);
void
ieee80211_input_all(struct ieee80211com *, struct mbuf *, int rssi, int noise);
DESCRIPTION
The net80211 layer that supports 802.11 device drivers requires that receive processing be single-threaded. Typically this is done using a
dedicated driver taskqueue(9) thread. ieee80211_input() and ieee80211_input_all() process received 802.11 frames and are designed for use in
that context; e.g. no driver locks may be held.
The frame passed up in the mbuf must have the 802.11 protocol header at the front; all device-specific information and/or PLCP must be
removed. Any CRC must be stripped from the end of the frame. The 802.11 protocol header should be 32-bit aligned for optimal performance
but receive processing does not require it. If the frame holds a payload and that is not aligned to a 32-bit boundary then the payload will
be re-aligned so that it is suitable for processing by protocols such as ip(4).
If a device (such as ath(4)) inserts padding after the 802.11 header to align the payload to a 32-bit boundary the IEEE80211_C_DATAPAD capa-
bility must be set. Otherwise header and payload are assumed contiguous in the mbuf chain.
If a received frame must pass through the A-MPDU receive reorder buffer then the mbuf must be marked with the M_AMPDU flag. Note that for
the moment this is required of all frames received from a station and TID where a Block ACK stream is active, not just A-MPDU aggregates. It
is sufficient to check for IEEE80211_NODE_HT in the ni_flags of the station's node table entry, any frames that do not require reorder pro-
cessing will be dispatched with only minimal overhead.
The rssi parameter is the Receive Signal Strength Indication of the frame measured in 0.5dBm units relative to the noise floor. The noise
parameter is the best approximation of the noise floor in dBm units at the time the frame was received. RSSI and noise are used by the
net80211 layer to make scanning and roaming decisions in station mode and to do auto channel selection for hostap and similar modes. Other-
wise the values are made available to user applications (with the rssi presented as a filtered average over the last ten values and the noise
floor the last reported value).
SEE ALSO ieee80211(9)BSD August 4, 2009 BSD