282
linuxxx
5y

FUCK

PRESSED CTRL+C IN THE WRONG TERMINAL

BYE BYE HOURS OF WAITING 😞

Comments
  • 38
    Tactical comment because somebody will post a solution to this
  • 3
    @tekashi That I'd like to know
  • 6
    @tekashi The only outcome of this is "learnt lesson" 😅
  • 1
    Out of curiosity, what were you running?
  • 7
    I just read your previous rant seconds before this one

    Damn
  • 15
    Tip (on gnome at least) you can set a terminal to read-only 😉
  • 27
    Also, putting two of the most used shortcuts ("copy stuff" and "fking die already") on the same keys, has never been the smartest idea.
  • 5
    @Forside That's why you use CTRL + SHIFT + C ;)
  • 6
    @balze42 He was downloading a docker container, first image took an hour and a half for 35GB, though that image needed another image that is 25GB, guess who has to download them all over again (or maybe the second one only if I'm not mistaken)
  • 1
    @gitpush ohhh ouch
  • 1
    Better use tmux and deattach the session.
  • 6
    What kind of Docker image requires 60 gb? Sounds like a misuse of Docker. You got some DB data baked in?
  • 0
    @NoToJavaScript Could happen on everything where a Unix-Shell runs, including Windows (WSL)
  • 4
    @NoToJavaScript that's, in this context, like saying that its windows' problem when a user accidentally switches the computer off.

    This was my own, human, error.
  • 3
    maybe send the script to the background with &
  • 0
    Sh!t . Press "F" to pay respect
  • 3
    That's why you should always use screen
  • 6
    Could always do this

    wget "http://..." -c &

    The ampersand detaches the process from the terminal automatically.

    Pressing ctrl + c will just move to next line but won't destroy your running process.
  • 2
    @iSwimInTheC or just open a screen session. Especially over ssh, do everything in a screen. If you run out of time or your ssh client closes you just deattach and can reattach
  • 1
    Use screen will not help if you accidentely press ctrl+c when you are in your screen, it will still end your program/script. Guess you can use bash trap to catch se signal for ctrl+C or just set your terminal as read-only
  • 1
    @nighter well then don't stay connected with the screen
  • 2
  • 3
    The worst :/
  • 1
    Been there, done that. I generally background stuff in a tmux session and detach it. It'll run, save the output, and allow you to check the progress as well.

    You can also set the session to readonly as well if you want.
  • 3
    @mellowmymind I'd never use a proprietary system developed by a company which is integrated within the bigges mass surveillance network ever created (by the NSA)

    Yes, I'm aiming at you, Apple :)
  • 0
    @linuxxx Why make life hard for yourself, though?
  • 1
    I feel like if we’re gonna have cry rooms for people, this type of thing should be a reason for priority access to it.
  • 1
    Tasks that take longer than 30 seconds to complete should be either CTRL-Z'd or started with a & at the end or with a nohup in the beginning. No exceptions. Life's going to be easier.
  • 0
    @mellowmymind How do you mean?
  • 0
    @linuxxx Don't feed the troll
  • 0
    @Forside I don't think he's a troll...
  • 0
    @linuxxx not yet :) but I expect a load of unconvincing reasons why a Mac is better than everything else :p
  • 0
    @NoToJavaScript please do me a favor and try ctrl+c in CMD and PowerShell!
  • 0
    @julianmd ctrl+z pauses the process. Sending a continue signal might or might not work.
  • 0
    @linuxxx If you have control over a program or script doing important stuff, adding signal handlers might be an option.

    When downloading with wget or curl there might be a chance that the download can be continued, though.

    (Although I bet you know all this already 😉)
  • 0
    @Yamakuzure I’ll just use something with GUI which has a button to do whatever I want.
    If GUI doesn’t exist, I’ll spend 1 hour creating it just to NOT use command line.
    And for 99.99% of needs there is a GUI. Even for Linux : I’m so happy with Webmin. Never again I’ll touch a BIND files by hand
  • 0
    @NoToJavaScript and that is how the robits win.
  • 0
    Oh harsh! This happened to us not long ago. Luckily it was an import so we removed everything from the file that had been processed and ran the task again. I feel your pain!
  • 0
    I don’t think this can be liked enough
  • 0
    @linuxxx but if it weren't for the NSA there'd be no one to watch me take off my pants and jacket. I like to say keywords to get flagged right before I smile in the camera and pop peanuts
  • 0
    @Plasticnova Although I get that this is sarcasm (at least, I hope), if you really don't mind giving that data to world's most reckless and non-law abiding spy agency, I'd advice you to be submitted to a mental hospital :)
  • 1
    @linuxxx obvious joke was obvious, but if you think avoiding Apple products keeps you safe from the NSA...
  • 0
    @404response For future reference, what is the URL to his previous rant?
Add Comment