05-22-2009
i dont have the fuser or lsof commands and top doesn't seem to show anything relevant
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Sun E5000 running Solaris 8
I receive permission denied error when attempting to cancel a print job as root, user, or lp.
I found a tech tip that said to remove the tcp lp listeners but that didn't help. I can clean the queue using the old sun lpc command but my users need to be able to cancel... (2 Replies)
Discussion started by: Ron Restieri
2 Replies
2. UNIX for Advanced & Expert Users
Hi all
In Aix system Someone know i want to cancel the massage. if some user print something and user root deleting the job i got brodcast message " message from queueing system job number XXX has been deleteing from queue. <EOT> "
I use the cancel command (1 Reply)
Discussion started by: goldfelda
1 Replies
3. Shell Programming and Scripting
Hello,
I have bunch of shell scripts, which I want to execute every hour in the background. So I created a script mainscript.sh which executes these hourly scripts in the background. Script goes like this.
mainscript.sh
#!/bin/sh
nohup sh subscript1.sh &
nohup sh subscrip2.sh &
exit 0
... (5 Replies)
Discussion started by: papachi_2000
5 Replies
4. Solaris
Hello, I am sort of new to cron jobs, I have a cron job running everyday that no longer needs to.
How do I cancel it? (4 Replies)
Discussion started by: komputersman
4 Replies
5. Shell Programming and Scripting
once i have stoped process by ctrl+z then i want to run it again
in nohup plz help me out. (6 Replies)
Discussion started by: RahulJoshi
6 Replies
6. AIX
Hi,
I ran a program like following sample.sh &
Later I realized that this job will take more hours to complete. Since it consumed 2 hours dat aprocessing and I don't want to terminate and then start the job like
nohup sample.sh &
Can you please tell me, is it possible to make this job no... (5 Replies)
Discussion started by: shahnazurs
5 Replies
7. HP-UX
hi every body
i used " lpstat -o" to show the printer jobs and i already canceld it by "cancel -e -f jobid"
but the problem i found when used " lpstat -o" again it said that job in progress i think because it in the buffer but i don't know how to clear the printer. (9 Replies)
Discussion started by: maxim42
9 Replies
8. UNIX for Dummies Questions & Answers
My job is launched using this command: I'm at home and having VPN drops so I used nohup and background.
nohup perf_mon -c rating_4_multi,cfg &
The main script is PID 26119, and the sub task under it is 26118 which is not running - just sits there. 26119 runs forever but nothing else runs. I... (2 Replies)
Discussion started by: ido1957
2 Replies
9. Shell Programming and Scripting
load_cursor_stmt()
{
ls /db/admin/ddl/rmn01000/load_cursor*.sql|while read file
do
echo "${file}"
`nohup db2 -tvf "$file" \&`
done
}Error:
-------
/admin/ddl/rmn01000/load_cursor5.sql /db/admin/ddl/rmn01000/load_cursor6.sql
+ read file
+ echo... (3 Replies)
Discussion started by: Hangman2
3 Replies
10. Shell Programming and Scripting
Shell : bash
OS : Oracle Linux 6.4
I want to save the ouput of a nohup command to file other than nohup.out . Below are my 3 attempts.
For both Attempt1 and Attempt2 , the redirection logs the output correctly to the output file. But I get the error "ignoring input and redirecting stderr to... (7 Replies)
Discussion started by: kraljic
7 Replies
fuser(2) System Calls Manual fuser(2)
NAME
fuser - Reports PIDs and UIDs for files, file systems and/or the devices attached to them.
SYNOPSIS
#include <sys/fuser.h>
int fuser(
char *file,
long flag,
struct f_user fuser_array[],
long sizeof_fuser_array );
PARAMETERS
Specifies the file name. Specifies one of the following values. If none of the following are values are specified, the default is to
match open files. Matches only file ids. Provides mount point matching. Matches deleted files on the mount point specified by file.
Specifies the array. Specifies the number of elements in the fuser array.
DESCRIPTION
The fuser function reports a list of PIDs and UIDs that are associated with a specified file, file system, and/or the devices that are
attached to them.
The fuser function can report back additional information about "matches" by ORing one of the following constants that can be passed back
in the member fu_flags: Current directory Current directory Parent of the current directory At least one file open, but the number open is
not known. Executable image. Controlling terminal Trace At least one file is mmapped
RETURN VALUES
On success, the fuser function returns the number of fuser_array elements that were found. The contents of the structure are as follows:
typedef struct f_user {
pid_t fu_pid;
int fu_flags;
uid_t fu_uid; } f_user_t;
If an error has occurred, the fuser function returns -1 and sets errno to indicate the error.
ERRORS
If the fuser function fails, errno may be set to one of the following values: The array is not large enough to hold the number of array
elements returned or the array structure cannot be filled The file parameter specified does not exist
EXAMPLES
Open regular files and special files are matched using the flag parameter set at 0L. Thus, if process 127 and 3220 open the /home/try file
simultaneously and the fuser function is active, the PIDs and UIDs associated with the home/try file are reported as in the following exam-
ple:
fuser("/home/try", 0L, fuser_array,
(long) (sizeof (fuser_array)/sizeof(fuser_array[0])); Similarly, if the special device file /dev/ttyp2 is open by process 32,
then that PID and its associated UID are reported as in the following example:
fuser("/dev/ttyp2", 0L, fuser_array,
(long) (sizeof (fuser_array)/sizeof(fuser_array[0]));
fuser(2)