Results 1 to 10 of 26

Thread: [SOLVED] Problema de ejecucion crontab

Threaded View

  1. #1
    Join Date
    Jan 2007
    Location
    Buenos Aires, Argentina
    Beans
    172
    Distro
    Ubuntu 7.04 Feisty Fawn

    [SOLVED] Problema de ejecucion crontab

    Estimados, luego de luchar contra los molinos de viento me veo en el atrevimiento de molestar por estos lugares.

    Resulta que al schedulear un script, este no se ejecuta
    Si este script lo corro en forma manual se ejecuta a las 1000 maravillas, pero no al ponerlo scheduleado dentro de crontab.

    el script que se ejecuta es el siguiente :

    Code:
    #!/bin/sh
    
    mplayer -playlist /home/flyerdie/Desktop/radio10/playlist.lst -ao pcm:file=/tmp/temporadio.wav -vc dummy -vo null ;
    lame -m s /tmp/temporadio.wav -o /home/flyerdie/Desktop/radio10/radio10_`date +"%Y%m%d"`.mp3
    rm /tmp/temporadio.wav ;
    que lo tengo guardado dentro de /home/flyerdie/.grabaradio10
    A su vez, tengo dentro de .bashrc el alias:

    Code:
    alias grabaradio10='sh /home/flyerdie/.grabaradio10'
    asi lo puedo ejecutar desde cualquier lado como 'grabaradio10'

    Ahora bien, el problema es el siguiente, cuando le agrego la tarea a crontab (la cual la agrega sin mayores inconvenientes) no se ejecuta!

    aca el cron:

    Code:
    19 18 * * * grabaradio10 
    21 18 * * * killall -9 mplayer
    y aca el resultado en /var/log/cron.log

    Code:
    Jul 13 18:19:01 moscu2 /usr/sbin/cron[5375]: (flyerdie) RELOAD (crontabs/flyerdie)
    Jul 13 18:19:01 moscu2 /USR/SBIN/CRON[7382]: (flyerdie) CMD (grabaradio10)
    Jul 13 18:19:07 moscu2 /usr/bin/crontab[7385]: (flyerdie) LIST (flyerdie)
    Jul 13 18:19:16 moscu2 /usr/bin/crontab[7389]: (flyerdie) LIST (flyerdie)
    Jul 13 18:19:25 moscu2 /usr/bin/crontab[7402]: (flyerdie) LIST (flyerdie)
    Jul 13 18:19:34 moscu2 /usr/bin/crontab[7406]: (flyerdie) LIST (flyerdie)
    Jul 13 18:19:43 moscu2 /usr/bin/crontab[7410]: (flyerdie) LIST (flyerdie)
    Jul 13 18:19:52 moscu2 /usr/bin/crontab[7414]: (flyerdie) LIST (flyerdie)
    Jul 13 18:20:01 moscu2 /usr/bin/crontab[7418]: (flyerdie) LIST (flyerdie)
    Jul 13 18:20:10 moscu2 /usr/bin/crontab[7422]: (flyerdie) LIST (flyerdie)
    Jul 13 18:20:19 moscu2 /usr/bin/crontab[7426]: (flyerdie) LIST (flyerdie)
    Jul 13 18:20:28 moscu2 /usr/bin/crontab[7431]: (flyerdie) LIST (flyerdie)
    Jul 13 18:20:37 moscu2 /usr/bin/crontab[7435]: (flyerdie) LIST (flyerdie)
    Jul 13 18:20:46 moscu2 /usr/bin/crontab[7459]: (flyerdie) LIST (flyerdie)
    Jul 13 18:20:55 moscu2 /usr/bin/crontab[7463]: (flyerdie) LIST (flyerdie)
    Jul 13 18:21:01 moscu2 /USR/SBIN/CRON[7467]: (flyerdie) CMD (killall -9 mplayer)
    si corro en forma manual 'grabaradio10' y dejo que la segunda linea del cron se ejecute (la del kill), esta realiza el kill sin problemas... pero la primer linea nunca se ejecuta

    Idea de que podra ser? desde ya muy agradecido, ya que tengo ganas de grabarme el programa de Dolina (entre otros), y esto me vendria mas que bien

    Saludos!
    Last edited by FlyerDie; July 16th, 2008 at 09:29 PM. Reason: Problema solucionado
    Ubuntu User #17330

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •