Sponsored Content
Operating Systems Solaris prtdiag command works only from commandline manually Post 302712015 by fpmurphy on Monday 8th of October 2012 10:32:37 AM
Old 10-08-2012
Sounds like the picl service is not running for some reason. To check:
Code:
# svcs -a | grep picl

To start picl
Code:
# svcadm enable svc:/system/picl:default

 

10 More Discussions You Might Find Interesting

1. Solaris

equivalent prtdiag and prtconf command

I have a very old sunOS 4.xx server on a SPARCstation 5. What is the command , if any, that is similar to prtdiag and prtconf? Thanks (4 Replies)
Discussion started by: antalexi
4 Replies

2. UNIX for Dummies Questions & Answers

Works Manually - not in CRON

I've got a ksh script that works like a charm when I run it manually. When I set it up in a cron, I keep getting this error in my log: syntax error at line 90: `$' unexpected Here's my snippet of code starting at line 90: while ] do sleep 900 done What's the... (5 Replies)
Discussion started by: dstinsman
5 Replies

3. Shell Programming and Scripting

Effect of using eval to execute a command as opposed to writing it on the commandline

cmd='date | wc' or cmd="date | wc" $cmdIf this script is executed, an error is generated. The reason written was that "The execution fails because the pipe is not expanded and is passed to date as an argument". What is meant by expansion of pipe. When we execute date | wc on the command line, it... (2 Replies)
Discussion started by: daudiam
2 Replies

4. Shell Programming and Scripting

SH script, variable built command fails, but works at command line

I am working with a sh script on a solaris 9 zone (sol 10 host) that grabs information to build the configuration command line. the variables Build64, SSLopt, CONFIGopt, and CC are populated in the script. the script includes CC=`which gcc` CONFIGopt=' --prefix=/ --exec-prefix=/usr... (8 Replies)
Discussion started by: oly_r
8 Replies

5. Shell Programming and Scripting

Why my git command has no output in crontab but works well run this script manually?

cat /home/lyang001/update.sh #!/bin/sh #shopt -s expand_aliases HOME_DIR=/home/lyang001/updates UPDATE_MAIL=${HOME_DIR}/updates.mail rm $UPDATE_MAIL -rf cd $HOME_DIR/wr-kernel git log --no-merges --since="20 day ago" --name-status --pretty=format:"%an %h %s %cd" origin/WRLINUX_5_0_1_HEAD >>... (2 Replies)
Discussion started by: yanglei_fage
2 Replies

6. UNIX for Dummies Questions & Answers

While trying to load .so file manually using command its failing

Hi all, I am newbie to linux environment. I was trying to run an .so file manually which in turn call a method in bin folder. Command given, XXX_MODULES=libxxx.so /opt/servicename/bin/methodname -Le -c /opt/servicename/etc/methodname/methodname.conf -n -C -t -m "" When i tried to... (1 Reply)
Discussion started by: sharathpadman
1 Replies

7. UNIX for Advanced & Expert Users

While trying to load .so file manually using command its failing

Hi all, I am newbie to linux environment. I was trying to run an .so file manually which in turn call a method in bin folder. Command given, XXX_MODULES=libxxx.so /opt/servicename/bin/methodname -Le -c /opt/servicename/etc/methodname/methodname.conf -n -C -t -m "" When i tried to execute... (1 Reply)
Discussion started by: sharathpadman
1 Replies

8. Shell Programming and Scripting

Calling bash script works when called manually but not via Cron?

Hi, I've got a Bash backup script I'm trying to run on a directory via a cron job nightly. If I ssh in and run the script manually it works flawlessly. If I set up the cron to run evertything is totally messed up I don't even know where to begin. Basically the path structure is ... (6 Replies)
Discussion started by: wyclef
6 Replies

9. UNIX for Dummies Questions & Answers

Execution problem with Cron: Script works manually but not w/Cron. Why?

Hello gurus, I am making what I think is a simple db2 call from within a shell script but I am having difficulty producing the desired report when I run the script shown below from a shell script in cron. For example, my script and the crontab file setup is shown below: #!/bin/ksh db2... (3 Replies)
Discussion started by: okonita
3 Replies

10. UNIX for Beginners Questions & Answers

"Mv" command does not work in loop, but works manually

Hi there, this may be a beginner's error, but I've been unable to find a solution on my own and by googling, and now I am really stuck on it. I am simply trying to move directories called for example CAT_Run01.ica to a directory with the corresponding number, Run01, in the same directory. For... (2 Replies)
Discussion started by: andrevol
2 Replies
libpicl(3PICL)						      PICL Library Functions						    libpicl(3PICL)

