Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Redirection to GNU screen attached serial port Post 302310106 by geoffjMontreal on Thursday 23rd of April 2009 06:15:10 PM
Old 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

How to check that a device is attached on a port

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

GNU screen

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

How to tell if a string to serial port has been sent

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

GNU screen on HP-UX 11.23

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

Need help with serial port

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

How to enable Serial port on ILOM, when Network Port is enabled in parallel

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

Port redirection with exclusions

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

Read from serial port

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

Weblogic Port redirection from 7001 to 7002

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

Cabling and adapters to communicate to service processor serial port from Windows PC with USB port.

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
PROBEMODEM(8)                                                 System Manager's Manual                                                PROBEMODEM(8)

NAME
probemodem - check modem and report the result of certain commands SYNOPSIS
/usr/sbin/probemodem [-f] [-c AT_COMMAND] [-s SPEED] [ttyname] DESCRIPTION
The probemodem script checks a modem attached to a serial line and reports the results of certain commands. The ttyname argument is the name of the tty port that the modem is attached to. This manual page was written for the Debian GNU/Linux distribution (but may be used by others), because the original program does not have a manual page. OPTIONS
-f Do not use the command fuser in order to check if other processes are using the tty ttyname and kill them -c AT_COMMAND Specify a string to be sent to the modem instead of "AT+FCLASS=?" -s speed Set the speed to use for the ttyname port SEE ALSO
hylafax(5) AUTHOR
This manual page was written by Dermot Bradley <bradley@debian.org>, and modified by Giuseppe Sacco <eppesuig@debian.org> for the Debian GNU/Linux system. PROBEMODEM(8)
All times are GMT -4. The time now is 04:41 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy