03-28-2014
Doubt on setserial command
My understanding is that "setserial" command is used to change the attributes of
serial device files (ttyS) managed by the linux serial driver(serial module).
My doubt is, using setserial command is it possible to change the attributes of other serial device files managed by a different driver (different module)?
Please let me know...
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hello,
I am encountering problems when I use termios structure to set my
baud rate of serial port. Pls give me a way by which I can set
the same using a different command (1 Reply)
Discussion started by: zaheer031
1 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I am trying to understand a script and found a line as follows:
tr '\211\233\240' '\040' < $IN_FILE | tr -cd '\11\12\15\40-\176' > $TEMP_FILE
Can any one explain the above line .. What are they trying to translate using the tr command.. I have not used tr command.. so feeling little bit... (2 Replies)
Discussion started by: risshanth
2 Replies
3. Shell Programming and Scripting
Hello
i am new shell scripting.
I have a file like this,
$ cat myfile
;/abc/abc.cpp@@/main/1;xyz
;/abc/abc.cpp@@/main/2;usr2
;/abc/abc.cpp@@/main/1;abc
;/abc/abc.cpp@@/main/2;usr2
;/abc/abc.cpp@@/main/1;usr1
when i grep the file.
$ grep "abc" myfile... (8 Replies)
Discussion started by: tsaravanan
8 Replies
4. Shell Programming and Scripting
Hi linux experts,
I am using ftp command as :
ftp hostname
but it says unable to connect,
if i am using the same in sftp it is working :
sftp hostname
it works.
so please help me how should i use ftp command. (8 Replies)
Discussion started by: salil2012
8 Replies
5. UNIX for Dummies Questions & Answers
Hello sir,
We can archive a file by :tar -cvf a.tar a.txt
AND
We can get it back by : tar -xvf a.tar
I want to save the file extracted from a.tar into a specific location.How can I give the destination path in the above command ??? (2 Replies)
Discussion started by: nsharath
2 Replies
6. UNIX for Dummies Questions & Answers
All,
I have doubts related to free command in Linux.
My environment is RHEL5 - 64 bit OS
We have 2 node RAC database installed
Query output from node 1 is
Free -g
Total used free shared buffers cached
Mem: 32 25 7 0 5 15
-/+ buffers/cache: 4 27
Swap: 30 0 30
Query... (2 Replies)
Discussion started by: user7509
2 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I'm trying to develop an application to work with serial infra-red module, but I'm having difficulties to even get my module started. My HW is Beagleboard, which has 1 UART serial port, normally used for console, which I have disabled (I re-created the boot.scr, without the console... (0 Replies)
Discussion started by: julumme
0 Replies
8. Shell Programming and Scripting
Hi,
I almost always use back quotes in scripts to assigin output of a command to a variable.
eg: file=`basename a/b/c/d/file`
year_mon=`date +%Y%m`
But the same can be achieved like:
file=$(basename a/b/c/d/file)
year_mon=$(date +%Y%m)
I would like to know if there is... (3 Replies)
Discussion started by: wanderingmind16
3 Replies
9. UNIX for Dummies Questions & Answers
dear users and experts,
i am stuck withis command and i am unable to understand what is it doing??
ls -d * (7 Replies)
Discussion started by: seshank
7 Replies
10. Shell Programming and Scripting
Hi all,
I need to find the line by using grep command with the two occurence of word in the same line. I tried the below example it prints the word choice.
cat nohup.out
Dictionary utl is completed.
file is completed.
Dictionary file is completed.
grep 'Dictionary\|file'... (0 Replies)
Discussion started by: arun888
0 Replies
LEARN ABOUT LINUX
ldattach
LDATTACH(8) Linux Programmer's Manual LDATTACH(8)
NAME
ldattach - attach a line discipline to a serial line
SYNOPSIS
ldattach [-dhV78neo12] [-s speed] [-i iflag] ldisc device
DESCRIPTION
The ldattach daemon opens the specified device file (which should refer to a serial device) and attaches the line discipline ldisc to it
for processing of the sent and/or received data. It then goes into the background keeping the device open so that the line discipline
stays loaded.
The line discipline ldisc may be specified either by name or by number.
In order to detach the line discipline, kill(1) the ldattach process.
With no arguments, ldattach prints usage information.
LINE DISCIPLINES
Depending on the kernel release, the following line disciplines are supported:
TTY(0) The default line discipline, providing transparent operation (raw mode) as well as the habitual terminal line editing capabilities
(cooked mode).
SLIP(1)
Serial Line IP (SLIP) protocol processor for transmitting TCP/IP packets over serial lines.
MOUSE(2)
Device driver for RS232 connected pointing devices (serial mice).
PPP(3) Point to Point Protocol (PPP) processor for transmitting network packets over serial lines.
STRIP(4)
AX25(5)
X25(6) Line driver for transmitting X.25 packets over asynchronous serial lines.
6PACK(7)
R3964(9)
Driver for Simatic R3964 module.
IRDA(11)
Linux IrDa (infrared data transmission) driver - see http://irda.sourceforge.net/
HDLC(13)
Synchronous HDLC driver.
SYNC_PPP(14)
Synchronous PPP driver.
HCI(15)
Bluetooth HCI UART driver.
GIGASET_M101(16)
Driver for Siemens Gigaset M101 serial DECT adapter.
PPS(18)
Driver for serial line Pulse Per Second (PPS) source.
OPTIONS
-d | --debug
Causes ldattach to stay in the foreground so that it can be interrupted or debugged, and to print verbose messages about its
progress to the standard error output.
-h | --help
Prints a usage message and exits.
-V | --version
Prints the program version.
-s value | --speed value
Set the speed of the serial line to the specified value.
-7 | --sevenbits
Sets the character size of the serial line to 7 bits.
-8 | --eightbits
Sets the character size of the serial line to 8 bits.
-n | --noparity
Sets the parity of the serial line to none.
-e | --evenparity
Sets the parity of the serial line to even.
-o | --oddparity
Sets the parity of the serial line to odd.
-1 | --onestopbit
Sets the number of stop bits of the serial line to one.
-2 | --twostopbits
Sets the number of stop bits of the serial line to two.
-i value | --iflag [-]value{,...}
Sets the specified bits in the c_iflag word of the serial line. Value may be a number or a symbolic name. If value is prefixed by
a minus sign, clear the specified bits instead. Several comma separated values may be given in order to set and clear multiple
bits.
SEE ALSO
inputattach(1), ttys(4)
AUTHOR
Tilman Schmidt (tilman@imap.cc)
AVAILABILITY
The ldattach command is part of the util-linux package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/.
Linux 2.6 14 February 2010 LDATTACH(8)