03-13-2002
Can I change or define ttyp0?
I placed this in the IP Networking forum and have gotten a big 0 in response. After reading a reply from killerserv to someone's problem I have decided to post the message here and see what happens. If nothing else does ANYONE have ANY suggestions on where to look or a book I could read or something?
Can I change or define the ttyp0 address a particular computer logs into? I want to be able to telnet into an SCO OpenServer 5 system and need a defined login. ie. /dev/tty01, /dev/tty1a, /dev/ttyS00, /dev/nt101
I can use NetTerminal software for the Boundless NetTerminals and get /dev/nt101 - nt112 for all 12 screens on a NetTerminal. I could also get /dev/nt201 - nt212 for the second terminal and so on.
With my application I need to be able to set options using the /dev/ttyXX. Of course ttyp0 could be used on any terminal at any time.
I hope this is clear enough and understandable. Thanks in advance for any help.
Jon
8 More Discussions You Might Find Interesting
1. Programming
in the header file orville.h, outside of the #ifdef #endif , there is the following
#define JOB_CONTROL /* support job-control */
As you can see, the JOB_CONTROL macro has no value associated with it. Here is what I go when I ran grep on the entire source code.
$ grep -iR... (6 Replies)
Discussion started by: frequency8
6 Replies
2. UNIX for Dummies Questions & Answers
Hi friends,
I am not sure if perl questions can be raised here. :rolleyes:
But I have a doubt if there is a way to do "#define" in perl, like in C.
Does anyone know if it is feasible (without CPAN modules)?
Thanks,
Srini (7 Replies)
Discussion started by: srinivasan_85
7 Replies
3. Programming
Hello,
I would like to conditionaly comment in my code source some fields from arrays. So I use the property ## from the #define definition.
my code:
...
#define slet /##*
#define etsl *##/
...
const T_SVT_ADLL_A653_DESC A_DESC =
{
{ slet qwerty etsl SLICING,... (3 Replies)
Discussion started by: cypleen
3 Replies
4. Programming
if i do this in C
#define NUM 1234512345
then how come i cant print it out using
int main(int argc, char **argv) {
printf("%d\n", NUM);
return 0;
}
well the result is -1219236538, why isnt it 1234512345 ? (7 Replies)
Discussion started by: omega666
7 Replies
5. Programming
Hi,
I had a head file, looks like
#define MIN_NUM 10
#define MAX_NUM 10
is there any way to get "MAX_NUM" from 10?
thanks.
peter (9 Replies)
Discussion started by: laopi
9 Replies
6. UNIX for Dummies Questions & Answers
Hi!
I need to change the spacing assigned to each number in a text file. I have an input file with 5 columns and 3 rows. Here, all numbers are separated by 1 space. I need to change this in such a way that the number in the first column has 6, the number in the second column has 5 and all other... (2 Replies)
Discussion started by: Alauda
2 Replies
7. Programming
Hey everyone. So I'm looking at a few C programming resources, and it seems, by convention how you should write and define a function, is first declare it's existence before your main...then call it somewhere in your main, and then define after, at the end of the program? Is this necessary? I mean... (7 Replies)
Discussion started by: Lost in Cyberia
7 Replies
8. Shell Programming and Scripting
Hi,
I just define the variable in script and use those script in another script but the variable not recognize.
test1.sh
#!/bin/bash
DB="test_db"
USR="test_user"
PWD="test_pwd"
HST="24.254.87.12"
test2.sh
#!/bin/bash
./test1.sh
mysql -u $USR -p $PWD -h $HST... (2 Replies)
Discussion started by: fspalero
2 Replies
LEARN ABOUT PHP
log_reply
LOG_REPLY(3) 1 LOG_REPLY(3)
log_reply - Callback When Reading the MongoDB reply
SYNOPSIS
log_reply (array $server, array $messageHeaders, array $operationHeaders)
DESCRIPTION
A callable function, used by the log_reply context option, when reading a reply from MongoDB.
Note
This is not a real function, only a prototype of how the function should be.
PARAMETERS
o $server
- An array containing the basic information about the server that was picked.
+-----------------+---------------------------------------------------+
| key | |
| | |
| | value |
| | |
+-----------------+---------------------------------------------------+
| hash | |
| | |
| | server hash, example: localhost:27017;-;X;56052 |
| | |
| type | |
| | |
| | Node type (primary/secondary/mongos/arbiter): 2 |
| | |
| max_bson_size | |
| | |
| | The maximum BSON Size over the wire this node |
| | accepts: 16777216 |
| | |
|max_message_size | |
| | |
| | The maximum Message Size over the wire this node |
| | accepts: 48000000 |
| | |
| request_id | |
| | |
| | The request identifier for this message: 42 |
| | |
+-----------------+---------------------------------------------------+
o $messageHeaders
-
+------------+---------------------------------------------------+
| key | |
| | |
| | value |
| | |
+------------+---------------------------------------------------+
| length | |
| | |
| | integer, bytes, message reply length |
| | |
|request_id | |
| | |
| | integer, the server request identifier |
| | |
|response_id | |
| | |
| | integer, the driver request identifier this mes- |
| | sage is a response of |
| | |
| opcode | |
| | |
| | integer, the opcode id |
| | |
+------------+---------------------------------------------------+
o $operationHeaders
-
+----------+---------------------------------------------------+
| key | |
| | |
| | value |
| | |
+----------+---------------------------------------------------+
| flags | |
| | |
| | integer, bitmask of protocol flags |
| | |
|cursor_id | |
| | |
| | integer, ID of the cursor created on the server |
| | (0 if none created, or its been exhausted) |
| | |
| start | |
| | |
| | The starting offset of this cursor |
| | |
|returned | |
| | |
| | integer, how many documents are returned in this |
| | trip |
| | |
+----------+---------------------------------------------------+
SEE ALSO The OP_REPLY definition in the Wire Protocol.
PHP Documentation Group LOG_REPLY(3)