The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Equivalent command to 'stat' im_new Shell Programming and Scripting 3 12-27-2007 02:28 AM
equivalent of ptree command in zsh dhams Shell Programming and Scripting 3 09-11-2007 04:07 PM
Equivalent command for setlocal in Unix sonaluphale UNIX for Advanced & Expert Users 7 05-17-2007 04:10 AM
Equivalent Suse Linux command braindrain Shell Programming and Scripting 3 01-24-2006 06:05 PM
SQL Spool equivalent command in DOS stevefox Windows & DOS: Issues & Discussions 2 01-17-2006 05:18 PM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-10-2007
jgt jgt is offline
Registered User
 

Join Date: Apr 2007
Location: 44.21.48N 80.50.15W
Posts: 348
Command equivalent to DOS mode for SCO 5.0.6

I need to set the serial port attributes to 9600,7,E,1 in order to read and write data to it from within a Foxpro program. Unfortunately there is no function in Foxpro to set the line attributes, only open. close read and write.
Stty only works on the stdout and stdin in this release, and the while the version of stty that comes with 5.0.7 will allow setting the speed of any serial port, it will not run under 5.0.6 because the dynamic link libraries are different.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 05-10-2007
Registered User
 

Join Date: May 2007
Posts: 27
if memory serves, i think you can start with looking at the inittab settings (man inittab) and there is a place you can edit the terminal settings (but i do not remember what the config file is called, but it would be in the inittab man page or maybe getty man page)
Reply With Quote
  #3 (permalink)  
Old 05-10-2007
Registered User
 

Join Date: May 2007
Posts: 27
gettydefs ... just looked it up
Reply With Quote
  #4 (permalink)  
Old 05-11-2007
jgt jgt is offline
Registered User
 

Join Date: Apr 2007
Location: 44.21.48N 80.50.15W
Posts: 348
I know, but that (gettydefs and inittab) doesn't take effect until the port is enabled, and then getty steals the input, and ouputs a login prompt. Once the port is disabled its settings return to 9600,n,8,1.
The trick might be to find where the default settings are stored, I've looked in /etc/conf/ and its subdirectories to no avail.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 06:26 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0