Duh, can I quit an ssh connection withOUT stopping a program running?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Duh, can I quit an ssh connection withOUT stopping a program running?
# 1  
Old 10-30-2009
Duh, can I quit an ssh connection withOUT stopping a program running?

here's the sitch:

remote freeBSD device. I am ssh'd in as root and running cgsecurity's TESTDISK program. Testdisk will take DAYS to scan this multi-terabyte RAID. Can I quit my terminal or ssh connection, disconnect from the remote computer, come back to it later and NOT stop or interrupt the program running on the remote machine? And when I log back in, can I re-access the interface of the program?

If it were a brief app, I'd just experiment and see, but this is day 3 of a 7-day scan!

Thanks for the newbie help!
# 2  
Old 10-30-2009
# 3  
Old 10-30-2009
# 4  
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!!
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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
Login or Register to Ask a Question