NAME
libpicl - PICL interface library SYNOPSIS
cc [ flag ... ] file ... -lpicl [ library ... ] #include <picl.h> DESCRIPTION
The PICL interface is the platform-independent interface for clients to access the platform information. The set of functions and data structures of this interface are defined in the <picl.h> header. The information published through PICL is organized in a tree, where each node is an instance of a well-defined PICL class. The functions in the PICL interface allow the clients to access the properties of the nodes. The name of the base PICL class is picl, which defines a basic set of properties that all nodes in the tree must possess. The following ta- ble shows the property set of a picl class node. +-----------------------------+------------------------------------+ | Property Name | Property Value | +-----------------------------+------------------------------------+ |name |The name of the node | +-----------------------------+------------------------------------+ |_class |The PICL class name of the node | +-----------------------------+------------------------------------+ |_parent |Node handle of the parent node | +-----------------------------+------------------------------------+ |_child |Node handle of the first child node | +-----------------------------+------------------------------------+ |_peer |Node handle of the next peer node | +-----------------------------+------------------------------------+ Property names with a a leading underscore ('_') are reserved for use by the PICL framework. The property names _class, _parent, _child, and _peer are reserved names of the PICL framework, and are used to refer to a node's parent, child, and peer nodes, respectively. A client shall access a reserved property by their names only as they do not have an associated handle. The property name is not a reserved property, but a mandatory property for all nodes. Properties are classified into different types. Properties of type integer, unsigned-integer, and float have integer, unsigned integer, and floating-point values, respectively. A table property type has the handle to a table as its value. A table is a matrix of properties. A reference property type has a handle to a node in the tree as its value. A reference property may be used to establish an association between any two nodes in the tree. A timestamp property type has the value of time in seconds since Epoch. A bytearray property type has an array of bytes as its value. A charstring property type has a nul (' ') terminated sequence of ASCII characters. The size of a property specifies the size of its value in bytes. A void property type denotes a property that exists but has no value. The following table lists the different PICL property types enumerated in picl_prop_type_t. +-----------------------------+-----------------------------+ | Property Type | Property Value | +-----------------------------+-----------------------------+ |PICL_PTYPE_VOID |None | +-----------------------------+-----------------------------+ |PICL_PTYPE_INT |Is an integer | +-----------------------------+-----------------------------+ |PICL_PTYPE_UNSIGNED_INT |Is an unsigned integer | +-----------------------------+-----------------------------+ |PICL_PTYPE_FLOAT |Is a floating-point number | +-----------------------------+-----------------------------+ |PICL_PTYPE_REFERENCE |Is a PICL node handle | +-----------------------------+-----------------------------+ Reference Property Naming Convention Reference properties may be used by plug-ins to publish properties in nodes of different classes. To make these property names unique, their names must be prefixed by _picl_class_name_, where picl_class_name is the class name of the node referenced by the property. Valid PICL class names are combinations of uppercase and lowercase letters 'a' through 'z', digits '0' through '9', and '-' (minus) characters. The string that follows the '_picl_class_name_' portion of a reference property name may be used to indicate a specific property in the referenced class, when applicable. Property Information The information about a node's property that can be accessed by PICL clients is defined by the picl_propinfo_t structure. typedef struct { picl_prop_type_t type; /* property type */ unsigned int accessmode; /* read, write */ size_t size; /* item size or string size */ char name[PICL_PROPNAMELEN_MAX]; } picl_propinfo_t; The type member specifies the property value type and the accessmode specifies the allowable access to the property. The plug-in module that adds the property to the PICL tree also sets the access mode of that property. The volatile nature of a property created by the plug- in is not visible to the PICL clients. The size member specifies the number of bytes occupied by the property's value. The maximum allow- able size of property value is PICL_PROPSIZE_MAX, which is set to 512KB. Property Access Modes The plug-in module may publish a property granting a combination of the following access modes to the clients: #define PICL_READ 0x1 /* read permission */ #define PICL_WRITE 0x2 /* write permission */ Property Names The maximum length of the name of any property is specified by PICL_PROPNAMELEN_MAX. Class Names The maximum length of a PICL class name is specified by PICL_CLASSNAMELEN_MAX. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ SEE ALSO
libpicl(3LIB), attributes(5) SunOS 5.11 28 Mar 2000 libpicl(3PICL)
All times are GMT -4. The time now is 07:27 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy