Sponsored Content
Top Forums UNIX for Dummies Questions & Answers UNIX System Call for creating process Post 302186185 by Franklin52 on Wednesday 16th of April 2008 03:36:28 PM
Old 04-16-2008
Please read the:

https://www.unix.com/unix-dummies-que...om-forums.html

Don't double posts questions, continue here:

https://www.unix.com/unix-advanced-ex...e-process.html

Thread closed.
 

10 More Discussions You Might Find Interesting

1. Programming

sigwait system call in UNIX signal

Hi Everybody, I have gone through man of sigwait and new to UNIX signals. Could anyone explain me about the following lines mentioned in sigwait man help ? "The selection of a signal in set is independent of the signal mask of the calling thread or LWP. This means a thread or LWP can ... (1 Reply)
Discussion started by: md7ahuja
1 Replies

2. IP Networking

any system call in unix to access ip routing table

hi is there any system call by which ip routing table can be accessed. (1 Reply)
Discussion started by: vinodkumar
1 Replies

3. UNIX for Advanced & Expert Users

how to differentiate system call from library call

Hi, Ho do I differentiate system call from library call? for example if I am using chmod , how do I find out if it is a system call or library call? Thanks Muru (2 Replies)
Discussion started by: muru
2 Replies

4. UNIX for Advanced & Expert Users

Creating System Call, need PID of caller

Hey I am creating a new system call that needs to know the PID of the calling process. I am new to coding in the kernel, so I don't know if this is possible... Any help would be nice. Thanks! Hapatchi (4 Replies)
Discussion started by: Hapatchi
4 Replies

5. Shell Programming and Scripting

script to monitor the process system when a process from user takes longer than 15 min run.

get email notification from from system when a process from XXXX user takes longer than 15 min run.Let me know the time estimation for the same. hi ,any one please tell me , how to write a script to get email notification from system when a process from as mentioned above a xxxx user takes... (1 Reply)
Discussion started by: kirankrishna3
1 Replies

6. Programming

UNIX system call in COBOL

Hi, The UNIX system call inside the COBOL program is doing the specified command correctly. MOVE W080-UNZIP-FILE-COMMAND TO W080-OUTPUT-COMMAND CALL "SYSTEM" USING W080-OUTPUT-COMMAND RETURNING W080-SYS-CALL-STATUS BUT The problem is, the following keeps on showing on the log file... (2 Replies)
Discussion started by: joyAV
2 Replies

7. Shell Programming and Scripting

creating an automation process in unix .

hi i need shell script in ksh for the automation process in informtica. The automation process is like this . i have a folder in unix . when this folder gets updated (like if a file or files is/are added to the folder) an event in informatica is triggered and after the process is done in... (2 Replies)
Discussion started by: kumar8887
2 Replies

8. UNIX for Advanced & Expert Users

Unix script seems to be momentarily creating child process for unknown reason

Hi, I have a unix script that basically has a while loop inside which it checks Oracle database for certain records. If it finds the records, it does some processing and then goes back to the while loop. If it doesnot find any matching records, then it sleeps for 30 seconds and then goes back to... (17 Replies)
Discussion started by: waavman
17 Replies

9. Homework & Coursework Questions

Creating a .profile, displaying system variables, and creating an alias

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Here is what I am supposed to do, word for word from my assignment page: 1. Create/modify and print a... (2 Replies)
Discussion started by: Jagst3r21
2 Replies

10. UNIX for Beginners Questions & Answers

Exit() system call verses process signals

Hello and thanks in advance for any help anyone can offer me I've been reading up on process signal calls (sighup, sigint, sigkill & sigterm) and I understand they all have different methods of terminating a running process. From what I've also read is a exit() actually terminates a process. ... (2 Replies)
Discussion started by: bodisha
2 Replies
setpgid(2)							System Calls Manual							setpgid(2)

