Sponsored Content
Operating Systems Solaris Host name in front of pkginfo output Post 302893638 by blackrageous on Thursday 20th of March 2014 11:21:23 AM
Old 03-20-2014
Don't use a comma as an ouput field separator, try "|"

Because your heading shows 4 fields, yet your output, based on the use of the "," shows more. This implies a "," is in the data.

Last edited by blackrageous; 03-20-2014 at 12:28 PM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

format and pkginfo -l question

I have a Solaris 2.6 box flagging an "Error block: 308918" in the messages file when I execute a pkginfo -l. pkginfo with no flags returns no errors. I think I need to use format to mark this block and then restore the database used by pkginfo for backup. Any advice/input welcome. Thanks (4 Replies)
Discussion started by: 98_1LE
4 Replies

2. UNIX for Dummies Questions & Answers

Sending tar output to a remote host

Our group has recently inherited 15 servers that have not been maintained for over a year. My first action is to backup the units however there is not enough disk space on most of them to run tar. My supervisor said to look at piping the tar output to another machine, however I have been unable... (3 Replies)
Discussion started by: thumper
3 Replies

3. Solaris

difference between pkginfo and pkgchk command

can anyone explain me the difference between pkginfo and pkgchk command in solaris. Both are used to display the package details, then what is the difference between both. (5 Replies)
Discussion started by: rogerben
5 Replies

4. UNIX for Advanced & Expert Users

rpm and pkginfo question

Can the root hide some of the results of the above commands from a regular user? i.e. $>rpm and $>sudo rpm will give different results (1 Reply)
Discussion started by: noam128
1 Replies

5. Solaris

grep help with pkginfo

im looking for a way to eliminate the packages from SUN when i do a pkginfo. thought this would work, but no luck. pkginfo | grep what am i doing wrong? Thanks (2 Replies)
Discussion started by: jrich523
2 Replies

6. Shell Programming and Scripting

rsh to many hosts the ftp output to single host

Hi guys. i need some help, i need to create a script in tcsh that rsh into all my hosts that we have at our business, then cd to a directory (cd /apps/users) then grab a file from the users folder and ftp it back to my windows machine. can someone please help? Kind regards. Brian Behrens (2 Replies)
Discussion started by: brian112
2 Replies

7. Solaris

pkgadd, pkginfo, ssh not working

Got a feeling someone has been fiddling around or something has got corrupt but I'm getting the following errors now:- -bash-3.00# pkginfo ld.so.1: pkginfo: fatal: libssl.so.0.9.7: open failed: No such file or directory Killed -bash-3.00# and also ssh:- -bash-3.00# ssh ld.so.1: ssh:... (5 Replies)
Discussion started by: psychocandy
5 Replies

8. Solaris

Host name in front of ps output

hello All. I am working on something that should be really simply. It turns out that its not. I am trying to produce output to list the hostname along with all the current running programs. the script im using is: for PS in `ps -Ao "user,args" | cut -d' ' -f1,2` do echo "`uname -n`, $PS"... (5 Replies)
Discussion started by: busi386
5 Replies

9. UNIX for Dummies Questions & Answers

How to get/print host string only from tnsping output?

Hello All, I am using Linux OS. My idea is get the host name when we do tnsping in oracle. output of : tnsping DOELO01 TNS Ping Utility for Linux: Version 11.2.0.3.0 - Production on 15-OCT-2015 20:20:05 Copyright (c) 1997, 2011, Oracle. All rights reserved. Used parameter files:... (2 Replies)
Discussion started by: Ariean
2 Replies

10. UNIX for Beginners Questions & Answers

Output top line for each unique host

Hi All, Please can you help with the output whole line for each host (column 3) and the top line of column 9 - the lastest only What is being outputted 243272484 3 nbmedln1p03 LDN_TEST_UX_JM 1488198368 0000000007 1 INC_1MTH 0 ********** 243272492 3 nbmedln1p03 LDN_TEST_UX_JM... (10 Replies)
Discussion started by: Junes
10 Replies
devassign(4)						     Kernel Interfaces Manual						      devassign(4)

NAME
devassign - Device assignment database file (Enhanced Security) DESCRIPTION
The system supports a single device assignment database that contains entries for login terminals and X terminals. Authentication programs use information in the device assignment database to determine if a login is permitted on the terminal. Information from the terminal con- trol database, /etc/auth/system/ttys.db, can also affect terminal login permissions. A device assignment database entry consists of keyword field identifiers and values for those fields. If a necessary value is not speci- fied in an entry, a default value for the field is supplied from the system default file, /etc/auth/system/default. The edauth utility is used to alter device assignment database entries. The format of the terminal control database file is identical to other system authentication database files and is described in the auth- cap(4) reference page. The following keyword identifiers are supported: The identifier in this field specifies a comma-separated list of aliases that refer to the same device defined by the entry. Use of this field avoids the need to replicate device assignment database entries for all device aliases. This field is ignored if it is set in a template or in the default database. This field specifies the device that is described by the entry. Device types supported include: The device is assigned as a local login terminal device. The X windows display entry for handling graphics heads or X terminals. This field is ignored if it is set in a template or in the default database. This field, if specified, contains a comma-separated list of user names that are permitted to use the device for login or the import and export of data. If the list is not present, all users are per- mitted to use the device. If the list is present, it is searched for a match by the login program to determine if the user is permitted to use the device. This field is ignored if it is set in a template or in the default database. EXAMPLES
The following example shows a device assignment database entry for a terminal device with a list of allowed users: tty0:v_devs=/dev/tty0: :v_type=terminal:v_users=may,tdy,ssv,rgb: :chkent: The following example shows a device assignment database entry for an X terminal device: local:0|local:0.0:v_devs=local:0,local:0.0:v_type=xdisplay:chkent: FILES
Specifies the pathname of the file. RELATED INFORMATION
Commands: cpio(1), login(1), tar(1), edauth(8) Functions: getdvagent(3) Files: authcap(4), default(4), ttys(4) delim off devassign(4)
All times are GMT -4. The time now is 11:29 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy