08-22-2007
Hi,
i want to retreive the background process to foreground process in SUN OS UNIX. how can it possiple...?
Regards,
Siva.P
Bangalore
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi all,
why "vi" acts differently is single user mode?
Does anyone help ?
I am using "x" to delete and it keeps messing up.
Please help
Thanks (2 Replies)
Discussion started by: guest100
2 Replies
2. UNIX for Dummies Questions & Answers
how do you boot into single user mode?
RedHat 7.1
Caldera 2.4 (2 Replies)
Discussion started by: zorro81
2 Replies
3. UNIX for Advanced & Expert Users
Is there another way of switching to single user mode except by typing
/usr/sbin/shutdown 0 ???
:rolleyes: (5 Replies)
Discussion started by: kekanap
5 Replies
4. UNIX for Advanced & Expert Users
How to diable the single user mode..
what i want is dat my users are unable to boot in single user mode via GRUB.. (1 Reply)
Discussion started by: ankit.jss
1 Replies
5. AIX
Hi All,
I have AIX 5.1 & I forgot the root password. I find out the solution is to boot in single-mode and remove the root password from the /etc/passwd file. My question is how to boot in single-mode? Also is there any password required when booting in this mode? (9 Replies)
Discussion started by: aldowsary
9 Replies
6. UNIX for Dummies Questions & Answers
How to enter single user mode when UNIX/LINUX system is starting? (1 Reply)
Discussion started by: gkreddy
1 Replies
7. UNIX for Dummies Questions & Answers
hello ppl, someone must be able to help with this --> I have an old NCR tower 32 with an ADDS terminal running a unix version 020102 (Im not sure if thats correct but its unix for sure). I have no user names and no passwords and need to login to read a tape. Is there any way to do that? I hear... (3 Replies)
Discussion started by: orestis
3 Replies
8. Solaris
I have Sun 240 server with Solaris 8 installed. I go to OBP and try to boot in single-user mode but it is getting hung in the middle and the only way to get out of this situation is by going to the LOM and resetting the server. Here is what is happening:
{0} ok boot -s
SC Alert: Host System... (18 Replies)
Discussion started by: StarSol
18 Replies
9. Solaris
Hi everybody, I'm running soalris 10, and I would like to know if it posible to boot on single user mode(init s), and then set up (may be manually or not) all the networks services, did someone try this before??
Tks (4 Replies)
Discussion started by: jespada
4 Replies
10. Solaris
Dear All
I am trying to install my os as :
ok>boot cdrom - install
but receiving the following :
"IDprom checksum error
getexecname() failed
/sbin/rcS /etc/vfstab cannot create
INIT:failed write utmpx enrty
INIT:single user mode
INIT:execle of /etc/sulogin failed
Enter run level"
Can you... (6 Replies)
Discussion started by: hadimotamedi
6 Replies
LEARN ABOUT OPENDARWIN
tcgetpgrp
TCGETPGRP(3) Linux Programmer's Manual TCGETPGRP(3)
NAME
tcgetpgrp, tcsetpgrp - get and set terminal foreground process group
SYNOPSIS
#include <unistd.h>
pid_t tcgetpgrp(int fd);
int tcsetpgrp(int fd, pid_t pgrp);
DESCRIPTION
The function tcgetpgrp() returns the process group ID of the foreground process group on the terminal associated to fd, which must be the
controlling terminal of the calling process.
The function tcsetpgrp() makes the process group with process group ID pgrp the foreground process group on the terminal associated to fd,
which must be the controlling terminal of the calling process, and still be associated with its session. Moreover, pgrp must be a
(nonempty) process group belonging to the same session as the calling process.
If tcsetpgrp() is called by a member of a background process group in its session, and the calling process is not blocking or ignoring
SIGTTOU, a SIGTTOU signal is sent to all members of this background process group.
RETURN VALUE
When fd refers to the controlling terminal of the calling process, the function tcgetpgrp() will return the foreground process group ID of
that terminal if there is one, and some value larger than 1 that is not presently a process group ID otherwise. When fd does not refer to
the controlling terminal of the calling process, -1 is returned, and errno is set appropriately.
When successful, tcsetpgrp() returns 0. Otherwise, it returns -1, and errno is set appropriately.
ERRORS
EBADF fd is not a valid file descriptor.
EINVAL pgrp has an unsupported value.
ENOTTY The calling process does not have a controlling terminal, or it has one but it is not described by fd, or, for tcsetpgrp(), this
controlling terminal is no longer associated with the session of the calling process.
EPERM pgrp has a supported value, but is not the process group ID of a process in the same session as the calling process.
ATTRIBUTES
For an explanation of the terms used in this section, see attributes(7).
+-------------------------+---------------+---------+
|Interface | Attribute | Value |
+-------------------------+---------------+---------+
|tcgetpgrp(), tcsetpgrp() | Thread safety | MT-Safe |
+-------------------------+---------------+---------+
CONFORMING TO
POSIX.1-2001, POSIX.1-2008.
NOTES
These functions are implemented via the TIOCGPGRP and TIOCSPGRP ioctls.
History
The ioctls appeared in 4.2BSD. The functions are POSIX inventions.
SEE ALSO
setpgid(2), setsid(2), credentials(7)
COLOPHON
This page is part of release 4.15 of the Linux man-pages project. A description of the project, information about reporting bugs, and the
latest version of this page, can be found at https://www.kernel.org/doc/man-pages/.
GNU 2015-08-08 TCGETPGRP(3)