1 / 7

ALEXANDER ARDILA GUTIERREZ

ALEXANDER ARDILA GUTIERREZ. GESTION DE REDES SENA - CTMA. SERVICE.

haruki
Download Presentation

ALEXANDER ARDILA GUTIERREZ

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. ALEXANDER ARDILA GUTIERREZ GESTION DE REDES SENA - CTMA

  2. SERVICE Init.d, ubicada en /etc o en /etc/rc.d dependiendo de la distribución, allí se encuentran una serie de scripts que permiten iniciar, detener y/o reiniciar la gran mayoría de los servicios/servidores que estén instalados en el equipo.

  3. APLICACIÓN service «nombre del servicio» start service «nombre del servicio» stop service «nombre del servicio» restart service --status-all service --full-restart

  4. ATD • El comando atdse emplea para programar una única tarea en un tiempo específico. Este comando puede recibir órdenes de la entrada estándar o desde un fichero, que por lo regular es un script de bash. El tiempo puede ser, sea en forma numérica como una hora (con minutos y modificadores opcionales) o como una palabra clave. Puede contener una fecha opcional, formado como un mes y la fecha, día de la semana, o una palabra clave especial (today o tomorrow).

  5. Los diferentes comandos que hacen al paquete AT son: • atd - El AT Daemon - Como cron, se debe cargar desde un script de /etc/rc.d • at - El at propiamente dicho. • atq- Ver la lista de trabajos ('jobs') pendientes. • atrm - Para eliminar un trabajo pendiente de la cola • batch- Como at, pero ejecutara el script cuando el nivel de carga del sistema haya bajado lo suficiente.

  6. Los directorios relacionados con “at” son: /etc/at.allow: si existe, sólo los usuarios listados en este fichero tienen permiso para ejecutar la utilidad. /etc/at.deny: si existe este fichero, y no el anterior, los usuarios detallados en él no pueden ejecutar at (ni atrm, ni atq). Si no existiesen ninguno de los anteriores ficheros, sólo el usuario rootpuede disponer de la utilidad “at”. HH[:]MM[am|pm] [Mes día] Se puede añadir a la fecha/hora un número (seguido de “minutes”,”hours”,”days”,”weeks”) También se pueden añadir valores relativos como “now”, “midnight”, “noon”, “teatime”, “today” o “tomorrow”.

  7. $ at 10am tomorrow • $ at 10am Jun 30 • $ at 1730 Feb 28 + 3 days • $ at -f /sbin/shutdown 15:50 • $ at -f /home/usuario/script.sh 4:00 pm today • $at 10:00am now + 2 days -f /home/usuario/script.sh

More Related