Linux - Cron Jobs for Scheduled Tasks (crontab)

Sdílet
Vložit
  • čas přidán 8. 09. 2024

Komentáře • 43

  • @NeerajLalu
    @NeerajLalu Před 4 lety +7

    Eli is honestly one of the very few teachers/tutors that can keep you engaged no matter how long or short his videos are this is the mark of naturally gifted teacher .

  • @JohnCutter317
    @JohnCutter317 Před rokem +1

    Stumbled upon this page over decade ago as young man without direction. Got to the point I could build basic website and didn't know it was a profitable skill. Online community is so different now. Started over at age 30 without any experience became network engineer within 2 years

  • @noahhounshel104
    @noahhounshel104 Před 5 lety +31

    ctrl + c is all that's needed to exit out of the command "crontab" without any issues. This is the "common" shortcut for non-interactive programs to exit out of them. (
    This works with everything from "apt" to "yes". There's no "ctrl+x+c"

    • @user-vn7ce5ig1z
      @user-vn7ce5ig1z Před 5 lety +1

      Yes, it's Ctrl+C, except when it's Ctrl+Z, Ctrl+X, Ctrl+ScrollLock, or another one. Gotta love *nix's consistency. ¬_¬

    • @FreeER
      @FreeER Před 5 lety

      Didn't work with vim when I learned it, though I think later updates now show a message when it detects ctrl+c.
      Maybe that's considered an "interactive" program though, but ctrl+c still works with _most_ programs that read stdin, just not all.

    • @noahhounshel104
      @noahhounshel104 Před 5 lety

      @@user-vn7ce5ig1z Ctrl+z is **never** exit, it only suspends programs. ;) (type "fg" to bring it back) It's not inconsistent, you just have to understand what it does

    • @noahhounshel104
      @noahhounshel104 Před 5 lety +1

      @@FreeER Vim doesn't use ctrl+C because its an interactive program, you actually interact with it and it actually has a UI. as I mentioned previously those will have their own shortcuts. I find it so stupid that people blame "the terminal" or "linux" when in fact it's not. Simply the difference in tools.

    • @FreeER
      @FreeER Před 5 lety

      ​@@noahhounshel104 like I said, most programs that take stdin and thus interact with the user (assuming they don't always redirect/pipe input) respond to ctrl+c.
      as for blaming linux or the terminal well it's "linux"'s fault that those programs were packaged together. A shell could offer a unified way that _always_ works, ctrl+x followed by ctrl+c for example, at least assuming there's some equivalent of a "force" kill mechanism in the kernel for it to call.
      Beyond that non-technical people simply don't care, they're told they're using linux so when something goes wrong it was with linux because that's what they were using. But yeah, there's a difference.
      Regardless the point is that it doesn't work for everything and therefore you have to be aware that it doesn't work for everything and have to be aware of up to half a dozen other things that work in different cases. And I suppose if your job is editing a bunch of configuration files with vim and setting up crontab jobs then you can't even say that ctrl+c works most of the time.
      On windows you click the X. If that doesn't work you open task manager and kill it xD
      (Disclaimer: never been a server/systems admin or anything, just an average/'power' user)

  • @animeshsinghchouhan
    @animeshsinghchouhan Před 5 lety +5

    Select an editor. *To change later, run 'select-editor'.*
    1. /bin/nano

  • @bilalinamdar7588
    @bilalinamdar7588 Před 4 lety +3

    Eli, fantastic basic tutorial on Cron Jobs! Thanks a lot!

  • @drjubierre
    @drjubierre Před 5 lety +2

    Love this new format for your videos. Keep them flowing!!

  • @decidebright5495
    @decidebright5495 Před 4 lety

    Very helpful - used this to schedule tasks on my RPi to log information periodically. Thanks Eli!

  • @missunderstood7331
    @missunderstood7331 Před 2 lety

    LOL The people at Linux are EVIL
    Watching a series on Linux
    Watched Mr Robot
    This is the best intro to Linux I've seen. Thanks Eli...

  • @jessicajurado9414
    @jessicajurado9414 Před rokem

    Another great video thank you! 🙂

  • @user-vn7ce5ig1z
    @user-vn7ce5ig1z Před 5 lety +1

    Like you said, it's this sort of user-friendliness that has gift-wrapped the user space for Microsoft and Apple. ¬_¬

  • @bendover4728
    @bendover4728 Před 5 lety +1

    I really really really really really.. hope you will come with a better software to schedule tasks, with a much better name and better features :D

  • @jayroow9560
    @jayroow9560 Před 5 lety +2

    I am getting a big data certificate from my local community college where we are learning python , simple stats , Big Data Integration and Processing, Big Data Modeling and Analysis. I am a cs major with some knowledge of java and c++ once I finish the cert I’m trying to see if I will be able to get a data analyst job what do you think would be good for me or my next step? I want to get into the industry while in school to get some work experience since my part time job is draining and isn’t related to my degree thank you so much !

  • @diyasharma1528
    @diyasharma1528 Před 4 lety

    useful video #Tech Kala Knowledge

  • @PicyPoe
    @PicyPoe Před 5 lety +1

    Thank you 🙏

  • @user-yf8il6we2z
    @user-yf8il6we2z Před 5 lety

    Eli acts so normal on this channel

  • @lufyfroo6243
    @lufyfroo6243 Před 2 lety

    machine Eli

  • @hu3m4n90
    @hu3m4n90 Před 2 lety

    min 16:00 hit right into the loneliness

  • @bfromthedmvofficial
    @bfromthedmvofficial Před 5 lety

    What version of linux have you seen mostly used in the workforce e.g. Redhat etc.?

  • @itayb91
    @itayb91 Před 4 lety

    Just in case that a python solution(CLI based) is relevant to you, i published a new package to manage crontjobs with python and a revisions files system.
    You can find it on Git
    github.com/itay-bardugo/python-cron-migration
    And on Medium as well as
    medium.com/@itaybardugo91/python-cron-migration-cronjobs-managing-8b9ee1f1856e
    You can try it, it can help you, there is a pre-prepared timing list you can use if you are not familiar with the crontab syntax.

  • @shiningchinku9051
    @shiningchinku9051 Před 4 lety +1

    Can a single job run multiple times in a single day ?

  • @ranjanmajumder4332
    @ranjanmajumder4332 Před 4 lety

    sir, at first, i am thankful to you.
    But my crontab is not working after 10 or 20 minutes.
    I have used every possibility to solve the problem(by eradicate first * and put 10). But i am sorry to say that i have not got output.
    Pls give me a solution.

  • @pinnika143225
    @pinnika143225 Před 4 lety

    How to transfer cron job from individual account to functional account can anybody please tell me the steps..

  • @fatherfigure2766
    @fatherfigure2766 Před 3 lety

    Ctrl c works too

  • @khaterehhejazi9783
    @khaterehhejazi9783 Před 4 lety

    Dear Eli take a little zoom in please

  • @therockstar17
    @therockstar17 Před 3 lety +1

    Um, any Linux user in the CLI doing anything worthwhile to be using crontab is going to know to ctrl+C out of stuff that hangs because it was typed wrong. It's not ctrl+X+C, you n00b. Ctrl+C in the Linux terminal is like preschool level stuff. You hate Linux because you don't know how to use it. Don't call Linux programmers horrible and nasty because you only run Linux in virtual machines and searched Google or CZcams and read a random topic for 2 minutes so you could make a fake tutorial on your mac about something you know nothing about. If someone doesn't know ctrl-C or how to get help from a man page, they have no business trying to write a cron job in the first place. Sheesh! I keep coming back to your videos thinking "There was a reason I stopped watching Eli The Computer Guy, but I don't remember. Oh well, let's watch something, he's cool, right? Oh nevermind, that's right. He hates Linux because he's a n00b but tries to make tutorials about it anyway." *Stops watching again*