NAME
setpgid, setpgrp - Sets the process group ID SYNOPSIS
#include <unistd.h> int setpgid( pid_t process_id, pid_t process_group_id); pid_t setpgrp(void); Application developers may want to specify an #include statement for <sys/types.h> before the one for <unistd.h> if programs are being developed for multiple platforms. The additional #include statement is not required on Tru64 UNIX systems or by ISO or X/Open standards, but may be required on other vendors' systems that conform to these standards. The following alternate declaration for setpgrp() does not conform to current standards and is supported only for backward compatibility: int setpgrp( pid_t process_id, pid_t process_group_id); STANDARDS
Interfaces documented on this reference page conform to industry standards as follows: setpgid(): XSH5.0 setpgrp(): SVID 3, XSH5.0 Refer to the standards(5) reference page for more information about industry standards and associated tags. PARAMETERS
Specifies the ID of the process whose process group ID is to be changed. Specifies the new process group ID. DESCRIPTION
Use the setpgid() function to add a process to an existing process group or to create a new process group within a process's session. The setpgid() function does not change the process group ID of a session leader. The setpgid() function sets the process group ID of the process identified by the process_id parameter. The process group ID is set to the value specified in the process_group_id parameter. If the process_id parameter contains 0 (zero), the setpgid() function sets the process group ID of the calling process. The new value of the process group ID is the one specified in the process_group_id parameter. If the process_group_id parameter contains 0 (zero), the setpgid() function sets the process group ID of the specified process using the process group ID of the calling process. The specified process is the one identified by the process_id parameter. The setpgid() function supports job control. The setpgrp() function sets the process group ID of the calling process to be equal to the process ID of the calling process. If the func- tion creates a new session, the new session has no controlling terminal. This function does not change the process group ID of a session leader. NOTES
[Tru64 UNIX] When compiled in the X/Open UNIX environment, calls to the setpgrp() function are internally renamed by prepending _E to the function name. When you are debugging a module that includes the setpgrp() function and for which _XOPEN_SOURCE_EXTENDED has been defined, use _Esetpgrp to refer to the setpgrp() call. See standards(5) for further information. [Tru64 UNIX] The backward-compatible version of the setpgrp() function is supported for use outside of the System V habitat or X/Open- UNIX environment. This version of setpgrp( behaves like the setpgid() function. In this case, you specify a process ID and process group ID as parameters in the call to setpgrp(). The setpgrp() function does not change the process group ID of a session leader. RETURN VALUES
Upon successful completion, the setpgid() function returns a value of 0 (zero). Otherwise, the function returns a value of -1 and sets errno to indicate the error. Upon successful completion, the setpgrp() function returns the new process group ID. [Tru64 UNIX] The alternate version of setpgrp() returns a value of 0 (zero) on successful completion. Otherwise, the function returns a value of -1 and sets errno to indicate the error. ERRORS
The setpgid() function sets errno to the specified values for the following conditions: The value of the process_id parameter matches the process ID of a child process of the calling process and the child process has successfully executed one of the exec() functions. The value of the process_group_id parameter is less than or equal to 0 (zero), or is not a valid process ID. The value of the process_group_id parameter is a valid process ID, but that process is not in the same session as the calling process. The process indicated by the process_id parameter is a session leader. The value of the process_id parameter matches the process ID of a child process of the calling process and the child process is not in the same session as the calling process. The value of the process_group_id parameter is valid but does not match the process ID of the process indicated by the process_id parameter, and there is no process with a process group ID that matches the value of the process_group_id parameter in the same ses- sion as the calling process. The value of the process_id parameter does not match the process ID of the calling process or of a child process of the calling process. No errors are defined for the standard version of the setpgrp() function. [Tru64 UNIX] The backward-compatible version of setpgrp() sets errno to the same values as setpgid(). RELATED INFORMATION
Functions: exec(2), fork(2), getpid(2), getsid(2), kill(2) Standards: standards(5) Guides: Programmer's Guide delim off setpgid(2)
All times are GMT -4. The time now is 09:02 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy