05-07-2010
There's not a lot you can do to keep a session that no longer exists, open. You could try the 'screen' utility, which apparently allows you to create login sessions that can be connected and disconnected from at will without killing or halting them.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I have a script which calls a child script with a parameter to be run in the background
. childscript.ksh $a &
Can any one suggest me how do i export a variable from the child script to parent script?
Note that the child script is in background
If the child script is in... (3 Replies)
Discussion started by: aixjadoo
3 Replies
2. Shell Programming and Scripting
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)
Discussion started by: pradeepmacha
13 Replies
3. Programming
can someone provide an example, where if the parent process quits for any reason, then the child process will also close? (3 Replies)
Discussion started by: omega666
3 Replies
4. Shell Programming and Scripting
Hi everyone
i am very new to linux , working on bash shell.
I am trying to solve the given problem
1. Create a process and then create children using fork
2. Check the Status of the application for successful running.
3. Kill all the process(threads) except parent and first child... (2 Replies)
Discussion started by: vizz_k
2 Replies
5. Solaris
Can ssh to server. Asks for password.
Then seems to time out and close the connection. Any ideas?
---------- Post updated at 09:30 AM ---------- Previous update was at 07:51 AM ----------
Here is output from ssh -vvv -l user <IPaddress>
debug3: packet_send2: adding 64 (len 59 padlen 5... (4 Replies)
Discussion started by: psychocandy
4 Replies
6. Shell Programming and Scripting
Hi ALL,
Is there any way to pause a running process under nohup ?
I have fired a build commands with required flags under nohup as below. now how can
I pause the started build process.
nohup make DEVICE=ap DEBUG=1 &
I understand we can use ctrl + z to pause a foreground process... (3 Replies)
Discussion started by: useless79
3 Replies
7. UNIX for Advanced & Expert Users
Hi All,
I am facing issue in running a process in nohup. I ran a process in terminal since it is taking too long to complete I need to make it as background and nohup. I tried below and was able to make it in back ground
1. Cntrl + Z
2. bg
I am using Korn Shell so disown is not working... (5 Replies)
Discussion started by: arunkumar_mca
5 Replies
8. Shell Programming and Scripting
I am having an issue in running a nohup command in a remote linux box from a linux box. Here are the details.
Linux Machine 1: I have a script which starts a services and dumps the output into a log file.
nohup sh weblogic.sh >> /home/log.out &
I have placed the entire command in a... (2 Replies)
Discussion started by: accessbalaji
2 Replies
9. UNIX for Advanced & Expert Users
Hello All,
I am using Linux. I have two scripts:
inner_script.ksh
main_wrapper_calling_inner.ksh
Below is the code snippet of the main_wrapper_calling_inner.ksh:
#!/bin/ksh
ppids=() ---> Main array for process ids.
fppids=() ---> array to capture failed process ids.
pcnt=0 --->... (5 Replies)
Discussion started by: dmukherjee
5 Replies
10. Shell Programming and Scripting
Hello,
I am trying to make a bash script, I tested nohup but it did not help me.
My code is:
ffmpeg -i $input_url -c:v copy -c:a copy -listen 1 -f mpegts http://localhost:port/live/test
When I open it in VLC, it starts feeding my screen and I see bitrate values.
When I stop watching it,... (4 Replies)
Discussion started by: baris35
4 Replies
UTX(8) BSD System Manager's Manual UTX(8)
NAME
utx -- manage the user accounting database
SYNOPSIS
utx boot
utx shutdown
utx rm identifier ...
DESCRIPTION
The utx utility can be used to perform operations on the user accounting database, as done by pututxline(3).
The first argument to utx indicates an action to be performed:
boot Write a boot time record to the user accounting database. This option should typically only be used by rc(8).
shutdown Write a shutdown time record to the user accounting database. This option should typically only be used by rc(8).
rm Remove stale sessions from the user accounting database, by referring to their identifier. Stale sessions can occur if a login
service exits prematurely or fails to remove the session from the accounting database.
Utilities such as w(1) will not display the identifier corresponding with a login session, since its value is typically only of use
by the process managing the record. The following command can be used to obtain all records from the user accounting database's
active session table, including its identifiers:
getent utmpx active
Identifiers can either be supplied in hexadecimal form as displayed by getent(1), or as a string if the identifier allows such a
representation.
Because this utility requires write-access to the user accounting database, its use is limited to the super-user.
SEE ALSO
getent(1), w(1), pututxline(3)
HISTORY
The utx utility replaced utxrm in FreeBSD 10.0.
AUTHORS
Ed Schouten <ed@FreeBSD.org>
BSD
November 3, 2013 BSD