08-23-2007
Quote:
Originally Posted by
psiva_arul
Hi,
i want to retreive the background process to foreground process in SUN OS UNIX. how can it possiple...?
Regards,
Siva.P
Bangalore
There are comands like fg which will do your job,just go through it.
Thanks
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 SUNOS
tcgetpgrp
tcgetpgrp(3C) Standard C Library Functions tcgetpgrp(3C)
NAME
tcgetpgrp - get foreground process group ID
SYNOPSIS
#include <sys/types.h>
#include <unistd.h>
pid_t tcgetpgrp(int fildes);
DESCRIPTION
The tcgetpgrp() function will return the value of the process group ID of the foreground process group associated with the terminal.
If there is no foreground process group, tcgetpgrp() returns a value greater than 1 that does not match the process group ID of any exist-
ing process group.
The tcgetpgrp() function is allowed from a process that is a member of a background process group; however, the information may be subse-
quently changed by a process that is a member of a foreground process group.
RETURN VALUES
Upon successful completion, tcgetpgrp() returns the value of the process group ID of the foreground process associated with the terminal.
Otherwise, -1 is returned and errno is set to indicate the error.
ERRORS
The tcgetpgrp() function will fail if:
EBADF The fildes argument is not a valid file descriptor.
ENOTTY The calling process does not have a controlling terminal, or the file is not the controlling terminal.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-------------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-------------------------------+
|Interface Stability |Standard |
+-----------------------------+-------------------------------+
|MT-Level |MT-Safe, and Async-Signal-Safe |
+-----------------------------+-------------------------------+
SEE ALSO
setpgid(2), setsid(2), tcsetpgrp(3C), attributes(5), standards(5), termio(7I)
SunOS 5.10 14 Aug 2002 tcgetpgrp(3C)