09-13-2001
ttys.. i must be doing something wrong..
SCO Unix OpenServer 5
I have this old impact printer that prints invoices, after about 15 pages it becomes misaligned.
ditty -a ttya04 shows -ixon -ixoff -ixany, which is not the right setting..
so, i type
ditty /dev/ttya04 ixon ixoff -ixany
when i ditty -a ttya04 again, the settings havent changed... am i doing something wrong here???
thanks..
e0--
9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
We are having a problem on an AIX 4.3 system, whereby users somehow exit the system in a way such that their process continues to run.
In the who listing, the user may or may not be listed. Processes are still listed in ps, and are still assigned to the pseudo-tty. Processes continue to... (1 Reply)
Discussion started by: markat2k
1 Replies
2. UNIX for Dummies Questions & Answers
Hello,
I have a simple script such as
-----------------------------
#! /bin/sh
YEAR=`date -u +%Y`;
MONTH=`date -u +%m`;
DAY=`date -u +%d`;
DATE=$MONTH$DAY$YEAR
LOGFILES=auditTrail-$DATE
LOGMATCH=$LOGFILES\*
ARGUM=''
# find all files and write them to a file
find . -name... (7 Replies)
Discussion started by: arushunter
7 Replies
3. UNIX for Dummies Questions & Answers
#!/bin/bash
$1 | cat >> - $2
I am trying to write a script that takes that takes two arguments. The first being a line of text, the second being a file you create. The script should take the first argument and insert it into the very top (the first line) of the file named in your second... (4 Replies)
Discussion started by: iago
4 Replies
4. UNIX for Dummies Questions & Answers
Got It Workng Woohoo
Edited (2 Replies)
Discussion started by: iago
2 Replies
5. UNIX for Dummies Questions & Answers
Sometimes when I open up the terminal (like just now) it says
Last login: Wed Jun 17 07:29:25 on console
sometimes it says ttys (like when I exit and open a new window/tab). What's the difference? and is something fishy going on? (6 Replies)
Discussion started by: Straitsfan
6 Replies
6. AIX
I have several users connecting via a Windows-based SSH\telnet client. The previous sysadmin used FacetTerm to allow certain users to switch between multiple "windows." I'm told there are AIX-native ways to do this but I work with what I inherited.
Originally, many users were still connecting... (3 Replies)
Discussion started by: lacroix
3 Replies
7. Shell Programming and Scripting
For one of my script, I want one extra parameter needs to be added to one of the Usage option. Below its given
#Check Input parameters are valid
if ; then
function usage() {
echo
echo "*******************************************"
echo " !!! USAGE... (2 Replies)
Discussion started by: raghunsi
2 Replies
8. Shell Programming and Scripting
I am making a shell script that will have "shortcuts" to do different tasks and I can't get what I'm doing wrong (this is just a test script)
read cake
if then
echo "1 it is"
fiit outputs:
1:
: bad variable namecake
test.sh: 27: test.sh: Syntax error: end of file unexpected (expecting... (22 Replies)
Discussion started by: kitay
22 Replies
9. Shell Programming and Scripting
Hi ! all I am just trying to check range in my datafile
pls tell me why its resulting wrong
admin@IEEE:~/Desktop$ cat test.txt
0 28.4
5 28.4
10 28.4
15 28.5
20 28.5
25 28.6
30 28.6
35 28.7
40 28.7
45 28.7
50 28.8
55 28.8
60 28.8
65 28.1... (2 Replies)
Discussion started by: Akshay Hegde
2 Replies
enable(1) User Commands enable(1)
NAME
enable, disable - enable/disable LP printers
SYNOPSIS
/usr/bin/enable printer...
/usr/bin/disable [-c | -W] [ -r [reason]] printer...
DESCRIPTION
The enable command activates printers, enabling them to print requests submitted by the lp command. enable must be run on the printer
server.
The disable command deactivates printers, disabling them from printing requests submitted by the lp command. By default, any requests that
are currently printing on printer will be reprinted in their entirety either on printer or another member of the same class of printers.
The disable command must be run on the print server.
Use lpstat -p to check the status of printers.
enable and disable only effect queueing on the print server's spooling system. Executing these commands from a client system will have no
effect on the server.
OPTIONS
The following options are supported for use with disable:
-c Cancels any requests that are currently printing on printer. This option cannot be used with the -W option. If the printer
is remote, the -c option will be silently ignored.
-W Waits until the request currently being printed is finished before disabling printer. This option cannot be used with the
-c option. If the printer is remote, the -W option will be silently ignored.
-r [reason] Assigns a reason for the disabling of the printer(s). This reason applies to all printers specified. This reason is
reported by lpstat -p. Enclose reason in quotes if it contains blanks. The default reason is "unknown reason" for the
existing printer, and "new printer" for a printer added to the system but not yet enabled.
OPERANDS
The following operand is supported for both enable and disable:
printer The name of the printer to be enabled or disabled. Specify printer using atomic name. See printers.conf(4) for information
regarding the naming conventions for atomic names.
EXIT STATUS
The following exit values are returned:
0 Successful completion.
non-zero An error occurred.
FILES
/var/spool/lp/* LP print queue.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWpcu |
+-----------------------------+-----------------------------+
|CSI |enabled |
+-----------------------------+-----------------------------+
SEE ALSO
lp(1), lpstat(1), printers.conf(4), attributes(5)
SunOS 5.10 9 Sep 1996 enable(1)