8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a file: file.txt, which contains the following data in it.
This is a file, my name is Karl, what is this process, karl is karl junior, file is a test file, file's name is file.txt
My name is not Karl, my name is Karl Joey
What is your name?
Do you know your name and... (3 Replies)
Discussion started by: anuragpgtgerman
3 Replies
2. Shell Programming and Scripting
I dont want to print the output in a EMC VMAX storage if it says "The specified device was not found", however it is not letting me do it.
I am trying to run this command:
symaccess -sid xxxx list -type storage -devs 1234
output:
The specified device was not found
I just want the script... (1 Reply)
Discussion started by: prodigy06
1 Replies
3. Shell Programming and Scripting
I am using ksh and looking for a simple way to print the entire row when a specific column contains specific infomation. I know I can use grep to find the information however I can not specify the column.
File test.txt contents:
Abc,223,223,223
efg,354,224,774
hij,354,2230,773... (5 Replies)
Discussion started by: oldman2
5 Replies
4. UNIX for Dummies Questions & Answers
Hi Guys,
I have two files:
f1:
A B C D E F G H
f2:
A X Y Z
f1 has 48000 lines, and f2 has 68. I have been matching f1 $3 to f2 $1, and getting f3:
A A B C D E F G
I would like f3 too look like this:
A X Y Z A B C D E F G (2 Replies)
Discussion started by: heecha
2 Replies
5. Shell Programming and Scripting
Hi all , i know i ask a lot of question but these are really hard to solve and important question. I send two scripts:
expect.sh:
#!/usr/local/bin/expect
spawn ssh root@172.30.64.163
expect "login:"
send "root\n"
expect "password:"
send "root\n^M"
interact
and
son.sh:
... (2 Replies)
Discussion started by: fozay
2 Replies
6. UNIX for Dummies Questions & Answers
Hi
I have 2 files
file1
12312341231612634
34534368463786347
23472364287687263
23472357841007237
file2
12123561235176351*dhfsdhfh*2347623462*sdfjshehweu*123651235*sdgfsgfsy*23237346*
23472357841007237*defsjdf*12378234*hsdhfsdhgfsh*12837238947*dsjshgdfs*2348972348*... (1 Reply)
Discussion started by: unxusr123
1 Replies
7. UNIX for Dummies Questions & Answers
Hi
I was working on a shell script with randomly shows a page of text from a randomly selected topic .As soon as the page is displayed it callers a timer script which keeps on running indefinitely until the timer script is killed by the user.
This is where I have the problem,if I press... (2 Replies)
Discussion started by: mervin2006
2 Replies
8. UNIX for Dummies Questions & Answers
Hello all,
I am trying to hit the internet from my unix box (sun 250e), but cannot reach any external IP addresses.
I've updated the hosts and resolv.conf files with what i assume is the right information, but nothing happens (after reboot). In the hosts file, i've entered the Router, PDC,... (4 Replies)
Discussion started by: colesy
4 Replies
BK(4) Kernel Interfaces Manual BK(4)
NAME
bk - line discipline for machine-machine communication (obsolete)
SYNOPSIS
Not currently supported under 2.11BSD
DESCRIPTION
This line discipline provides a replacement for the old and new tty drivers described in tty(4) when high speed output to and especially
input from another machine is to be transmitted over a asynchronous communications line. The discipline was designed for use by the Berke-
ley network. It may be suitable for uploading of data from microprocessors into the system. If you are going to send data over asynchro-
nous communications lines at high speed into the system, you must use this discipline, as the system otherwise may detect high input data
rates on terminal lines and disables the lines; in any case the processing of such data when normal terminal mechanisms are involved satu-
rates the system.
The line discipline is enabled by a sequence:
#include <sgtty.h>
int ldisc = NETLDISC, fildes; ...
ioctl(fildes, TIOCSETD, &ldisc);
A typical application program then reads a sequence of lines from the terminal port, checking header and sequencing information on each
line and acknowledging receipt of each line to the sender, who then transmits another line of data. Typically several hundred bytes of
data and a smaller amount of control information will be received on each handshake.
The old standard teletype discipline can be restored by doing:
ldisc = OTTYDISC;
ioctl(fildes, TIOCSETD, &ldisc);
While in networked mode, normal teletype output functions take place. Thus, if an 8 bit output data path is desired, it is necessary to
prepare the output line by putting it into RAW mode using ioctl(2). This must be done before changing the discipline with TIOCSETD, as
most ioctl(2) calls are disabled while in network line-discipline mode.
When in network mode, input processing is very limited to reduce overhead. Currently the input path is only 7 bits wide, with newline the
only recognized character, terminating an input record. Each input record must be read and acknowledged before the next input is read as
the system refuses to accept any new data when there is a record in the buffer. The buffer is limited in length, but the system guarantees
to always be willing to accept input resulting in 512 data characters and then the terminating newline.
User level programs should provide sequencing and checksums on the information to guarantee accurate data transfer.
SEE ALSO
tty(4)
DIAGNOSTICS
None.
BUGS
The Purdue uploading line discipline, which provides 8 bits and uses timeout's to terminate uploading should be incorporated into the stan-
dard system, as it is much more suitable for microprocessor connections.
4th Berkeley Distribution January 27, 1996 BK(4)