04-23-2009
Redirection to GNU screen attached serial port
I'm using GNU screen as a terminal to connect with a usb serial port. eg. screen /dev/tty.usbserial . This works well enough for manual processes. Is there a way to redirect the output of a script running in another session to the stdin of this virtual terminal? ie. I want to repeatedly send some data out over this serial port.
I'm running screen on OS X Leopard.
Thanks
Geoffrey
10 More Discussions You Might Find Interesting
1. Solaris
Q1: can anyone tell me how cfgadm keeps track of the device even if the device is disconnected ,
when we disconnect a device using cfgadm
cfgadm -ys disconnect <ap_id>
then the device disappears from the lshal o/p. HAL uses libdevinfo for the device list. if the device is not there in the... (2 Replies)
Discussion started by: narendra.pant
2 Replies
2. UNIX for Advanced & Expert Users
Hello,
One of the things I like about screen is that it has a scrollback buffer, which if you go into the copy mode, will let you go back for a specified number of line. Is there a way to extend the number of scrollback lines in screen? I've looked thoroughly online and I could not find a... (2 Replies)
Discussion started by: neked
2 Replies
3. Programming
I have a need to determine when a string has been completely sent via a serial port from a standard 'C' application. The code is as follows:
SerialPort_Send = open (pPortString, O_WRONLY | O_NOCTTY | O_NONBLOCK);
write (SerialPort_Send, pCommandString, strlen (pCommandString));
... (2 Replies)
Discussion started by: ExDes
2 Replies
4. HP-UX
I compiled GNU screen on HP-UX 11.23 and following the compile, I get the following error when I try to run screen
Cannot find terminfo entry for 'vt100'
By default the TERMINFO is not set, I found a reference that setting it might help. I tried the following but I still receive the same... (2 Replies)
Discussion started by: scotbuff
2 Replies
5. Shell Programming and Scripting
Hi,
I have a external board connected to my serial port. I need to execute "shutdown -r now" command when system boot up. When system boots up it requires a username ans password. Then I need to run my command. I can use rc script but that is rebooting system before it asks for username and... (0 Replies)
Discussion started by: charlie.arya
0 Replies
6. Solaris
Hi Everyone,
In my environment, I have few T5220. On the iLOM Management Card, I have both Network and Serial port are cabled, I don't have any issues while I try to connect using Network Management port, but when I try to connect the serial port for the same server which is actually connected... (3 Replies)
Discussion started by: bobby320
3 Replies
7. UNIX for Advanced & Expert Users
Hi folks,
I have an application that is acting up. I have another machine with a replacement application on it but because of the naming structure clients are using I cannot change the name to the replacement machine as it is also used to access other applications.
The host OS is Centos 5.6... (0 Replies)
Discussion started by: beddo
0 Replies
8. Programming
Hi
I try to communicate with a GSM modem, from C, for sending SMS.
I use standart AT-commands.
Working well with terminal.
There is no problem writing ti the port.
But when I try to read I only get a echo, I write "ATI" and get "ATI" back, I should get somthing like "SIEMENS 35... (4 Replies)
Discussion started by: dmiller
4 Replies
9. UNIX and Linux Applications
Hi,
I have my WebLogic server up and running on port 7002, and can be accessed from :
https://mydomain.com:7002/App1
i want to configure Port redirection from 7001 to 7002
if users Login to
http://mydomain.com:7001/App1 it should automatically take them to ... (1 Reply)
Discussion started by: szs
1 Replies
10. Solaris
Hello,
I have an unloaded T5140 machine and want to access the ILOM for the first time and subsequently the network port after that., and then load Solaris 10 the final January 2011 build.
The first part is what confuses me -the cabling.
I am coming from a Windows machine (w/appropriate... (5 Replies)
Discussion started by: joboy
5 Replies
UMCS(4) BSD Kernel Interfaces Manual UMCS(4)
NAME
umcs -- USB support for serial adapters based on the MCS7820 and MCS7840 chips
SYNOPSIS
To compile this driver into the kernel, place the following lines in your kernel configuration file:
device usb
device ucom
device umcs
Alternatively, to load the driver as a module at boot time, place the following line in loader.conf(5):
umcs_load="YES"
DESCRIPTION
The umcs driver provides support for various multiport serial adapters based on the MosCom MCS7820 and MCS7840 chips. They are 2- or 4-port
adapters with full-featured 16550-compatible UARTs and very flexible baud generators. Also, these chips support RS422/RS485 and IrDA opera-
tions.
The device is accessed through the ucom(4) driver which makes it behave like a tty(4).
Different ports on device are presented as sub-units, like /dev/ttyU0.1 and /dev/ttyU0.2.
HARDWARE
The umcs driver was tested on the following adapters:
o ST Lab U-360 two-port serial USB adapter
o ST Lab U-400 four-port serial USB adapter
SEE ALSO
tty(4), ucom(4), usb(4)
HISTORY
The umcs driver appeared in ports since December of 2010.
AUTHORS
The umcs driver was written by Lev Serebryakov <lev@FreeBSD.org>.
BUGS
This driver doesn't support access to any fine tunes of chip, like RS522/RS485 mode, non-standard baudrates, etc.
BSD
February 25, 2012 BSD