12-04-2012
Can we see the code for the serial demo? Perhaps it does something odd like try to open the device twice. The behavior of that would be potentially different on different platforms.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Dear friends,
I am transferring some files to a windows system from Unix m/c thru FTP Script given below.
echo "open $host
quote USER $userid
quote PASS $pwd
$verbose
$type
cd $dir
bin
put $file
close
quit"|$ftp... (0 Replies)
Discussion started by: Vijayakumarpc
0 Replies
2. Linux
I hope to post in the right forum, otherwise I apologize for this.
if a MMU exception is caused by a process which tries to access to other memory segment (out of its own address space) what the kernel does in this case ?
maybe kernel kills the "bad" process ? (2 Replies)
Discussion started by: Puntino
2 Replies
3. Shell Programming and Scripting
Hi,
I am trying to understand the significance of the special variables $!,$@ and $? in perl. I have a code block as follows:
eval {
Code Segment 1:
#authenticating to the remote server
$ftpobj -> login($username,$password) or die "Can't login to $remote_host";
... (12 Replies)
Discussion started by: DILEEP410
12 Replies
4. Shell Programming and Scripting
Hi,
I have written a script to load csv files into a mysql database, however, i would like for the shell script to exit in the event of an error (missing file, load error etc.) - currently if an error is encountered the next statement is processed - This is how i am loading the csv scripts
... (5 Replies)
Discussion started by: bertpereira
5 Replies
5. Shell Programming and Scripting
Sometimes when I try to use curl to upload to an ftp server, I get the message:
$curl -T file.wmv ftp.eu.filesonic.com --user user:password
curl: (8) Got a 421 ftp-server response when 220 was expected
How do I get the script to try again if I get the message curl: (8)? (2 Replies)
Discussion started by: locoroco
2 Replies
6. Programming
Hello All,
I have a question ....which I am totally confused about!
If I have a fxn foo in a program which returns a logical value. But it has a posssiblity to throw some exception.
Now my exception handler returns a value as a string stating why the exception occured.
But my... (1 Reply)
Discussion started by: mind@work
1 Replies
7. Solaris
Hi all,
An application works well under 2.6 but under 7 it gives TEXT_IO exceptions. (Is_Open, Check_Is_Open, Get_Line procedures). Any idea?
Regards (3 Replies)
Discussion started by: endoavour
3 Replies
8. Shell Programming and Scripting
I have following file:
NAME=ora.DG1.svc
TYPE=ora.service.type
CARDINALITY_ID=1
TARGET=ONLINE
STATE=ONLINE
NAME=ora.orlene.DG2.svc
TYPE=ora.service.type
CARDINALITY_ID=1
TARGET=ONLINE
STATE=OFFLINE
NAME=ora.MN.acfs
TYPE=ora.registry.acfs.type
TARGET=ONLINE (4 Replies)
Discussion started by: rcc50886
4 Replies
9. SCO
I recently installed the Java Communications API (v2.0Aa) on SCO and I'm having some issues running the SerialDemo application that comes with it.
I can open a connection and send text from SCO to a toy windows app I wrote - that works fine. However, when I try and close the connection, I get... (2 Replies)
Discussion started by: jdsnatl
2 Replies
10. Shell Programming and Scripting
Hi Folks,
please advise , I have logs generated on unix machine at location /ops/opt/aaa/bvg.log , now sometimes there come exception in these logs also, so I want to write such a script such that it should continuously monitor these logs and whenever any exception comes that is it try to find... (3 Replies)
Discussion started by: tuntun27272727
3 Replies
LEARN ABOUT CENTOS
ldattach
LDATTACH(8) System Administration 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/.
util-linux February 2010 LDATTACH(8)