Sponsored Content
Full Discussion: HPUX 10.20 et HPUX 11
Top Forums UNIX for Dummies Questions & Answers HPUX 10.20 et HPUX 11 Post 18323 by Olivier on Wednesday 27th of March 2002 03:21:35 AM
Old 03-27-2002
HPUX 10.20 et HPUX 11

Is there any problems of binaries compatibility between HPUX 10.20 et 11 ?
 

10 More Discussions You Might Find Interesting

1. HP-UX

HPUX any help

:( i got couple of weeks ago a : HP Visualize workstation , model B100. everithing is ok in the box the only problem is that i 'am not familiar with this operational sys, and i try to uninstall and see if i can get on it windows net server 64 bit. or any other 64 bit operational sys that i'll... (1 Reply)
Discussion started by: newbird
1 Replies

2. UNIX for Dummies Questions & Answers

New to HPUX

Hi, I am a SAP Basis admin recentely been asked to administer a HPUX server. Could someone recommend some good study material to learn with the Sap prespective. -carry (1 Reply)
Discussion started by: carryclare
1 Replies

3. HP-UX

remsh + HPUX

Hi, I am trying to remsh from a HPUX to another unix server What is happening is I cant run commands on the other server ie I can remsh <remoteserver> -l <remotelogin> but I cant remsh <remoteserver> -l <remotelogin> -n pwd getting error message rshd: 0826-826 The host name for... (3 Replies)
Discussion started by: belfastbelle
3 Replies

4. Shell Programming and Scripting

Need Script to Use CPUs on a HPUX server to simulate Workload Manager on HPUX.

I am running HPUX and using WLM (workload manager). I want to write a script to fork CPUs to basically take CPUs from other servers to show that the communication is working and CPU licensing is working. Basically, I want to build a script that will use up CPU on a server. Any ideas? (2 Replies)
Discussion started by: cpolikowsky
2 Replies

5. Shell Programming and Scripting

hpux vi

Hello. I cant figure out how can i move entire row up , so it pasted on the one above at the end , or to do that for one character. In notepads,word, or some other text editors we would do that with backspace button. Example. Content of my text file is this : I am trying to do that. And... (2 Replies)
Discussion started by: tonijel
2 Replies

6. HP-UX

pwage-hpux-T for Trusted HPUX servers

I'm sharing this in case anybody needs it. Modified from the original solaris pwage script. This modified hpux script will check /etc/password file on hpux trusted systems search /tcb and grep the required u_succhg field. Calculate days to expiry and notify users via email. original solaris... (2 Replies)
Discussion started by: sparcguy
2 Replies

7. HP-UX

How swap used in HPUX ?

Please clarify Version: HP-UX <hostname> B.11.31 U ia64 unlimited-user license Physical Configured is 36 GB CPU info: 4 Intel(R) Itanium 2 9000 series processors (1.6 GHz, 24 MB) 533 MT/s bus, CPU version C2 12 logical processors Memory: 36813 MB (35.95 GB)... (10 Replies)
Discussion started by: sidharthmellam
10 Replies

8. Infrastructure Monitoring

check_logfiles HPUX

Hello, I have to monitoring a log in a machine HPUX B.11.00. I defined config file: $seekfilesdir = '/opt/tools/capmau/log'; @logs = ( { tag => 'sybase', logfile => '/opt/sybase/ASE-12_0/install/errorlog', criticalpatterns =>, }, ); and defined in nrpe.cfg: ... (0 Replies)
Discussion started by: msanbrug
0 Replies

9. HP-UX

HPux 11.23: packages?

This site,with good packages drop support for 11.23 HP-UX Porting and Archiving Centre | What´s New? Someone know a good site with packages? Thanks (0 Replies)
Discussion started by: Linusolaradm1
0 Replies

10. Shell Programming and Scripting

Hpux

Hello All Why is hpux is not much spoken in the unix/Linux platform. what is the disadvantes in HPUX Thanks, VJ (1 Reply)
Discussion started by: Vijaykannan T
1 Replies
GETUTENT(3)							 Library functions						       GETUTENT(3)

NAME
getutent, getutid, getutline, pututline, setutent, endutent, utmpname - access utmp file entries SYNOPSIS
#include <utmp.h> struct utmp *getutent(void); struct utmp *getutid(struct utmp *ut); struct utmp *getutline(struct utmp *ut); struct utmp *pututline(struct utmp *ut); void setutent(void); void endutent(void); void utmpname(const char *file); DESCRIPTION
utmpname() sets the name of the utmp-format file for the other utmp functions to access. If utmpname() is not used to set the filename before the other functions are used, they assume _PATH_UTMP, as defined in <paths.h>. setutent() rewinds the file pointer to the beginning of the utmp file. It is generally a Good Idea to call it before any of the other functions. endutent() closes the utmp file. It should be called when the user code is done accessing the file with the other functions. getutent() reads a line from the current file position in the utmp file. It returns a pointer to a structure containing the fields of the line. getutid() searches forward from the current file position in the utmp file based upon ut. If ut->ut_type is RUN_LVL, BOOT_TIME, NEW_TIME, or OLD_TIME, getutid() will find the first entry whose ut_type field matches ut->ut_type. If ut->ut_type is one of INIT_PROCESS, LOGIN_PROCESS, USER_PROCESS, or DEAD_PROCESS, getutid() will find the first entry whose ut_id field matches ut->ut_id. getutline() searches forward from the current file position in the utmp file. It scans entries whose ut_type is USER_PROCESS or LOGIN_PROCESS and returns the first one whose ut_line field matches ut->ut_line. pututline() writes the utmp structure ut into the utmp file. It uses getutid() to search for the proper place in the file to insert the new entry. If it cannot find an appropriate slot for ut, pututline() will append the new entry to the end of the file. RETURN VALUE
getutent(), getutid(), getutline() and pututline() return a pointer to a static struct utmp on success, and NULL on failure. EXAMPLE
The following example adds and removes a utmp record, assuming it is run from within a pseudo terminal. For usage in a real application, you should check the return values of getpwuid() and ttyname(). #include <string.h> #include <stdlib.h> #include <pwd.h> #include <unistd.h> #include <utmp.h> int main(int argc, char *argv[]) { struct utmp entry; system("echo before adding entry:;who"); entry.ut_type=USER_PROCESS; entry.ut_pid=getpid(); strcpy(entry.ut_line,ttyname(0)+strlen("/dev/")); /* only correct for ptys named /dev/tty[pqr][0-9a-z] */ strcpy(entry.ut_id,ttyname(0)+strlen("/dev/tty")); time(&entry.ut_time); strcpy(entry.ut_user,getpwuid(getuid())->pw_name); memset(entry.ut_host,0,UT_HOSTSIZE); entry.ut_addr=0; setutent(); pututline(&entry); system("echo after adding entry:;who"); entry.ut_type=DEAD_PROCESS; memset(entry.ut_line,0,UT_LINESIZE); entry.ut_time=0; memset(entry.ut_user,0,UT_NAMESIZE); setutent(); pututline(&entry); system("echo after removing entry:;who"); endutent(); return 0; } FILES
/var/run/utmp database of currently logged-in users /var/log/wtmp database of past user logins CONFORMING TO
XPG 2, SVID 2, Linux FSSTND 1.2 In XPG2 and SVID2 the function pututline() is documented to return void, and that is what it does on many systems (AIX, HPUX, Linux libc5). HPUX introduces a new function _pututline() with the prototype given above for pututline() (also found in Linux libc5). All these functions are obsolete now on non-Linux systems. POSIX 1003.1-2001, following XPG4.2, does not have any of these functions, but instead uses #include <utmpx.h> struct utmpx *getutxent(void); struct utmpx *getutxid(const struct utmpx *); struct utmpx *getutxline(const struct utmpx *); struct utmpx *pututxline(const struct utmpx *); void setutxent(void); void endutxent(void); The utmpx structure is a superset of the utmp structure, with additional fields, and larger versions of the existing fields. The corre- sponding files are often /var/*/utmpx and /var/*/wtmpx. Linux glibc on the other hand does not use utmpx since its utmp structure is already large enough. The functions getutxent etc. are aliases for getutent etc. SEE ALSO
utmp(5) 1996-07-25 GETUTENT(3)
All times are GMT -4. The time now is 05:14 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy