LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-12-2015, 10:00 AM   #1
sublimemusic
LQ Newbie
 
Registered: Jul 2015
Location: montreal north shore
Distribution: arch newbie and debian
Posts: 1

Rep: Reputation: Disabled
Start command on ssh and access the progress of the command later.


The title say pretty much everything.
I have a headless debian pc. I use ssh with my laptop.
This is a example of what I want to do: start a download with wget with ssh. Leave home and when I come back, I want to see the progress bar of the download.
The perfect solution i think, it's something like vnc but it's the command line.

Thank you!

I hope you guys understand what i'm trying to say
French is my first langage, not english. Sorry for the mistakes
 
Old 07-12-2015, 10:35 AM   #2
HMW
Member
 
Registered: Aug 2013
Location: Sweden
Distribution: Debian, Arch, Red Hat, CentOS
Posts: 773
Blog Entries: 3

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
Quote:
Originally Posted by sublimemusic View Post
start a download with wget with ssh. Leave home and when I come back, I want to see the progress bar of the download
I am not quite sure I understand, but you can use redirection and the tee command. Like this:
Code:
wget https://www.gnu.org/software/bash/manual/bash.html 2>&1 | tee wget_out
The resulting file (wget_out) looks like this (pardon the Swedish!):
Code:
cat wget_out 
--2015-07-12 17:31:58--  https://www.gnu.org/software/bash/manual/bash.html
Slår upp www.gnu.org (www.gnu.org)... 208.118.235.148, 2001:4830:134:3::a
Ansluter till www.gnu.org (www.gnu.org)|208.118.235.148|:443... ansluten.
HTTP-begäran skickad, väntar på svar... 200 OK
Längd: 755427 (738K) [text/html]
Sparar till: "bash.html"

     0K .......... .......... .......... .......... ..........  6% 89,5K 8s
    50K .......... .......... .......... .......... .......... 13%  221K 5s
   100K .......... .......... .......... .......... .......... 20%  417K 4s
   150K .......... .......... .......... .......... .......... 27%  424K 3s
   200K .......... .......... .......... .......... .......... 33%  342K 2s
   250K .......... .......... .......... .......... .......... 40%  313K 2s
   300K .......... .......... .......... .......... .......... 47%  478K 2s
   350K .......... .......... .......... .......... .......... 54% 1,05M 1s
   400K .......... .......... .......... .......... .......... 60%  404K 1s
   450K .......... .......... .......... .......... .......... 67% 2,64M 1s
   500K .......... .......... .......... .......... .......... 74%  467K 1s
   550K .......... .......... .......... .......... .......... 81% 3,74M 0s
   600K .......... .......... .......... .......... .......... 88%  440K 0s
   650K .......... .......... .......... .......... .......... 94% 1,98M 0s
   700K .......... .......... .......... .......              100% 1,19M=1,9s

2015-07-12 17:32:00 (386 KB/s) - "bash.html" sparades [755427/755427]
Best regards,
HMW
 
Old 07-12-2015, 01:23 PM   #3
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
You can also open up a screen session and run your wget inside of it.

Code:
$ screen -S wget_stuff
$ wget http://path/to/file
You can then disconnect from the screen session with "Ctrl+A D", or just close your ssh connection.

When you want to check the status, just reconnect to the screen session
Code:
screen -r wget_stuff
 
3 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
VLC remote access with SSH and command line trox Linux - Networking 5 08-30-2014 08:18 AM
LXer: How to access Linux command cheat sheets from the command line LXer Syndicated Linux News 0 07-28-2014 08:30 AM
show progress while using cp command qweyu Linux - Newbie 2 02-20-2013 05:09 AM
SSH Services Command to Start struggled_newbie Linux - Newbie 8 05-20-2010 02:30 AM
cp command with progress indicator exodist Linux - Software 1 07-21-2004 06:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration