Announcement

Collapse
No announcement yet.

Strange cron behaviour

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Strange cron behaviour

    If I type
    amixer -c 0 sset Front,0 40%,40%
    in a terminal my speakers are set to 40%, but put that in a cron job and the speakers are set to 100%
    Huh?
    Alvin
    Thanks
    Alvin ARS ka9qlq
    Kubuntu 12.04 on a AMD X2 6000+ Asus M3A78-CM 4 GB RAM ATI Radeon 3100 256MB & 2 TB SATA HD
    Just believing there IS a God won't get you to Heaven.
    Accepting Jesus as your Lord and master is the only way!
    http://www.4laws.com/laws/languages.html
    http://www.godssimpleplan

    #2
    What is the exact line in the cronjob?

    Comment


      #3
      in system settings/advanced/task scheduler it's
      amixer -c 0 sset Line,0 40%,40%
      but crontab none of the working or not working tasks show
      Alvin
      Thanks
      Alvin ARS ka9qlq
      Kubuntu 12.04 on a AMD X2 6000+ Asus M3A78-CM 4 GB RAM ATI Radeon 3100 256MB & 2 TB SATA HD
      Just believing there IS a God won't get you to Heaven.
      Accepting Jesus as your Lord and master is the only way!
      http://www.4laws.com/laws/languages.html
      http://www.godssimpleplan

      Comment


        #4
        whats the output of "crontab -l"

        Comment


          #5
          alvin@dittohead:~/bin/weatherspeak$ crontab -l
          #No comment
          SHELL=/bin/sh

          #No comment
          10,40 * * * * /home/alvin/bin/wxmaps/getmaps

          #No comment
          30 * * * * /home/alvin/bin/time

          #Hourtime
          0 0,1,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23 * * * /home/alvin/bin/hourtime

          #Time and temp
          15,45 * * * * /home/alvin/bin/HWR/time-temp

          #Cucuclock
          0 2,3,4,5,6,7 * * * /home/alvin/bin/cucu.yab

          #No comment
          5,35 5,6,7 * * * /home/alvin/bin/HWR/time-forcast

          #No comment
          0 5,16 * * * /usr/bin/podget

          #Refreash the screen
          */5 * * * * /home/alvin/bin/refreshbackground

          #No comment
          30 1,16 * * * amixer -c 0 sset Front,0 unmute

          #No comment
          #\* * * * * amixer -c 0 sset Line,0 40%,40%

          #No comment
          #\55 * * * * amixer -c 0 sset Front,0 55%,55%

          #No comment
          #\2,4,6,8,12,17,22,28,33,38,43,47,53,57 * * * * /home/alvin/bin/wxmaps/radar

          #Imprimas
          25 1 * * * /usr/bin/podget -c podgetrc2

          #Clear ~/POD of m3u's
          #\0 6 * * * rm /home/alvin/POD/*.m3u

          #No comment
          @reboot /home/alvin/bin/hdparm-set

          #Start fatrat
          #\0 1 * * * /usr/bin/fatrat

          #No comment
          10 * * * * /home/alvin/bin/HWR/HAMweather-05.yab

          #No comment
          20,50 12,16,17,18 * * * /home/alvin/bin/HWR/time-cond

          #No comment
          12 * * * * killall HAMweather-05.yab


          # File generated by KCron the Sunday, January 22, 2012 10:14 pm.
          Thanks
          Alvin ARS ka9qlq
          Kubuntu 12.04 on a AMD X2 6000+ Asus M3A78-CM 4 GB RAM ATI Radeon 3100 256MB & 2 TB SATA HD
          Just believing there IS a God won't get you to Heaven.
          Accepting Jesus as your Lord and master is the only way!
          http://www.4laws.com/laws/languages.html
          http://www.godssimpleplan

          Comment


            #6
            fatrat wont load ether so it's disabled too
            Alvin
            Thanks
            Alvin ARS ka9qlq
            Kubuntu 12.04 on a AMD X2 6000+ Asus M3A78-CM 4 GB RAM ATI Radeon 3100 256MB & 2 TB SATA HD
            Just believing there IS a God won't get you to Heaven.
            Accepting Jesus as your Lord and master is the only way!
            http://www.4laws.com/laws/languages.html
            http://www.godssimpleplan

            Comment


              #7
              Apart from it being disabled, there dosnt seem anything wrong with the line... what happens if you execute the command from a tty (not from the gui)? Also, what happens if you execute it from a tty with the /bin/sh shell?

              As a side note, why are you trying to set your volumes in a cronjob?

              Comment


                #8
                That's just it, when I put the same thing in a terminal it works fine but cron puts Front at 100% every time. doesn't seem to notice the 40%. unmute works good IF sound levels are set right. I never turn the PC off so when I switch from headphones at lunch or nap time or bed time and forget to adjust the volume it will anyway. Yah I'm lazy, plus I'm disabled, I can't just pop back up and set them if I remember after I'm laid down.
                Thanks
                Alvin ARS ka9qlq
                Kubuntu 12.04 on a AMD X2 6000+ Asus M3A78-CM 4 GB RAM ATI Radeon 3100 256MB & 2 TB SATA HD
                Just believing there IS a God won't get you to Heaven.
                Accepting Jesus as your Lord and master is the only way!
                http://www.4laws.com/laws/languages.html
                http://www.godssimpleplan

                Comment

                Working...
                X