Linux - Cron Jobs for Scheduled Tasks (crontab)

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ก.ย. 2024

ความคิดเห็น • 43

  • @NeerajLalu
    @NeerajLalu 4 ปีที่แล้ว +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 .

  • @noahhounshel104
    @noahhounshel104 5 ปีที่แล้ว +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 5 ปีที่แล้ว +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 5 ปีที่แล้ว

      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 5 ปีที่แล้ว

      @@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 5 ปีที่แล้ว +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 5 ปีที่แล้ว

      ​@@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)

  • @JohnCutter317
    @JohnCutter317 ปีที่แล้ว +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

  • @animeshsinghchouhan
    @animeshsinghchouhan 5 ปีที่แล้ว +5

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

  • @bilalinamdar7588
    @bilalinamdar7588 4 ปีที่แล้ว +3

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

  • @drjubierre
    @drjubierre 5 ปีที่แล้ว +2

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

  • @missunderstood7331
    @missunderstood7331 2 ปีที่แล้ว

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

  • @decidebright5495
    @decidebright5495 4 ปีที่แล้ว

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

  • @jessicajurado9414
    @jessicajurado9414 ปีที่แล้ว

    Another great video thank you! 🙂

  • @jayroow9560
    @jayroow9560 5 ปีที่แล้ว +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 !

  • @bfromthedmvofficial
    @bfromthedmvofficial 5 ปีที่แล้ว

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

  • @bendover4728
    @bendover4728 5 ปีที่แล้ว +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

  • @shiningchinku9051
    @shiningchinku9051 4 ปีที่แล้ว +1

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

  • @user-vn7ce5ig1z
    @user-vn7ce5ig1z 5 ปีที่แล้ว +1

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

  • @ranjanmajumder4332
    @ranjanmajumder4332 4 ปีที่แล้ว

    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.

  • @PicyPoe
    @PicyPoe 5 ปีที่แล้ว +1

    Thank you 🙏

  • @user-yf8il6we2z
    @user-yf8il6we2z 4 ปีที่แล้ว

    Eli acts so normal on this channel

  • @pinnika143225
    @pinnika143225 4 ปีที่แล้ว

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

  • @diyasharma1528
    @diyasharma1528 4 ปีที่แล้ว

    useful video #Tech Kala Knowledge

  • @itayb91
    @itayb91 4 ปีที่แล้ว

    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.

  • @hu3m4n90
    @hu3m4n90 2 ปีที่แล้ว

    min 16:00 hit right into the loneliness

  • @lufyfroo6243
    @lufyfroo6243 2 ปีที่แล้ว

    machine Eli

  • @khaterehhejazi9783
    @khaterehhejazi9783 4 ปีที่แล้ว

    Dear Eli take a little zoom in please

  • @fatherfigure2766
    @fatherfigure2766 3 ปีที่แล้ว

    Ctrl c works too

  • @therockstar17
    @therockstar17 3 ปีที่แล้ว +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 TH-cam 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*