09-13-2001
In case anyone was wondering, I think the problem has been solved.. The port did not remain open after I sent the ditty command.
This should be resolved by: set mode /dev/ttya04
Then: ditty /dev/ttya04 ixon ixoff -ixany ..
The funny thing is that /bin does not have the setmode application.. hmm... So, I am now on the hunt for setmode..
If this doesnt sound right to you, or you have an idea where I can get a copy of setmode, please let me know..
as always, other suggestions are welcome...
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
LEARN ABOUT OPENDARWIN
getmode
SETMODE(3) BSD Library Functions Manual SETMODE(3)
NAME
getmode, setmode -- modify mode bits
LIBRARY
Utility functions from BSD systems (libbsd, -lbsd)
SYNOPSIS
#include <bsd/unistd.h>
mode_t
getmode(const void *set, mode_t mode);
void *
setmode(const char *mode_str);
DESCRIPTION
The getmode() function returns a copy of the file permission bits mode as altered by the values pointed to by set. While only the mode bits
are altered, other parts of the file mode may be examined.
The setmode() function takes an absolute (octal) or symbolic value, as described in chmod(1), as an argument and returns a pointer to mode
values to be supplied to getmode(). Because some of the symbolic values are relative to the file creation mask, setmode() may call umask(2).
If this occurs, the file creation mask will be restored before setmode() returns. If the calling program changes the value of its file cre-
ation mask after calling setmode(), setmode() must be called again if getmode() is to modify future file modes correctly.
If the mode passed to setmode() is invalid or if memory cannot be allocated for the return value, setmode() returns NULL.
The value returned from setmode() is obtained from malloc() and should be returned to the system with free() when the program is done with
it, generally after a call to getmode().
ERRORS
The setmode() function may fail and set errno for any of the errors specified for the library routine malloc(3).
SEE ALSO
chmod(1), stat(2), umask(2), malloc(3)
HISTORY
The getmode() and setmode() functions first appeared in 4.4BSD.
BSD
April 28, 1995 BSD