10-04-2001
...or this way
Another of our developers came up with the idea of altering the shell script that runs our application, and via a combination of 'who' and 'cut' he's passing the IP address as an argument to the application.
It gets the job done, but darn it, I still think there should be a less kludgy way....
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi Friends,
Can any of you explain me about the below line of code?
mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`
Im not able to understand, what exactly it is doing :confused:
Any help would be useful for me.
Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies
2. Infrastructure Monitoring
I am trying to install net-snmp on an HPUX box. I am getting the fallowing error message when I try to run the snmpconf file. I installed the fallowing version of
net-snmp
net-snmp-5.0.10.2-HP-UX_B.11.11_9000_800.tar and my
HPUX box is version
HP-UX commnms B.11.11 U 9000/800... (2 Replies)
Discussion started by: krisarmstrong
2 Replies
3. Shell Programming and Scripting
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Discussion started by: shis100
7 Replies
4. Programming
Hi gurus, I need to call php function for fetching data from mysql but I dont want to move internal row pointer (IRP) forward. Or even get the actual IRP position then fetch data and move IRP back to remembered position. Function mysql_data_seek() is not suitable for my example because I am trying... (1 Reply)
Discussion started by: wakatana
1 Replies
5. HP-UX
Any clue why I'm getting the error below?
I would greatly appreciate any help. HP ITRC is already engaged since this morning but until now I haven't got any resolution. I'm wondering if anybody out there got an idea on how to fix this. Thanks in advance.
This is my system:
HPUX11i-OE-Ent... (2 Replies)
Discussion started by: msgameng
2 Replies
6. Shell Programming and Scripting
Hi All,
Need you help.
I have HPUX “bdf” output, I need % to be align to right side. if you see there are long
file systems lv so i cant do column formatting.
Any idea or best way to align the "%" to be right side.
/dev/emcvg02/lv01 52428800 29931 49123947 0% /abc/disco/iasbin... (7 Replies)
Discussion started by: ashanabey
7 Replies
7. UNIX for Dummies Questions & Answers
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies
8. Shell Programming and Scripting
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
9. AIX
Hi 2 all,
i have had AIX 7.2
:/# /usr/IBMAHS/bin/apachectl -v
Server version: Apache/2.4.12 (Unix)
Server built: May 25 2015 04:58:27
:/#:/# /usr/IBMAHS/bin/apachectl -M
Loaded Modules:
core_module (static)
so_module (static)
http_module (static)
mpm_worker_module (static)
... (3 Replies)
Discussion started by: penchev
3 Replies
GETTY(8) BSD System Manager's Manual GETTY(8)
NAME
getty, uugetty -- set terminal modes for system access
SYNOPSIS
getty [type [tty]]
uugetty [type [tty]]
DESCRIPTION
The getty program is called by init(8) to open and initialize the tty line, read a login name, and invoke login(1). The devices on which to
run getty are normally determined by ttys(5).
The getty program can also recognize a Point to Point Protocol (PPP) negotiation, and, if the pp attribute in gettytab(5) is set, invoke the
program given by that string, e.g., pppd(8), instead of login(1). This makes it possible to use a single serial port for either a "shell"
account with command line interface, or a PPP network link.
The argument tty is the special device file in /dev to open for the terminal (for example, "ttyh0"). If there is no argument or the argument
is '-', the tty line is assumed to be open as file descriptor 0.
The type argument can be used to make getty treat the terminal line specially. This argument is used as an index into the gettytab(5) data-
base, to determine the characteristics of the line. If there is no argument, or there is no such table, the default table is used. If there
is no /etc/gettytab a set of system defaults is used. If indicated by the table located, getty will clear the terminal screen, print a ban-
ner heading, and prompt for a login name. Usually either the banner or the login prompt will include the system hostname.
getty uses the ttyaction(3) facility with an action of "getty" and user "root" to execute site-specific commands when it starts.
Most of the default actions of getty can be circumvented, or modified, by a suitable gettytab(5) table.
The getty program can be set to timeout after some interval, which will cause dial up lines to hang up if the login name is not entered rea-
sonably quickly.
The uugetty program is the same, except that it uses pidlock(3) to respect the locks in /var/spool/lock of processes that dial out on that
tty.
FILES
/etc/gettytab
/etc/ttys
/var/spool/lock/LCK..ttyXX
DIAGNOSTICS
ttyxx: No such device or address.
ttyxx: No such file or address. A terminal which is turned on in the ttys(5) file cannot be opened, likely because the requisite lines are
either not configured into the system, the associated device was not attached during boot-time system configuration, or the special file in
/dev does not exist.
SEE ALSO
login(1), ioctl(2), pidlock(3), ttyaction(3), tty(4), gettytab(5), ttys(5), init(8), pppd(8)
HISTORY
A getty program appeared in Version 6 AT&T UNIX.
BSD
December 12, 1998 BSD