06-02-2012
Are the file systems shared (clustered or nfs mounts) across machines?
In other words how do you expect to have a process on machine a see the files open on another, say machine b?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I am writing a shell script to invoke a C++ program. Before I start the C++ program (oi7loadbalancer), I am checking if the process is already running. I start the process only if it is not already running. I have the following check in my script.
proccount=`ps -f -u $USER_NAME | grep... (8 Replies)
Discussion started by: sim
8 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I would like to run a process in my gentoo machine from a consolte (putty) in
Windows and would like that this process keep on going when I close the console in Windows (i.e closing this session).
The process should take a long time and I do not want to leave the Windows machine running... (3 Replies)
Discussion started by: pbasil
3 Replies
3. Shell Programming and Scripting
I have this script:
-------------------------------------------------------
#!/bin/ksh
#
if ] ||
]
then
echo "Executing main_load.sh script"
/usr1/psc_load/jobs/cron/main_load.sh "ods"
else
echo "File not found, do nothing"
fi
exit 0
... (4 Replies)
Discussion started by: rose1207
4 Replies
4. Solaris
Hi,
I want to check whether the ftpd process is running or not.
Is there any solaris command that can help me in this?
Or is there any other way in which I can check this?
Is it possible to check programmatically (preferrably in a C++ code)?
Eagerly awaiting a reply.
Thanx. (8 Replies)
Discussion started by: The.White.Rider
8 Replies
5. UNIX for Advanced & Expert Users
I have a requirement to check how long a process is running on unix system.If i use ps -ef i am getting the following message
guest 2453638 1998920 0 16:16:05 - 0:00 dsapi_slave 9 8 0
but this is showing only time not the date.Can any one please advice me any script to find out how... (2 Replies)
Discussion started by: ukatru
2 Replies
6. Shell Programming and Scripting
Hi ,
I have a csh code below which check the process if it's running.
Can any expert advise me on the following:
1) what does this notationmean ">!" and how is it different from the append ">" notation ?
2) how does "setenv" work in this code ?
# Check whether there is a running... (3 Replies)
Discussion started by: Raynon
3 Replies
7. UNIX and Linux Applications
Hi
I would like to check if an instance of a script is already running.
I've seen many different examples, but I haven't the slightest idea as to how to do this.
Can you please help.
Thank you. (5 Replies)
Discussion started by: ladyAnne
5 Replies
8. Programming
How to I check if a process is running in C? I'm trying to use ps aux |grep "process name" but failing in doing that. How do I do that?
Thanks, (1 Reply)
Discussion started by: cprogdude
1 Replies
9. Shell Programming and Scripting
Hi,
I check if the process is running or not using the below.
/usr/ucb/ps auxww | grep 109 |grep rmi | awk '{print $2}'
9718
Thus we see 9718 is the PID.
It return blank if the process is not running.
I need to perform some action if the process is not running and leave it if... (8 Replies)
Discussion started by: shifahim
8 Replies
10. UNIX for Beginners Questions & Answers
Hi Team ,
I have one process named as cec_analysiseool that is running on unix box machine now i want to kill this process so please advise what will be the ideal command to kill this , what i have tried is :confused:
kill -9 `ps -ef | grep cec_analysiseool | grep -v grep | awk '{print $2}'` (2 Replies)
Discussion started by: unclesamm
2 Replies
LEARN ABOUT OPENSOLARIS
umount2
umount(2) System Calls umount(2)
NAME
umount, umount2 - unmount a file system
SYNOPSIS
#include <sys/mount.h>
int umount(const char *file);
int umount2(const char *file, int mflag);
DESCRIPTION
The umount() function requests that a previously mounted file system contained on a block special device or directory be unmounted. The
file argument is a pointer to the absolute pathname of the file system to be unmounted. After unmounting the file system, the directory
upon which the file system was mounted reverts to its ordinary interpretation.
The umount2() function is identical to umount(), with the additional capability of unmounting file systems even if there are open files
active. The mflag argument must contain one of the following values:
0 Perform a normal unmount that is equivalent to umount(). The umount2() function returns EBUSY if there are open files active
within the file system to be unmounted.
MS_FORCE Unmount the file system, even if there are open files active. A forced unmount can result in loss of data, so it should be used
only when a regular unmount is unsuccessful. The umount2() function returns ENOTSUP if the specified file systems does not
support MS_FORCE. Only file systems of type nfs, ufs, pcfs, and zfs support MS_FORCE.
RETURN VALUES
Upon successful completion, 0 is returned. Otherwise, -1 is returned and errno is set to indicate the error.
ERRORS
The umount() and umount2() functions will fail if:
EACCES The permission bits of the mount point do not permit read/write access or search permission is denied on a component of the
path prefix.
The calling process is not the owner of the mountpoint.
The mountpoint is not a regular file or a directory and the caller does not have all privileges available in a its zone.
The special device device does not permit read access in the case of read-only mounts or read-write access in the case of
read/write mounts.
EBUSY A file on file is busy.
EFAULT The file pointed to by file points to an illegal address.
EINVAL The file pointed to by file is not mounted.
ELOOP Too many symbolic links were encountered in translating the path pointed to by file.
ENAMETOOLONG The length of the file argument exceeds PATH_MAX, or the length of a file component exceeds NAME_MAX while
_POSIX_NO_TRUNC is in effect.
ENOENT The file pointed to by file does not exist or is not an absolute path.
ENOLINK The file pointed to by file is on a remote machine and the link to that machine is no longer active.
ENOTBLK The file pointed to by file is not a block special device.
EPERM The {PRIV_SYS_MOUNT} privilege is not asserted in the effective set of the calling process.
EREMOTE The file pointed to by file is remote.
The umount2() function will fail if:
ENOTSUP The file pointed to by file does not support this operation.
USAGE
The umount() and umount2() functions can be invoked only by a process that has the {PRIV_SYS_MOUNT} privilege asserted in its effective
set.
Because it provides greater functionality, the umount2() function is preferred.
SEE ALSO
mount(2), privileges(5)
SunOS 5.11 4 Aug 2008 umount(2)