08-12-2008
Which process?
"A remote file being in use by a process..." Sorry, I don't understand what you mean. Remote in the terms if you can check from your Unix box if the file you are downloading is currently in use by some process on the XP box
Maybe you describe a bit more, what you want to know.
Basically on Unix you can check with "fuser" if files are in use.
10 More Discussions You Might Find Interesting
1. Programming
How can I transfer an open file description between two process? (1 Reply)
Discussion started by: xu_wen_dong
1 Replies
2. UNIX for Advanced & Expert Users
I have set the maximum no of file descriptors open in a process to the value 8192 using the following lines
set rlim_fd_max=8192
set rlim_fd_cur=8192
in the /etc/system file.
I rebooted the machine and the command ulimit -n / -Hn both display the limits as 8192. However when I run my... (2 Replies)
Discussion started by: lakshmankumar12
2 Replies
3. Shell Programming and Scripting
Hi,
I have an requirement of reading a long line of 7000 chars and cutting it
iam doing this :
while read -r x
do
echo $x
.........
done < `cat filename`
when iam doing this it is giving me "0403-016 Cannot find or open the file."
Can anyone let how this can be done. (2 Replies)
Discussion started by: karthee
2 Replies
4. Shell Programming and Scripting
We have a process that is running out of file handles. Is there some command line way to determine this that we can include into a cron script?
Please let me know
JAK (3 Replies)
Discussion started by: jakSun8
3 Replies
5. Programming
Can any one tell me is there any problem in reading the /proc/#/status file for finding out the exact process name..??? (4 Replies)
Discussion started by: clintoo
4 Replies
6. Shell Programming and Scripting
I would appreciate some help, please.
I have a file cutshellb.txt, which contains four report names (but it could be any number from 1 to x. The report suffix is not necessarily consecutive:
report3785
report3786
report3787
report3788
I have a shell script which attempts to read the... (3 Replies)
Discussion started by: Dicloflex
3 Replies
7. Solaris
Hi
want to know what file (descriptor+filename+socket) is being accessed by particular process on solaris.
Purpose : while running perf. test, needs to find where is the bottleneck.
We are providing concurrnet load for around 1 hr and needs to capture data related to file usage pattern... (1 Reply)
Discussion started by: raxitsheth
1 Replies
8. Red Hat
First post, sorry to be a bother but this one has been dogging me. I have a process user (java application server) that trips a resource limit every couple weeks and need help finding what limit we're hitting.
First, this is what's running:
This is the error when jobs are run or the... (0 Replies)
Discussion started by: Katahdin
0 Replies
9. Shell Programming and Scripting
Hi,
I am running this command through a shell script and getting the error mentioned in the subject line:
testing.awk -f x.txt TNAME
My testing.awk file contains something like
++++++++++++++++++
#!/usr/bin/awk -f
BEGIN{
TAB_NAME="INSERT_ONE_" ARGV ;
}
if ( $1=="JAM_ONE" &&... (1 Reply)
Discussion started by: kunwar
1 Replies
10. SCO
Hi
How to increase maximum number of open file in "sco xenix binary" running in "sco unix openserver 5.0.7" ?
I have changed "NOFILES" kernel parameter to 512, but xenix binray can't open more than 60.
tnx (4 Replies)
Discussion started by: javad1_maroofi
4 Replies
getpgid(2) System Calls Manual getpgid(2)
NAME
getpgid - Gets process group ID
LIBRARY
Standard C Library (libc.a)
SYNOPSIS
#include <sys/types.h>
#include <unistd.h>
pid_t getpgid( pid_t pid);
PARAMETERS
Specifies the process ID of the target process; zero implies the calling process.
DESCRIPTION
The getpgid() function returns the process group ID of the process specified by the process ID pid. Specifying a pid of 0 (zero) returns
the process group ID of the calling process.
RETURN VALUES
The getpgid() function returns the process group ID of the process specified. If there was an error, a value of -1 is returned and errno
is set to indicate the error.
ERRORS
If any of the following conditions occurs, the getpgid() function sets errno to the corresponding value: The specified process is not in
the same session as the calling process, and the calling process lacks sufficient privilege to read the specified process. As released,
Tru64 UNIX does not check the privilege. No process has been found that has a process ID identical to that specified by the pid parameter.
RELATED INFORMATION
Functions: exec(2), fork(2), setpgid(2) delim off
getpgid(2)