Sponsored Content
Operating Systems Solaris How to install pkg lsof in Solaris 11? Post 302975501 by jim mcnamara on Tuesday 14th of June 2016 10:02:35 AM
Old 06-14-2016
Your system may have GNU utilities ( lsof is one) somewhere special.
Try the command:
Code:
which gawk

This will probably fail because your PATH variable is wrong.
So then try
Code:
find /usr -type f -name lsof

Example output might be:
Code:
/usr/sfw/bin/gawk

gawk is a GNU version of awk for Solaris - pick something else if you know one. like ggrep ...

Following this example then you would use this command:
Code:
ls -l  /usr/sfw/bin/gawk

Do you know where GNU coreutils and friends are on your Solaris system? lsof is in there.

Last edited by jim mcnamara; 06-14-2016 at 11:07 AM..
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

lsof in solaris

Hi .. I have written a cronjob to invoke a script that would transfer files based on some criteria. Consider folders A and B. Say I FTP a large file to A. Before the file gets fully transfered say the cronjob gets invoked. The script will move the file before its fully transfered. To detect... (1 Reply)
Discussion started by: champak
1 Replies

2. Solaris

Install pkg "SUNWxglrt" Solaris 10

Please, help me!!! I need install this pkg (SUNWxglrt) in Solaris 10 x86, but I've not found on DVD or internet. What do I do????? This pkg exists??? (p.s.- I sorry my English if mistake anythings. I Brazilian and have problems with English). (2 Replies)
Discussion started by: Victor_Neto
2 Replies

3. Solaris

Install Solaris pkg via web

here's a link shows how to install pkgs directly via http sat.lksf_sat_pkgweb.tex - Less known Solaris Features - wikis.sun.com (0 Replies)
Discussion started by: h@foorsa.biz
0 Replies

4. Solaris

How to install sun-python26.pkg

how to install sun-python26.pkg in solaris 10 with webstack? where i can find this file ? (1 Reply)
Discussion started by: yanto85
1 Replies

5. UNIX for Advanced & Expert Users

Linux column(1) from util-linux-ng for Solaris? Which *.pkg to install?

Hi On Linux systems there is a command called "column". column - columnate lists Synopsis column -tx] -c columns] -s sep] file ...] Description The column utility formats its input into multiple columns. Rows are filled before columns. Input is taken from file operands, or,... (3 Replies)
Discussion started by: slashdotweenie
3 Replies

6. Solaris

How extract SUNWexplo.7.1.pkg & SUNWexplu.7.1.pkg from install_stb.sh?

Hi all, Could please guideas how to extract SUNWexplo.7.2.pkg & SUNWexplu.7.2.pkg from install_stb.sh. I need to upgrade my Sun Explorer to 7.2 version from 7.1 . This what written in read me file about its installation: The Lightweight Availability Collection Tool (LWACT) is no... (1 Reply)
Discussion started by: manalisharmabe
1 Replies

7. Solaris

Pkg problem, one zone trying pkg.Oracle.com on port 1008

Hi Solaris Experts, The pkg utility on one of my non-global zones has stopped working, it's trying to connect to port 1008 at pkg.oracle.com I was using pkg successfully from this zone, but now it's showing this error: lzone1 $ pkg search xterm pkg: Some repositories failed to respond... (4 Replies)
Discussion started by: ad101
4 Replies

8. Solaris

Solaris 11 pkg update question

Hi, I am trying to update my Solaris 11 system's Java 7 version to 1.7.0.65. I tried to do a pke update, and it only updated it to version 60. When I do a pkg list or search, i can see 65 is available but it wont update to it. I am getting this error, and I do not know how to get... (1 Reply)
Discussion started by: BG_JrAdmin
1 Replies

9. Solaris

# pkg publisher gives bash: pkg: command not found

This is the operating system im using Oracle Solaris 10 9/10 s10s_u9wos_14a SPARC I need to install some packages by setting local repository While i run the below command # pkg publisher command returns bash: pkg: command not found while looking for /usr/bin/pkg i get bash:... (2 Replies)
Discussion started by: babinlonston
2 Replies

10. Solaris

PKG install from Solaris 11.2 text installer DVD

Sorry if this has been already answered. The solaris 11 IPS is frustrating me. I want to install a package group from the 11.2 ( in this case) Text Installer DVD. 1) is this possible? 2) if yes, how do I set the publisher to point the dvd mount point /media/Oracle_Solaris-11_2-Text-Sparc... (1 Reply)
Discussion started by: mrmurdock
1 Replies
pkg::create(3tcl)					       Tcl Built-In Commands						 pkg::create(3tcl)

__________________________________________________________________________________________________________________________________________________

NAME
pkg::create - Construct an appropriate 'package ifneeded' command for a given package specification SYNOPSIS
::pkg::create -name packageName -version packageVersion ?-load filespec? ... ?-source filespec? ... _________________________________________________________________ DESCRIPTION
::pkg::create is a utility procedure that is part of the standard Tcl library. It is used to create an appropriate package ifneeded com- mand for a given package specification. It can be used to construct a pkgIndex.tcl file for use with the package mechanism. OPTIONS
The parameters supported are: -name packageName This parameter specifies the name of the package. It is required. -version packageVersion This parameter specifies the version of the package. It is required. -load filespec This parameter specifies a binary library that must be loaded with the load command. filespec is a list with two elements. The first element is the name of the file to load. The second, optional element is a list of commands supplied by loading that file. If the list of procedures is empty or omitted, ::pkg::create will set up the library for direct loading (see pkg_mkIndex). Any num- ber of -load parameters may be specified. -source filespec This parameter is similar to the -load parameter, except that it specifies a Tcl library that must be loaded with the source com- mand. Any number of -source parameters may be specified. At least one -load or -source parameter must be given. SEE ALSO
package(3tcl) KEYWORDS
auto-load, index, package, version Tcl 8.3 pkg::create(3tcl)
All times are GMT -4. The time now is 02:10 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy