Linux, Unix, macOS Cron Jobs

Поделиться
HTML-код
  • Опубликовано: 17 окт 2024

Комментарии • 64

  • @TechWithTim
    @TechWithTim 5 лет назад +6

    Love your channel man, been a great resource and motivation for me as a student and a starting developer/programmer. You and Sentdex are how I learned most of what I know and why I'm able to teach similar concepts on my small channel. Thank you

    • @AbhishekBM
      @AbhishekBM 3 года назад +1

      Just looking at engineer man's old video and I see your comment. Now your small channel is pretty big. Kudos to you for uploading quality content consistently and making your small channel grow 👍 It's amazing how things change so fast.

  • @1MinuteFlipDoc
    @1MinuteFlipDoc 5 лет назад +17

    you have the most relaxed and clear instructions ever! amazing job!!

  • @frcrr
    @frcrr 5 лет назад +18

    Hey. I'd really appreciate you making an episode about Atom and its customisation. Like, what packages you use, what kind of custom tweaks you found useful in your day-to-day activities, something along these lines.

  • @saifshaikh3191
    @saifshaikh3191 3 года назад

    Best explanation ever

  • @OzzyMoto2K10
    @OzzyMoto2K10 5 лет назад

    Another great video. Discussing @reboot cron job would have also been educational for folks but it was indicated in the excellent crontab guru you shared. Thanks for all of your efforts.

  • @kinetik06
    @kinetik06 5 лет назад

    Love your videos. What's your preference between systemd timers and cron jobs?

  • @Alex-gj2uz
    @Alex-gj2uz 5 лет назад

    Today i had to work with cron, and if you need to hand over environment variables, its such a pain. I don't understand why this has to be that complicated...
    @Edit
    I want to execute anoter program / executable where I have no access to the source code, so I want to execute it with the enviroment variables of a given user. It looks like impossible to have a "general" approach which is working with every cronjob execute...

  • @Alex-gj2uz
    @Alex-gj2uz 5 лет назад +7

    Can you please explain why its possible/legit to run something as different user? Shoudnt there be a passwort prompt or something? How does the security work in this case? Thank you!

    • @DevDungeon
      @DevDungeon 5 лет назад +2

      Since running services as root is a bad idea, you generally want to have a low privilege service user to execute jobs for a service. Root manages cron and can execute job as any user

    • @brister61
      @brister61 5 лет назад +5

      That syntax only works on the system crontab (that is owned by root), not individual user crontabs

  • @d_sportello
    @d_sportello 2 года назад

    Thanks mate

  • @sasakanjuh7660
    @sasakanjuh7660 5 лет назад +1

    Was that the cat behind your back at 1:06? :D

    • @EngineerMan
      @EngineerMan  5 лет назад +2

      That's my doggy making a guest appearance.

    • @sasakanjuh7660
      @sasakanjuh7660 5 лет назад

      Haha, cool :) And thanks for the video!

  • @brister61
    @brister61 5 лет назад

    The scripts crontab runs are in a more restricted environment than when run on the commend line. There are very few environment variables and there is nothing connected to stdin. stdout & stderr normally go into a mail message that gets sent to the user after the job is finished.

  • @morzinbo
    @morzinbo 5 лет назад

    how do you check if a cron job ran successfully?

    • @expurple
      @expurple 3 года назад

      Redirect its output into a file and later check it. Something like:
      0 20 * * * echo "cron job test" >> /home/myuser/cron_job.log

  • @alfdav
    @alfdav 5 лет назад

    Just wanted to stop by and say thanks for all the videos that you have uploaded.

  • @cleanclothes
    @cleanclothes 4 года назад

    Wonderful video! Informative, right to the point, really appreciate it man.

  • @davidweeks1997
    @davidweeks1997 5 лет назад

    I once applied for a Linux Cron job, they said I wasn't qualified. :-)
    You've made a mistake. Like the number three in Inglorious Bastards. We don't have switches, we only have options. Imposter!
    And camel case was great, until M$ started using it. Now it sucks.
    David Weeks, Tampa, Florida.

    • @pgoeds7420
      @pgoeds7420 5 лет назад

      But you have wrongly used correct spelling for "Inglorious Bastards". :)

  • @Rider0fBuffalo
    @Rider0fBuffalo 5 лет назад

    Whitelisting ads on Engineer Man channel right now!

  • @bulletinmybeard
    @bulletinmybeard 5 лет назад +1

    Great video as usual!

  • @cdefgah4343
    @cdefgah4343 5 лет назад

    Shouldn't we use systemd timers nowadays?

    • @brister61
      @brister61 5 лет назад

      systemd is the devil.

    • @cdefgah4343
      @cdefgah4343 5 лет назад

      @@brister61 well, I always hear these kind of things about systemd. But fact is, that systemd is not only the future but it's already the standard in the present. Anyways, I don't quite get this systemd bashing, maybe it's because I'm still too young or so (never really, worked with cron since I always used systemd).

  • @geekygardens
    @geekygardens 5 лет назад

    Very clear explanation. Thank You.

  • @DannyMexen9
    @DannyMexen9 5 лет назад

    Awesome video. I never knew about [user] I instead just ran any crons as that particular user.

  • @matiasm.3124
    @matiasm.3124 5 лет назад +5

    You forget to do a cron for first Sunday of the month... Most user fails in this one and use something similar to: 0 1 * * 7 SC.sh

  • @zachm7916
    @zachm7916 2 года назад +1

    If you don't know what a cron job is, you can't afford it.

  • @paulcristo
    @paulcristo 5 лет назад

    Thanks for the tutorial. Very helpful.

  • @ItsPb
    @ItsPb 5 лет назад +1

    😊

  • @spaceiswater6539
    @spaceiswater6539 5 лет назад

    You rock thank you so much for making another linux video.

  • @Adonitologist
    @Adonitologist 5 лет назад +1

    Oh yeah yeah yeah!

  • @noweare1
    @noweare1 5 лет назад

    Thanks, very useful

  • @BenGillam
    @BenGillam 5 лет назад

    Thanks for this video made perfect sense will have a play with my raspi :)

  • @random_tech_stuff
    @random_tech_stuff 5 лет назад

    Thank you. I love your videos but I wish you had talked about the environment cron jobs run in, as it's different from the environment that users test their scripts in, which may cause cron jobs to fail being executed. Especially shell is different...

  • @tuxgaming962
    @tuxgaming962 5 лет назад

    Again great tutorial

  • @SmashPhysical
    @SmashPhysical 5 лет назад

    Thanks EM.

  • @trashchris
    @trashchris 5 лет назад

    🤘

  • @dmbrv
    @dmbrv 5 лет назад

    Great video. Can u please do a video about rsync?

  • @abhishekshah11
    @abhishekshah11 5 лет назад

    More linux videos please !

  • @mrinmoymallick2809
    @mrinmoymallick2809 5 лет назад

    Will u plz upload advanced python tutorials

  • @matthewthecomposer
    @matthewthecomposer 5 лет назад

    These videos are great. I almost always use crontab.guru which is an amazing cron cheat sheet. Can you do a video on make files?

  • @KarmaguellanAleixpn
    @KarmaguellanAleixpn 3 года назад +1

    pesat

  • @vaibhavmishra6954
    @vaibhavmishra6954 5 лет назад

    First comment

  • @yuriw777
    @yuriw777 5 лет назад

    Good option to use “sudo crontab-e‘ to do it for root user

  • @sahilverma9330
    @sahilverma9330 5 лет назад

    I am first

  • @lsatenstein
    @lsatenstein 5 лет назад

    I also use @reboot. /Do something
    And also I use mon-thu for Monday through Thursday. One can also use jan-may in place of 1-5.
    More interesting is to only run a job on the last day of the month.
    Accomodate Feb with 28/29 days and months with 31 days.

  • @sahilverma9330
    @sahilverma9330 5 лет назад

    Gg

  • @iamlegion990
    @iamlegion990 5 лет назад

    cron is B-O-R-I-NG af 🤣 kinda like logrotate

    • @EngineerMan
      @EngineerMan  5 лет назад +2

      Boring but essential.

    •  5 лет назад

      Well...logrotate is another good subject for a short video :)

    • @iamlegion990
      @iamlegion990 5 лет назад

      @ I'd like to see stuff on gconf. Org.freedesktop stuff is confusing.
      Gvfs-metadata makes me nervous for security reasons..

    •  5 лет назад

      @@iamlegion990 Those are good subjects indeed. Although maybe not as relevant for developers as things in use for servers, like logrotate or crons. Did you tried kde instead of gnome? I switched like 4-5 months ago and i couldn't be happier :)

    • @iamlegion990
      @iamlegion990 5 лет назад +1

      @ great points !!!

  • @nancyj3042
    @nancyj3042 5 лет назад

    Thank you man