Sponsored Content
Full Discussion: Pbs script path from the id
Top Forums Shell Programming and Scripting Pbs script path from the id Post 302981584 by jim mcnamara on Thursday 15th of September 2016 06:06:48 AM
Old 09-15-2016
Different UNIX-like systems have different tools - Solaris: pfiles, many systems have either fuser or lsof or both.

So, if you told us what UNIX and shell you are running you would get much better answers. rbatte1's answer will work well on systems with lsof.
This User Gave Thanks to jim mcnamara For This Post:
 

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Maintain full path of a script in a var when sourcing it from a different script

Hi All, I've searched through the forum for a solution to this problem, but I haven't found anything. I have 2 script files that are in different directories. My first script, let's call it "/one/two/a.sh" looks like this: #!/bin/sh IN_DIR=`dirname $0` CUR_DIR=`pwd` cd $IN_DIR... (4 Replies)
Discussion started by: mrbluegreen
4 Replies

2. Shell Programming and Scripting

Script Path Help

I have the following paths in a flat file /app00/app/mdbsorap/oradata/mfprd/system01.dbf /app00/app/mdbsorap/oradata/mfprd/system02.dbf /app00/app/mdbsorap/oradata/mfprd/system03.dbf /app00/app/mdbsorap/oradata/mfprd/system04.dbf /app00/app/mdbsorap/oradata/mfprd/system05.dbf what i would... (2 Replies)
Discussion started by: gseptember
2 Replies

3. Shell Programming and Scripting

absolute path for a script ran with relative path

I have a script in which i want to print absolute path of the same script irrespective of path from where i run script. I am using test.sh: echo "pwd : `pwd`" echo "script name: $0" echo "dirname: `dirname $0`" when i run script from /my/test/dir/struct as ../test.sh the output i... (10 Replies)
Discussion started by: rss67
10 Replies

4. High Performance Computing

PBS - restrict total number of processors per user

Hello everyone! I am a bit inexperienced with administering queueing programs. I installed Torque (a PBS derivative) on a Linux cluster and it is running well. There is one annoying problem though: users can run massively parallel jobs and serial jobs too. Almost all users do a mix of the two. I... (0 Replies)
Discussion started by: gnuplot
0 Replies

5. Shell Programming and Scripting

Problem with running awk script in pbs file

Hi guys I have a problem with one module of my script. It's awk script running in pbs file - It's working when I make a call from pbs to separate awk only file like this but when I try to execute this code in pbs file it fails awk 'BEGIN { max = -1000; min = 1000 } { {$4 == "TCO"} ... (2 Replies)
Discussion started by: grincz
2 Replies

6. What is on Your Mind?

Pearls before swine could be abbreviated PBS

I have these mental shorthands, e.g., OPC for other people's code/children, so when a wise suggestion is ignored, I thought, pearls before swine, but the acronym PBS is already taken. Maybe it's an inside joke? (0 Replies)
Discussion started by: DGPickett
0 Replies

7. UNIX for Advanced & Expert Users

Command to see the logical volume path, device mapper path and its corresponding dm device path

Currently I am using this laborious command lvdisplay | awk '/LV Path/ {p=$3} /LV Name/ {n=$3} /VG Name/ {v=$3} /Block device/ {d=$3; sub(".*:", "/dev/dm-", d); printf "%s\t%s\t%s\n", p, "/dev/mapper/"v"-"n, d}' Would like to know if there is any shorter method to get this mapping of... (2 Replies)
Discussion started by: royalibrahim
2 Replies

8. UNIX for Beginners Questions & Answers

Convert Relative path to Absolute path, without changing directory to the file location.

Hello, I am creating a file with all the source folders included in my git branch, when i grep for the used source, i found source included as relative path instead of absolute path, how can convert relative path to absolute path without changing directory to that folder and using readlink -f ? ... (4 Replies)
Discussion started by: Sekhar419
4 Replies
mountall(1M)															      mountall(1M)

NAME
mountall, umountall - mount and unmount multiple file systems SYNOPSIS
FStype] [file_system_table | FStype] DESCRIPTION
is used to mount file systems according to file_system_table. By default, is the file_system_table. If a dash is specified, reads file_system_table from the standard input; the standard input must be in the same format as the Before each file system is mounted, a check is done using (see fsck(1M)) to ensure that the file system is mountable. If the file system is not mountable, it is repaired by before the mount is attempted. causes all mounted file systems except the non-removable file systems such as to be unmounted. Options and recognize the following options: Specify the file system type (FStype) to be mounted or unmounted. Specify action on local file systems only. Specify action on remote file systems only. Send a signal to processes that have files opened. Attempt to mount all the unmounted file systems. This option will not perform the file system consistency check and repair. Perform the file system consistency check and repair on all unmounted file system. This option will not mount the file systems. DIAGNOSTICS
Error and warning messages may originate from or See fsck(1M), mount(1M), or fuser(1M) to interpret the error and warning messages. EXAMPLES
Mount all unmounted file systems listed in Mount all local file systems listed in Mount all remote file systems listed in Mount all local hfs file systems: Unmount all NFS file systems and kill any processes that have files opened in the file system: WARNINGS
especially with the option, should be used with extreme caution, because it can cause severe damage. The option may not be available in future releases. may not be effective with some cases of LOFS file systems. FILES
Static information about the file systems Mounted file system table SEE ALSO
fsck(1M), mount(1M), fuser(1M), mnttab(4), fstab(4), signal(2) mountall(1M)
All times are GMT -4. The time now is 03:31 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy