Sponsored Content
Full Discussion: getting Details of pf -ef
Top Forums Shell Programming and Scripting getting Details of pf -ef Post 302425501 by clx on Friday 28th of May 2010 07:44:12 AM
Old 05-28-2010
Do you have pwdx on you machine? its available on linux and solaris.

if yes,

Code:
pwdx 9905

i.e.
Code:
pwdx <PID>

this will give you the directory of executable of that particular process.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Details of compress -b

Hello. Can any1 help me with the compress command. The -b option takes the number of bits used for encoding. can u expalin why this number of bits is used and for what purpose. what is the maximum number we can provide? In SFU these number has a valod range between 12 and 16 y?? (1 Reply)
Discussion started by: rahulrathod
1 Replies

2. UNIX for Dummies Questions & Answers

How does one get HW details?

I need to do a full system inventory & pull details for: CPU Mem HDD (Size, config, partitions) Is there a single command to get this, or separate for each? Thanks, Gareth. (3 Replies)
Discussion started by: garethh
3 Replies

3. Red Hat

How to find the os and h/w details

Hi Need to know the version(suse/redhat) and processor info(x86/itanium/amd etc). I tried uname -a but cannot understand what is what... Linux myworkhost 2.4.21-4.ELsmp #1 SMP Fri Oct 3 17:52:56 EDT 2003 i686 i686 i386 GNU/Linux I dont have the root password, I can only ssh and have to... (3 Replies)
Discussion started by: amiri2000
3 Replies

4. UNIX for Dummies Questions & Answers

Details on available disk

Hi everybody.. I am looking for an alternative command to 'format' since this is allowed only to the root user. How do I do to get the same information as command format does here below ? AVAILABLE DISK SELECTIONS: 0. c0t0d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848> ... (4 Replies)
Discussion started by: Riddick61
4 Replies

5. HP-UX

HP-UX Server Details

OS: HP-UX I need the following details from HP-UX server. I don't have root login, so most of the commands require root privilege 1. No of cpu in the server 2. Total Memory, Free & Used 3. Space used and free space Any help would be highly appreciated (6 Replies)
Discussion started by: manijash
6 Replies

6. Shell Programming and Scripting

Collecting details

Hi all, I am having lots of oracle servers. I want to collect some health check details from all the server and report to one single centralized server. What would be best solution for this? OS: AIX Thanks Gopal (1 Reply)
Discussion started by: ilugopal
1 Replies

7. UNIX for Dummies Questions & Answers

at -l doesnt give details of the scheduled job. How to get the details?

I have scheduled couple of shell scripts to run using 'at' command. The o/p of at -l is: $ at -l 1320904800.a Thu Nov 10 01:00:00 2011 1320894000.a Wed Nov 9 22:00:00 2011 1320876000.a Wed Nov 9 17:00:00 2011 $ uname -a SunOS dc2prcrptetl2 5.9 Generic_122300-54 sun4u sparc... (2 Replies)
Discussion started by: superparticle
2 Replies

8. Solaris

Mem Details

<A href="mailto:root@sssdpmds01$"> root@sssdpmds01$ prstat -a PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/NLWP 13831 ogw 2613M 2108M cpu12 0 0 277:43:27 3.9% java/1201 4312 ogw 2641M 2092M sleep 59 0 562:45:51 2.1% java/1235 4469 ogw ... (2 Replies)
Discussion started by: jojo123
2 Replies

9. AIX

Need to get process details

Hello, Below are the list of files ls -lrt total 16 lr-x------ 43 oracle dba 0 Dec 5 14:27 root -> / lr-x------ 2 oracle dba 0 Dec 16 00:14 cwd -> /prodoragridcn_01/app/oracle/product/11203/dbs/ -r--r--r-- 1 oracle dba 0 Dec 16... (4 Replies)
Discussion started by: Vishal_dba
4 Replies

10. UNIX for Beginners Questions & Answers

Audit details

Hi All , I'm a fresher and don't have much knowledge on scripting. I want to extract log details like count of rows inserted , job start time and end time from Datastage log and want to insert into table. Can you please me in this (2 Replies)
Discussion started by: Srikavya_manda
2 Replies
NPM-RUN-SCRIPT(1)                                                                                                                NPM-RUN-SCRIPT(1)

NAME
npm-run-script - Run arbitrary package scripts SYNOPSIS
npm run-script <command> [--silent] [-- <args>...] alias: npm run DESCRIPTION
This runs an arbitrary command from a package's "scripts" object. If no "command" is provided, it will list the available scripts. run[-script] is used by the test, start, restart, and stop commands, but can be called directly, as well. When the scripts in the package are printed out, they're separated into lifecycle (test, start, restart) and directly-run scripts. As of ` https://blog.npmjs.org/post/98131109725/npm-2-0-0, you can use custom arguments when executing scripts. The special option -- is used by getopt https://goo.gl/KxMmtG to delimit the end of the options. npm will pass all the arguments after the -- directly to your script: npm run test -- --grep="pattern" The arguments will only be passed to the script specified after npm run and not to any pre or post script. The env script is a special built-in command that can be used to list environment variables that will be available to the script at run- time. If an "env" command is defined in your package, it will take precedence over the built-in. In addition to the shell's pre-existing PATH, npm run adds node_modules/.bin to the PATH provided to scripts. Any binaries provided by locally-installed dependencies can be used without the node_modules/.bin prefix. For example, if there is a devDependency on tap in your package, you should write: "scripts": {"test": "tap test/*.js"} instead of "scripts": {"test": "node_modules/.bin/tap test/*.js"} to run your tests. The actual shell your script is run within is platform dependent. By default, on Unix-like systems it is the /bin/sh command, on Windows it is the cmd.exe. The actual shell referred to by /bin/sh also depends on the system. As of ` https://github.com/npm/npm/releases/tag/v5.1.0 you can customize the shell with the script-shell configuration. Scripts are run from the root of the module, regardless of what your current working directory is when you call npm run. If you want your script to use different behavior based on what subdirectory you're in, you can use the INIT_CWD environment variable, which holds the full path you were in when you ran npm run. npm run sets the NODE environment variable to the node executable with which npm is executed. Also, if the --scripts-prepend-node-path is passed, the directory within which node resides is added to the PATH. If --scripts-prepend-node-path=auto is passed (which has been the default in npm v3), this is only performed when that node executable is not found in the PATH. If you try to run a script without having a node_modules directory and it fails, you will be given a warning to run npm install, just in case you've forgotten. You can use the --silent flag to prevent showing npm ERR! output on error. You can use the --if-present flag to avoid exiting with a non-zero exit code when the script is undefined. This lets you run potentially undefined scripts without breaking the execution chain. SEE ALSO
o npm help 7 scripts o npm help test o npm help start o npm help restart o npm help stop o npm help 7 config January 2019 NPM-RUN-SCRIPT(1)
All times are GMT -4. The time now is 04:17 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy