Sponsored Content
Top Forums Shell Programming and Scripting Duh, can I quit an ssh connection withOUT stopping a program running? Post 302366865 by jccbin on Friday 30th of October 2009 03:06:03 PM
Old 10-30-2009
Danmero Thanks!

BUT

It looks like nohup has to be used when the app/process is started, and I'm in the middle of a recover, not starting it.

Is there a way to shut down my terminal session withOUT stopping the running process on the remote computer, and a way that I can return to see the results of that process (testdisk updates the terminal screen as it scans cylinders, etc)?

TIA

---------- Post updated at 01:59 PM ---------- Previous update was at 01:56 PM ----------

Thanks Pludi,

looks like screen also needs to be up adn going before the process is running, but it will help in the future!

---------- Post updated at 02:06 PM ---------- Previous update was at 01:59 PM ----------

I want to be clear in describing what I am doing, so here goes again:

I fired up a terminal session in Mac OS X

then ssh'd into a remote device:

Quote:
ssh root@192.168.2.9
password: XXXXXX

Welcome to FreeNAS!
Then got the freeNAS prompt:

Quote:
freenas:~#
I then installed Testdisk (MY FIRST UNIX INSTALL!!!) from the ports

Next I ran testdisk:

Quote:
freenas:~# testdisk /dev/raid5/mktserver
and got the testdisk interface:

Quote:
TestDisk 6.11, Data Recovery Utility, April 2009
Christophe GRENIER <grenier@cgsecurity.org>
CGSecurity

TestDisk 6.11, Data Recovery Utility, April 2009
Christophe GRENIER <grenier@cgsecurity.org>
CGSecurity


TestDisk is a free data recovery software designed to help recover lost
partitions and/or make non-booting disks bootable again when these symptoms
are caused by faulty software, certain types of viruses or human error.
It can also be used to repair some filesystem errors.

Information gathered during TestDisk use can be recorded for later
review. If you choose to create the text file, testdisk.log , it
will contain TestDisk options, technical information and various
outputs; including any folder/file names TestDisk was used to find and
list onscreen.

Use arrow keys to select, then press Enter key:
[ Create ] Create a new log file
[ Append ] Append information to log file
[ No Log ] Don't record anything
Selected my options and got the scan going....

Now I am waiting while a lovely and simple text screen rolls through thousands of blocks an hour, stuck. Unable (I THINK) to disconnect from the remote device without interrupting testdisk.

Am I stuck this time?

Thanks!!
 

8 More Discussions You Might Find Interesting

1. UNIX Desktop Questions & Answers

Duh, ummm..

Ummm, better to ask..., is putty going to be o.k. to use for my UNIX assignments in college? I seem to be on a college UNIX shell. Boy, am I dumb. O.k., I know, now. Thanks, folks, much love for being there. Blessings upon you all. (4 Replies)
Discussion started by: hallellulia
4 Replies

2. UNIX Desktop Questions & Answers

stopping running process

hi all, I am using red hat AS 4 linux enterprise,i need to run my application such that while its running no other process shuld run all the remaining process should be suspended ,i need to use whole of the process only for that application to run ,can anyone suggest me how to do this. ... (3 Replies)
Discussion started by: srilakshmi
3 Replies

3. Shell Programming and Scripting

SSH Connection drops - but does my script keep running?

Hello there. I'm fairly new to Linux, but I am connecting via SSH and PuTTY to a remote server, and I am running a fairly heavy MySQL script in a PHP page. Our connection here is dodgy to say the least and I get continuous disconnections. My question is, when I get disconnected, does my... (4 Replies)
Discussion started by: christatedavies
4 Replies

4. UNIX for Advanced & Expert Users

Stopping SSH tunnel

I have initiated a tunnel for vncserver. now i want to stop it. is there any way except sleep option? (2 Replies)
Discussion started by: majid.merkava
2 Replies

