Advertisement
DanPacu

sh y crontab

Aug 27th, 2020
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3.  
  4. echo update
  5. echo ..Hola. Este es el script de update de Dan P.
  6. sleep 2s
  7. cd
  8.  
  9. sudo apt-get update
  10.  
  11. sudo apt-get upgrade -y
  12.  
  13. clear
  14.  
  15.  
  16. Y esto es el crontab
  17.  
  18. # Edit this file to introduce tasks to be run by cron.
  19. #
  20. # Each task to run has to be defined through a single line
  21. # indicating with different fields when the task will be run
  22. # and what command to run for the task
  23. #
  24. # To define the time you can provide concrete values for
  25. # minute (m), hour (h), day of month (dom), month (mon),
  26. # and day of week (dow) or use '*' in these fields (for 'any').
  27. #
  28. # Notice that tasks will be started based on the cron's system
  29. # daemon's notion of time and timezones.
  30. #
  31. # Output of the crontab jobs (including errors) is sent through
  32. # email to the user the crontab file belongs to (unless redirected).
  33. #
  34. # For example, you can run a backup of all your user accounts
  35. # at 5 a.m every week with:
  36. # 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
  37. #
  38. # For more information see the manual pages of crontab(5) and cron(8)
  39. #
  40. # m h dom mon dow command
  41.  
  42. 29 17 * * * /home/pi/update.sh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement