Solved

something like nohup but with access to terminal

Posted on 2008-10-01
2
783 Views
Last Modified: 2013-12-07
Hi.

I would need something some way to run processes independently from hangups in linux (Debian Lenny to be exact, but I suppose it shouldn't matter) but with access to console. The last part makes nohup useless, as it redirects output to nohup.out and doesn't allow any input.

The reason for this is, I want to log into my linux server with ssh, start downloading a large file with lynx and disconnect ssh, leaving the download running. I need to use lynx for downloading because I need to login to a webpage and after that only is the file available. Thus the need of console access at the beginning.

I tried bacgrounding the process with ctrl+z and bg, but it stops after disconnecting (nohup would come in handy here, but as I said, it can't be used). Any ideas?
0
Comment
Question by:tg_wilk
2 Comments
 
LVL 7

Accepted Solution

by:
tg_wilk earned 0 total points
ID: 22618585
Forget it, I've found out about gnu screen

First start screen, proceed as in normal shell and when you're ready to disconnect, press Ctrl-a and then d. Screen is detatched from terminal and I can logout. When I need to check how it's going, I log in again and type screen -r, which allows me to see the progress.
0
 
LVL 48

Expert Comment

by:Tintin
ID: 22618596
You could either use wget/curl for the download or use 'screen' to control the session.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
looking for a CENTOS ISO to download with x window installed 2 39
Backup Raspberri Pi over the netowrk to a Windows Share 5 42
awk sed 8 44
maybe no no httpd.conf 6 48
Do you come here a lot? Are you lazy like me and don't want to go through the "trouble" of having to click your Dock's Safari icon and then having to click your Experts Exchange Favorites bookmark to get here? Well then this article is for you.
When it comes to security, there are always trade-offs between security and convenience/ease of administration. This article examines some of the main pros and cons of using key authentication vs password authentication for hosting an SFTP server.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Viewers will learn how to properly install and use Secure Shell (SSH) to work on projects or homework remotely. Download Secure Shell: Follow basic installation instructions: Open Secure Shell and use "Quick Connect" to enter credentials includi…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question