8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi there,
Everyone knows that errexit is NOT inherited by subshells. But does anyone know why errexit still appears as set with set +o?
The following example highlights the fact that errexit appears set in a subshell (set +o) even though it's actually unset (it does NOT exit with false).
$... (0 Replies)
Discussion started by: chebarbudo
0 Replies
2. AIX
periodically my oracle 11.2.0.1 listener process 'tnslsnr' seems to crash and disappear ( I am using an AIX 6.1 unix platform ). When this happens I am able to restart my listener ok. However when this happens there is is no stop recorded in my listener log (as there normally would be - hence why I... (1 Reply)
Discussion started by: jimthompson
1 Replies
3. UNIX for Dummies Questions & Answers
Hi everyone! I have something like the following records in a file:
ID: 1
Name: A
Age: 23
ID: 2
Name: B
ID: 1
Activity: Climbing
ID: 3
Name: C
ID: 3
Activity: Skating
I want to capture the records where the field Age exists AND the records that have the same ID as the one... (4 Replies)
Discussion started by: Atrisa
4 Replies
4. Shell Programming and Scripting
I am trying to print 1st, 2nd, 13th and 14th fields of a file of line numbers from 29 to 10029. I dont know how to put this in one code. Currently I am removing the selected lines by
awk 'NR==29,NR==10029' File1 > File2
and then doing
awk '{print $1, $2, $13, $14}' File2 > File3
Can... (3 Replies)
Discussion started by: ananyob
3 Replies
5. UNIX for Advanced & Expert Users
hi experts,
i have a file
sample:
=======
000123 5 7 0008
00345 5 9 0004
how can i get an output as
123 5 7 8
345 5 9 4
thanks in an advance
subhendu (5 Replies)
Discussion started by: subhendu81
5 Replies
6. Shell Programming and Scripting
The typical line of the input file is as follows,
123|abcde|"xyz|mn"|ghelosa|3455hello|
The delimiter is |. I need to change it to another delimiter, say ~. For the above line, the output should be:
123~abcde~xyz|mn~ghelosa~3455hello~
The challenge is when | appears in a field, it... (2 Replies)
Discussion started by: derekxu
2 Replies
7. UNIX for Dummies Questions & Answers
Hi,
Can anybody explain bc and wc system utilities in Unix?
Thanks (6 Replies)
Discussion started by: skyineyes
6 Replies
8. UNIX for Dummies Questions & Answers
I have a file like this:
111 AA 100.00
111 AA 200.00
TOTALS 2 300.00
111 285.00
111 ... (0 Replies)
Discussion started by: nickg
0 Replies
pmconfig(1M) System Administration Commands pmconfig(1M)
NAME
pmconfig - Configure the Power Management system
SYNOPSIS
/usr/sbin/pmconfig [-r]
DESCRIPTION
The pmconfig utility sets the Power Management and suspend-resume configuration. User has permission to change Power Management configu-
ration using pmconfig only if he is allowed to do so according to PMCHANGEPERM keyword of /etc/default/power. User has permission to change
the suspend-resume configuration using pmconfig only if he is allowed to do so according to the CPRCHANGEPERM keyword of
/etc/default/power. See FILES section below for a description of the PMCHANGEPERM and CPRCHANGEPERM keywords of /etc/default/power.
Based on user permissions, pmconfig first resets the Power Management and/or suspend-resume state back to its default and then reads
the new Power Management and/or suspend-resume configuration from /etc/power.conf and issues the commands to activiate the new configu-
ration. The pmconfig utility is run at system boot. This utility can also be run from the command line after manual changes have been made
to the /etc/power.conf file. For editing changes made to the /etc/power.conf file to take effect, users must run pmconfig.
The preferred interface for changing Power Management and suspend-resume configuration is dtpower(1M).
OPTIONS
The following options are supported:
-r Reset Power Management and suspend-resume state to default and exit. User must have both Power Management and suspend-resume
configuration permission for this option.
EXIT STATUS
The following exit values are returned:
0 Upon successful completion
>0 An error occurred
FILES
/etc/power.conf System Power Management configuration file
/etc/default/power File that controls permissions for system's Power Management and suspend-resume features. The PMCHANGEPERM key-
board controls the Power Management configuration permissions, while the CPRCHANGEPERM keyword controls the sus-
pend-resume configuration permissions.
Allowed values are:
all Any user can change the configuration.
- No one except super-user can change the configuration.
<user1, user2,...> A user in this user list or a super-user can change the configuration. The user list is a space and/or comma (,)
separated list. You must enclose the list in < and > characters.
console-owner A user who owns the system console device node or a super-user can change the configuration.
The default values are PMCHANGEPERM=console-owner and CPRCHANGEPERM=console-owner.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWpmu |
+-----------------------------+-----------------------------+
|Interface stability |Unstable |
+-----------------------------+-----------------------------+
SEE ALSO
svcs(1), powerd(1M), power.conf(4), svcadm(1M), attributes(5), smf(5), cpr(7), pm(7D)
Using Power Management
NOTES
The pmconfig service is managed by the service management facility, smf(5), under the service identifier:
svc:/system/power:default
Administrative actions on this service, such as enabling, disabling, or requesting restart, can be performed using svcadm(1M). The ser-
vice's status can be queried using the svcs(1) command.
DIAGNOSTICS
If the program cannot open the configuration file, it prints an error message to standard error. If the program encounters a syntax error
in the configuration file, it prints an error message and the line number of the error in the configuration file. It then skips the rest
of the information on that line and processes the next line. Any configuration information already processed on the line containing the
error is used. If user does not have permission to change Power Management and/or suspend-resume configuration, and configuration file has
entries for which user doesn't have permission, it process the entries for which user has permissions and prints error on rest.
SunOS 5.10 12 Aug 2004 pmconfig(1M)