11-18-2010
Quote:
Originally Posted by
david_hu_66
I am using AIX Korn Shell.
Your suggestion is
nohup xedit &
or
xedit & disown
Is this right?
Thank you.
Neither. nohup xedit & disown
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello all,
Can someone explain to me the advantage between using subshell over a function call in scripts? To me these are the same. Am I wrong to think this? (4 Replies)
Discussion started by: larry
4 Replies
2. UNIX for Dummies Questions & Answers
Hi all,
I am kinda new to this unix environment, and now I get confused to figure out this alias problem. I would like to make my xemacs to run in background every call, and I am trying to do it this way in .bashrc
alias e='xemacs &* & '
i also tried
e () { xemacs "&*" &}
but they are... (0 Replies)
Discussion started by: hfireflyu
0 Replies
3. Shell Programming and Scripting
Hello Friends,
sorry, i am not very familiar with Unix programming. Could you please help me on this?
We have to start different components from a startup script.
each components are started as below in the background in a startprocess function
$nohup $file $args >>$logFile 2>&1 &
... (0 Replies)
Discussion started by: alvinbush
0 Replies
4. Solaris
Hello Friends,
sorry, i am not very familiar with Unix programming. Could you please help me on this?
We have to start different components from a startup script.
each components are started as below in the background in a startprocess function
$nohup $file $args >>$logFile 2>&1 &
... (1 Reply)
Discussion started by: alvinbush
1 Replies
5. Programming
Can anybody tell me why any literal constant real numbers are double by default in C ? Why is the default not float ? (2 Replies)
Discussion started by: limmer
2 Replies
6. Shell Programming and Scripting
I have noticed a few posts asking questions about c shell scripting these past few days. This a good read for those that currently or are thinking about writing a csh script:
Csh Programming Considered Harmful (9 Replies)
Discussion started by: ilikecows
9 Replies
7. Shell Programming and Scripting
Folks,
I have written one script for following condition by referring some of online post in this forum. Please correct it if I'm missing something in it. (OS: AIX 5.3)
List the idle user. (I used whoidle command to list first 15 user and get username, idle time, pid and login time).... (4 Replies)
Discussion started by: sumit30
4 Replies
8. Programming
Hello,
I am trying to find a way to send several sequential commands via SSH to a remote box in a single command.
Thoughts so far:
1) Can I put them into a function and call the function within the ssh command?
e.g.
ssh <targetserver> $(functionx)
No - then it calls the function in... (4 Replies)
Discussion started by: doonan_79
4 Replies
9. Programming
Hi friends,
I hope everyone is doing well and fine. I have always been hearing that C/C++ are relatively low-level as compared to Java/C# etc. Could you please tell me some low-level qualities of C/C++? And I think disk deframenters are written in C/C++, please correct me if I am wrong. And please... (5 Replies)
Discussion started by: gabam
5 Replies
10. Homework & Coursework Questions
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:
A common problem arising in games and simulations is to generate a random arrangements of integers from 1 to N.... (5 Replies)
Discussion started by: lamentofking
5 Replies
LEARN ABOUT HPUX
tcgetpgrp
tcgetpgrp(3C) tcgetpgrp(3C)
NAME
tcgetpgrp() - get foreground process group id
SYNOPSIS
DESCRIPTION
returns the value of the process group ID of the foreground process group associated with the terminal referenced by fildes. is allowed
from a process that is a member of a background process group (see termio(7)); however, the information can be subsequently changed by a
process that is a member of a foreground process group.
RETURN VALUE
Upon successful completion, returns the value of the process group ID of the foreground process group associated with the terminal refer-
enced by fildes. Otherwise, returns a value of -1 and sets to indicate the error.
ERRORS
fails if any of the following conditions are encountered:
The file associated with
fildes is the controlling terminal of the calling process, however, there is no foreground process group defined for
the controlling terminal.
fildes is not a valid file descriptor.
The file associated with
fildes is not the controlling terminal or the calling process does not have a controlling terminal.
WARNINGS
The error which is returned if the controlling terminal has no foreground process group, might not be returned in future releases, depend-
ing on the course taken by the POSIX standard. Portable applications therefore should not rely on this error condition.
SEE ALSO
setpgid(2), setsid(2), tcsetpgrp(3C), thread_safety(5), termio(7).
STANDARDS CONFORMANCE
tcgetpgrp(3C)