Hello
I'm using GNU screen for an application that I'm making. I will try to explain:
This application opens 2 screen session, A and B. Screen session A has a script running in teh first window. I want to be able to switch from screen session A to screen session B, from the script running in session A (a convenience for the user)
The problem is: when ever I try to make screen B appear (screen -d -r B -- i've also tried screen -d A && screen -d -r B), it attaches as a child of screen session A (so now B is a subscreen of A) - where I'm actually intending to disconnect from session A, and show the user session B. I need to run these commands as if they were entered from outside of screen, but i'm not sure how to do that (somehow create a new process to run those commands in)
any ideas?
thanks!
---------- Post updated at 06:31 AM ---------- Previous update was at 05:52 AM ----------
I realize that its hard to properly explain what it is I need.. I whipped up a quick example...
start.sh:
monitor.sh
put those both in your home folder and run ./start.sh
What happens: After 10 seconds, screen B is opened within screen A
What I want to happen: After 10 seconds, screen A is disconnected, and screen B is then shown to the user (not as a child of screen A)
so I'm sure this line is the problem:
screen -r B && screen -d A
I need it to run as a new process outside of screen.... any thoughts?
Team,
I have multiple batchjobs running in VM, if I do ps -ef |grep java or tomcat I am getting multiple process list.
How do I get my exact tomcat process running and that is unique? via shell script? (4 Replies)
I am on SunOS and Linux
I need generic command to get complete process details from which i will eventually extract socket details (listen address and port)
ps -ef | ggrep -i server | ggrep -i mydomaindoes not yield a process that should have both the grep entries along with the listen... (8 Replies)
Hi Team ,
I have one process named as cec_analysiseool that is running on unix box machine now i want to kill this process so please advise what will be the ideal command to kill this , what i have tried is :confused:
kill -9 `ps -ef | grep cec_analysiseool | grep -v grep | awk '{print $2}'` (2 Replies)
All,
1.What is the unix comand used for all current running process (Including All current running processes Parent ->child->subchild process)
2.If child and subchild processes are running then what is the unix command to kill parent and its all child subchild processes in UNIX.
Kindly... (7 Replies)
Hi.
I use this command to get list of running process:
ps -ef|grep ICP|grep -v grep
But how do I set the terminal to show full command? It seems that it always truncated to 60 chars no matter what options I put.
e.g output
oracle9 25011 24998 0 03:00:05 ? 0:00 /usr/bin/sh... (14 Replies)
Hi ,
I want to see all the background process that are running in unix box machine...please guide me is there any specific command for that..since I am executing some scripts at background..!!:confused: (1 Reply)
Hi
What is the best command to check if a particular process is running in a linux server or not
To check any java process, I use the below command.
ps -ef |grep jvm
When I execute the above command, it lists me all the processess . The above command should ideally return only the... (6 Replies)
Hello all,
I would be happy if any one could help me with a shell script that would determine all the processes running on a Unix server and post a mail if any of the process is not running or aborted.
Thanks in advance
Regards,
pradeep kulkarni.
:mad: (13 Replies)
Hello Experts,
Can any one help me out to find the command to get "count" of number of processes running in system.
Basically i want to write one crone job to kill some process which making my system hanged. so have to do following things.
1) Find out the number of processes is running.... (4 Replies)