On Wed, Aug 10, 2005 at 11:50:55AM -0400, rpeterso wrote: > Are you familiar with 'screen'?
BTW, you can do serial stuff w/ screen directly, if you like. E.g.: 1017# cat /local/etc/screenrc.serial # This assumes that serialuser has proper # permissions to access the serial ports and to # write to the log files specified in the screenrc. # turn logging on for all windows deflog on # tell screen to log to /var/log/serial.$WINDOW logfile /var/log/serial.%n # open windows on the serial ports screen -t ttyS0 /dev/ttyS0 38400 screen -t ttyS1 /dev/ttyS1 19200 screen -t USB0 /dev/ttyUSB0 38400 screen -t USB1 /dev/ttyUSB1 38400 screen -t USB2 /dev/ttyUSB1 38400 screen -t USB3 /dev/ttyUSB1 38400 # if you like, launch at system startup rc script like: # su serialuser -c 'screen -dmS serial -c /local/etc/screenrc.serial' escape ^Tt The 'su ..' startup line above would launch screen using the specified config file, and put it in detached mode. Then you could log in and attach at any time by running 'screen -r serial'. Otherwise just 'screen -c <conffile>' I haven't done much serial stuff w/ screen myself, not sure how you set parity bits etc., but it's an interesting approach in any case.. -- Ron Peterson Network & Systems Manager Mount Holyoke College http://www.mtholyoke.edu/~rpeterso -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]