Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Determining if a process is active in UNIX Post 302887204 by Corona688 on Thursday 6th of February 2014 10:40:57 AM
Old 02-06-2014
ps pidnumber should return success if the process is alive and failure if the process is dead. It also prints text so redirect to /dev/null.
This User Gave Thanks to Corona688 For This Post:
 

10 More Discussions You Might Find Interesting

1. Windows & DOS: Issues & Discussions

unix and active directory

Hi Does anybody know the steps and requirements of the installation process of Windows Active Directory using Unix/Linux Bind DNS. I will appreciate if somebody gives the answer. (1 Reply)
Discussion started by: Darwin Rodrigue
1 Replies

2. UNIX for Dummies Questions & Answers

Active Directory and UNIX

Hello - I have a very vague question, which will probably result in vague answers because I don't have a lot of detailed information and I don't know a whole lot about active directory. Our Windows/NT admin has been rolling out Active Directory over the past several weeks and as time goes on,... (1 Reply)
Discussion started by: rm -r *
1 Replies

3. UNIX for Dummies Questions & Answers

Similiar to active directory in Unix?

Hi all, If Windows server have an active directory and active folder/mapping(maybe in unix NFS). Is there any similiar fuctions in unix. Actually if we have a hundred client in unix/linux with unix server, I want to manage user client and access control easier as in windows. Thank you in... (5 Replies)
Discussion started by: blesets
5 Replies

4. Shell Programming and Scripting

vmstat returns good val for cpuIdle put ps shows no active process

hi i'm running a shell script that checks the amount of cpu idle either using /usr/bin/vmstat 1 2 or sar 1 2 (on unixware) before i run some tests(if cpu idle greater than 89 I run them). These tests are run on many platforms, linux(suse, redhat) hp-ux, unixware, aix, solaris, tru64. ... (5 Replies)
Discussion started by: OFFSIHR
5 Replies

5. Shell Programming and Scripting

How to get active connections in Unix

Hi All, I have to find out how many active connections with other machines are there,then list the remote machine IP address and type of connection. When u say type of connection what does it means TCP,UDP ram. then what is UNIX active connection Please let me know as soon as possible. ... (3 Replies)
Discussion started by: jatin.jain
3 Replies

6. UNIX for Advanced & Expert Users

Integrating unix with Active Directory

Hey guys. Maybe this should go in Security, I'm not sure... At my work we make websites. Our development servers for these websites are run on a central Debian linux server which we can SSH into, which also contains all the files for these websites. These files are served to the entire... (1 Reply)
Discussion started by: nottrobin
1 Replies

7. UNIX for Advanced & Expert Users

Rollover/compress log from ACTIVE process

I have some Solaris processes that run weeks at a time that create rather large log files that I would like to archive/compress daily. Instead of stopping the process, what can be done so that the log file is backed up and shrunk, but the process can still log to the open file handle without major... (7 Replies)
Discussion started by: ckmehta
7 Replies

8. Programming

Determining file access perms for current process

Stupid question, but is there an ANSI C stdlib function that will do this for me? I want to pass the function a path and determine if the current process can read/write/execute on the path. I suppose I can whip something up using fstat and then determining the current process's user/group IDs and... (6 Replies)
Discussion started by: DreamWarrior
6 Replies

9. Shell Programming and Scripting

Q's on Active Process Time

Is it possible to display active processes' Year,Month,Day,Hour,Minute,Second info of process start time ? Preferbly in the format "YYYY/MM/DD HH:MM:SS" ? I tried to do this with the ps command but it only gets the time or date. Any help will be greatly appreciated. Cheers Steve (4 Replies)
Discussion started by: stevefox
4 Replies

10. Solaris

active directory equivalent for unix

At the moment we are integrating LDAP in our environment. Compared to Windows this process is much complicated and time consuming. With Windows you had Active Directory and if you create a new server, you just add it to the domain and your finished. Yes, I know Unix is not Windows. Are there... (1 Reply)
Discussion started by: misterx12345
1 Replies
explain_mknod_or_die(3) 				     Library Functions Manual					   explain_mknod_or_die(3)

NAME
explain_mknod_or_die - create a special or ordinary file and report errors SYNOPSIS
#include <libexplain/mknod.h> void explain_mknod_or_die(const char *pathname, mode_t mode, dev_t dev); int explain_mknod_on_error(const char *pathname, mode_t mode, dev_t dev); DESCRIPTION
The explain_mknod_or_die function is used to call the mknod(2) system call. On failure an explanation will be printed to stderr, obtained from the explain_mknod(3) function, and then the process terminates by calling exit(EXIT_FAILURE). The explain_mknod_on_error function is used to call the mknod(2) system call. On failure an explanation will be printed to stderr, obtained from the explain_mknod(3) function, but still returns to the caller. pathname The pathname, exactly as to be passed to the mknod(2) system call. mode The mode, exactly as to be passed to the mknod(2) system call. dev The dev, exactly as to be passed to the mknod(2) system call. RETURN VALUE
The explain_mknod_or_die function only returns on success, see mknod(2) for more information. On failure, prints an explanation and exits, it does not return. The explain_mknod_on_error function always returns the value return by the wrapped mknod(2) system call. EXAMPLE
The explain_mknod_or_die function is intended to be used in a fashion similar to the following example: explain_mknod_or_die(pathname, mode, dev); SEE ALSO
mknod(2) create a special or ordinary file explain_mknod(3) explain mknod(2) errors exit(2) terminate the calling process COPYRIGHT
libexplain version 0.52 Copyright (C) 2009 Peter Miller explain_mknod_or_die(3)
All times are GMT -4. The time now is 06:00 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy