I solved my own problem, found out $$ is the PID of the current sesison, so instead of
I simply did
works great and everything is rolling along as it should again.
I am trying to connect to a unix server box and start an X session. It has kde and xfree86 installed. However, since it is just a server, sitting somehwere in another state probably on top of and below other servers, it has no mouse,keyboard,or monitor attached to it.
When I try to startx, I... (2 Replies)
As stated above in the title "How do I establish a remote CDE or JDS session on Solaris 10?"
What I would like to do is be able to login to and use the machine remotely using either the CDE or JDS, preferably with out having to use a VNC, and be able to use the pretty GUI, instead of exclusively... (11 Replies)
Hi,
Is is possible when ftp script disconnect by remote server and it can restart to tranfer (such as restart in 10 mins, etc)?
Please help!!!! (1 Reply)
Howdy,
I'm fairly new at bash scripting, but (for some reason) I've been tasked with building a bastion server and logging all (ssh/telnet) remote activity. Each session must create a unique log file - the name of each file must include the user ID, the connection method (ssh/telnet), the name... (2 Replies)
I want to connect to a remote host using telnet
there is no username/password verification
just
telnet remotehost
then I need to input some commands for initialization
and then I need to repeat the following commands:
cmd argument
argument is read from a local file, in this... (1 Reply)
Hi everyone, after about 2 days of scratching my head on this one, I'm finally ready to punt this and ask for some actual help. Here's the situation. We have 1 server, that runs multiple VM's. To gain access to those VM's we ssh from host01 to the other vm hosts. For example when we first log... (4 Replies)
Is there a way that I can remotely control a user's ssh session so I can see what they are doing and walk them through the problem they are having on my AIX based application? (2 Replies)
Hello,
I am trying to login to multiple servers and i have to run multiple loops to gather some details..Could you please help me out.
I am specifically facing issues while running for loops.
I have to run multiple for loops in else condition. but the below code is giving errors in for... (2 Replies)
Below code runs n number of session at a time when called. I want to restrict it to run only for 3 sqlplus at a time. Is there a way to do the same.
for name in `cat abc.txt`
do
(sqlplus -s usert/password@host <<-EOF>> error.txt
SET LINESIZE 1000
select '$name',... (4 Replies)
Discussion started by: ATWC
4 Replies
LEARN ABOUT HPUX
tcsetpgrp
tcsetpgrp(3C)tcsetpgrp(3C)NAME
tcsetpgrp() - set foreground process group id
SYNOPSIS DESCRIPTION
If the calling process has a controlling terminal, sets the foreground process group ID associated with the terminal referenced by fildes
to pgrp_id. The file associated with fildes must be the controlling terminal of the calling process and the controlling terminal must be
currently associated with the session of the calling process. The value of pgrp_id must match a process group ID of a process in the same
session as the calling process.
RETURN VALUE
Upon successful completion, returns zero. Otherwise, returns -1 and sets to indicate the error.
ERRORS
fails if any of the following conditions are encountered:
[EBADF] fildes is not a valid file descriptor.
[EINVAL] The value of the pgrp_id argument is not supported.
[ENOTTY] The calling process does not have a controlling terminal, or the fildes is not the controlling terminal, or the con-
trolling terminal is no longer associated with the session of the calling process.
[EPERM] The value of pgrp_id is a supported value but does not match the process group ID of a process in the same session as
the calling process.
SEE ALSO setpgid(2), setsid(2), tcgetpgrp(3C), thread_safety(5), termio(7).
STANDARDS CONFORMANCE tcsetpgrp(3C)