How to schedule a Cron Job to run a script on Ubuntu 16.04

preview_player
Показать описание
This video covers the method to schedule a cron job to run a script on Ubuntu 16.04. Crontab allows Linux and Unix users to run commands or scripts at a given date and time.
Рекомендации по теме
Комментарии
Автор

Surprising that people have complicated blogposts to do this very same thing. Kudos for showing this simplified use-case!

_pratos
Автор

Excellent instructions on Cron tab setup!
Job well done!
Thank you.

uniblab
Автор

the year is 2020, and it just helped me, thanks a lot man!

edwinaritama
Автор

Additionally, you don't have to use "/bin/sh" as you can also use "sh" or "bash" or even "./" for most systems (including Debian/Ubuntu based systems).
For sudo commands, however, it's best to instead place those jobs in the root crontab list (update, upgrade, updatedb, etc).

Anonnline
Автор

Perfect teaching and great presentation skills.

mr.charithsiriwardena
Автор

Simple and well explained!!! MANY THANKS :)

Idontknow
Автор

Thanks. I got the idea about steps should follow on centos and it works.

ArtisansWebVideos
Автор

Thanks, it's easy to understand and really helpful for me.

zinthandarshein
Автор

god damn, you're better than chatGPT, thx!

pavelgrishin
Автор

For me, it was also very helpul! thanks, and regards from Chile :)

felipep
Автор

Thanks for your help :D
Regards from Germany !

zotti_dasurviech
Автор

Superb tutorial brother....amazed to see this..solved my all problem

rahul
Автор

Thank you! Make the same with Docker and Ubuntu

leleofarias
Автор

Sir, I did as it is but I didn't get new file in the desktop when the specified time came

bodapatiudayasri
Автор

Thanks, I have a question though... what is the difference with the approach adding the script in `/etc/cron.daily`? I have a task to run a script daily.. but it does not work after I put the script in `/etc/cron.daily` and also removed the extension `.sh`. I can see the script when I run test (run-part --test ...). I am just wondering though... I will try this approach later :)

BorgyManotoyOnline
Автор

How can I trigger a notification when a job/process ends? in linux

navinchakitchen
Автор

How can I schedule a job so that each time it runs it takes an argument which can be a date and that date can be used in the script being run ?

sarahsalah
Автор

if I send "crontab -e", than return "no crontab for u54653268745". How to solver this? This is vps cloud hostinger

SSOUZA
Автор

i trying to run script for to open one tmux session. in this session i opening web page with browsh (browser with java libraries). Crontab open only session but don't session with browsh. Ideas?

onlynetflix
Автор

Very helpful LinuxHelp, Could we make a reboot ubuntu system to set cron job?

presidentravi