5. Shell Programming and Scripting

RSH connection problem while running MPI program

I'm trying to run MPI programs on 8 machines, but I get the error connect to address 127.0.0.1 port 544: Connection refused Trying krb4 rsh... connect to address 127.0.0.1 port 544: Connection refused trying normal rsh (/usr/bin/rsh) lagrid02: Connection refused When I run it with a... (8 Replies)
Discussion started by: vishwamitra
8 Replies

6. OS X (Apple)

Quit a shell script thats running on a remote machine

I'm in a situation where I am executing a shell script(Bash) on another machine remotely using ssh, and for various reasons sometimes need to quit it and restart it. The shell script being run does many different things, so its hard to know what process to kill on the remote machine, and even if I... (2 Replies)
Discussion started by: TheDrizzle
2 Replies

7. UNIX for Advanced & Expert Users

How keep running a program n an another computer via a connection ssh when the connection is closed?

Hi everybody, I am running a program on a supercomputer via my personal computer through a ssh connection. My program take more than a day to run, so when I left work with my PC I stop the connection with the supercomputer and the program stop. I am wondering if someone know how I can manage... (2 Replies)
Discussion started by: TomTomGre
2 Replies

8. UNIX for Beginners Questions & Answers

Ssh script to validate ssh connection to multiple serves with status

Hi, I want to validate ssh connection one after one for multiple servers..... password less keys already setup but now i want to validate if ssh is working fine or not... I have .sh script like below and i have servers.txt contains all the list of servers #/bin/bash for host in $(cat... (3 Replies)
Discussion started by: sreeram4
3 Replies
BOOTCD2DISK(1)							   bootcd utils 						    BOOTCD2DISK(1)

NAME
bootcd2disk - copy a system running from bootcd to a disk SYNOPSIS
bootcd2disk [-i] [-s] [-c <config directory>] [-url <url>] DESCRIPTION
With bootcd2disk a CD build with bootcdwrite can be copied to one or more Disk Partitions from the running cd-based system. Therefore bootcd could be used to make rescue disks. It is also possible to let bootcd2disk automatically find a disk, make partitions on it, copy the cd to the disk and make the disk bootable. bootcd2disk will be available as soon as your system is running from cd. OPTIONS
-i With this option the complete bootcd2disk runs in interactive mode and you can run each function manually. This option is useful for debugging. -v The option "-v" (verbose) adds messages on running. -s This option can be used to disable interactive questions and to try to ignore errors. -c <config directory> The configuration directory which normally is "/etc/bootcd" can be changed with this. -url <url> If bootcd2disk is slow on your system (because of a slow CD/DVD drive or the HP ILO virtual CD interface), you can use an image server to get the image from. bootcd2disk use the SWAP partition of your upcoming system as temporary space and copy the image from the con- figured image server to this partition and use it as image. The image server url is configured with this option. example install from imagesserver: bootcd2disk -url http://192.168.1.1/cdimage.iso Another way the increase the performance is the use of the mounted CD/DVD itself for the copy. The option "-url" is the same, the url starts with "file:///" example install from CD/DVD drive sdc0: bootcd2disk -url file:///dev/sdc0 The swap partition of the upcoming system must have enough space to get the whole image! Currently no other options can be specified on command line. All other configuration has to be done in the config files. FILES
/etc/bootcd/bootcd2disk.conf Configuration for bootcd2disk. SEE ALSO
Documentation in bootcd2disk.conf bootcd2disk.conf(5), bootcd(1), bootcdflopcp(1), bootcdwrite(1) AUTHOR
This manual page was written by Bernd Schumacher <bernd.schumacher@hp.com> and Carsten Dinkelmann <Carsten.Dinkelmann@foobar-cpa.de> for the Debian GNU/Linux system (but may be used by others). bootcd2disk 2007-04-04 BOOTCD2DISK(1)
All times are GMT -4. The time now is 01:06 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy