The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

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 6 01-15-2009 10:04 AM
equivalent of ptree command in zsh dhams Shell Programming and Scripting 3 09-11-2007 07:07 PM
Equivalent command for setlocal in Unix sonaluphale UNIX for Advanced & Expert Users 7 05-17-2007 07:10 AM
Equivalent Suse Linux command braindrain Shell Programming and Scripting 3 01-24-2006 10:05 PM
SQL Spool equivalent command in DOS stevefox Windows & DOS: Issues & Discussions 2 01-17-2006 09:18 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread 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: 439
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.
  #2 (permalink)  
Old 05-10-2007
TinWalrus TinWalrus is offline
Registered User
  
 

Join Date: May 2007
Posts: 35
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)
  #3 (permalink)  
Old 05-10-2007
TinWalrus TinWalrus is offline
Registered User
  
 

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

Join Date: Apr 2007
Location: 44.21.48N 80.50.15W
Posts: 439
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.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:19 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0