Announcement

Collapse
No announcement yet.

Cron leaves terminal open

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

    Cron leaves terminal open

    OK I go to Settings/system settings & try to set up some BASH scripts like I had in Hardy.
    Every time one runs a terminal window opens ans has to be closed. Is there a way to switch this "feature" off?
    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
    Re: Cron leaves terminal open

    That "feature" isn't "on".
    What's in your script?
    "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
    – John F. Kennedy, February 26, 1962.

    Comment


      #3
      Re: Cron leaves terminal open

      Code:
      #!/bin/bash
      
      #Look out! We be programming!
      # copyright ka9qlq
      
      cd ~/bin
      
      date +%I,%P | espeak -v f4 -s 80-p=80 -w time.wav #make the wave to play
      play pre.wav		#preamble
      play time.wav		#hearold the time
      rm time.wav		#housekeeping
      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
        Re: Cron leaves terminal open

        Do I have your permission to make a copy and try it out?

        Does ~/bin contain pre.wav ?
        "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
        – John F. Kennedy, February 26, 1962.

        Comment


          #5
          Re: Cron leaves terminal open

          You do,and yes it does. It works fine it's just in Hardy it never opened, much less kept open a window open.
          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
            Re: Cron leaves terminal open

            just running it .....clicking it in dolphin I get the hour spoken out ...but no terminal window.

            ware in system settings do I try setting it to run?

            VINNY
            i7 4core HT 8MB L3 2.9GHz
            16GB RAM
            Nvidia GTX 860M 4GB RAM 1152 cuda cores

            Comment


              #7
              Re: Cron leaves terminal open

              I modified it a bit to suit my tastes:
              #!/bin/bash

              #Look out! We be programming!
              # copyright ka9qlq

              date +%A,%B,%e,%Y,%R | espeak -v en-us -s 160 -p=90 -w time.wav #make the wave to play
              rm ~/time.wav #housekeeping
              play ~/pre.wav #preamble
              play time.wav #hearold the time
              And used AutoStart under Systemsettings ==> Hardware to set it to execute at login.
              It works fine. No console opens up. But, I would have to disable the KDE startup music because it and my time played on top of each other.


              EDIT: I found that espeak was saving my time.wav file in the ~/Documents folder. I found no setting in the .gconf/espeak directory which used ~/Documents as a destination folder. Anyone know where that setting is hidden?
              "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
              – John F. Kennedy, February 26, 1962.

              Comment


                #8
                Re: Cron leaves terminal open

                [quote=GreyGeek ]
                I modified it a bit to suit my tastes:

                And used AutoStart under Systemsettings ==> Hardware to set it to execute at login.
                It works fine. No console opens up. But, I would have to disable the KDE startup music because it and my time played on top of each other.


                EDIT: I found were espeak was saving my time.wav file in the ~/Documents folder. I found no setting in the .gconf/espeak directory which used ~/Documents as a destination folder. Anyone know where that setting is hidden?
                That's strange, mine doesn't. I want to use chron to ron this And some others on at regular time. Some are time some time temp or forecast. Here's the window output that I have to close after each run

                Code:
                pre.wav:
                
                 File Size: 128k   Bit Rate: 353k
                 Encoding: Signed PCM  
                 Channels: 1 @ 16-bit  
                Samplerate: 22050Hz   
                Replaygain: off     
                 Duration: 00:00:02.89 
                
                In:100% 00:00:02.89 [00:00:00.00] Out:139k [   |   ] Hd:2.6 Clip:0  
                Done.
                
                time.wav:
                
                 File Size: 153k   Bit Rate: 353k
                 Encoding: Signed PCM  
                 Channels: 1 @ 16-bit  
                Samplerate: 22050Hz   
                Replaygain: off     
                 Duration: 00:00:03.47 
                
                In:100% 00:00:03.47 [00:00:00.00] Out:166k [   |   ] Hd:1.6 Clip:0  
                Done.
                -------------------------------------------------------------------------
                End of script execution. Type Enter or Ctrl+C to exit.
                -------------------------------------------------------------------------
                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


                  #9
                  Re: Cron leaves terminal open

                  Your output is exactly what I get when I run the "date ..." line in a konsole.

                  I saved the bash script in my home directory and marked it executable. When I click on it while browsing in Dolphin it works beautifully without a console popup, just as it does when it executes during KDE startup.

                  A Konsole usually pops up if the script is called from a menu item and the "run in terminal" option is checked, but that isn't the case with you. Do you have any special settings in your Konsole profile?
                  "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
                  – John F. Kennedy, February 26, 1962.

                  Comment


                    #10
                    Re: Cron leaves terminal open

                    Do you have any special settings in your Konsole profile?
                    Well I don't know of any.

                    hen I click on it while browsing in Dolphin it works beautifully without a console popup.
                    Same here, makes no sense
                    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


                      #11
                      Re: Cron leaves terminal open

                      Well I wish I could tell what I dis for other users but now it works right..............crazy
                      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


                        #12
                        Re: Cron leaves terminal open

                        In what cron directory did you put your script, and how did you implement the cron timing?
                        Currently, on my box, /etc/crontab shows these settings:
                        # m h dom mon dow user command
                        17 * * * * root cd / && run-parts --report /etc/cron.hourly
                        25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
                        47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
                        52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
                        #
                        Where did you put your timing sequence to tell cron when to run your temp and time scripts so that they were executed at times other than given above?

                        If I were setting up a script to run at times other than KDE bootup, I'd use the Systemsettings TaskScheduler under the System Administration tab.
                        "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
                        – John F. Kennedy, February 26, 1962.

                        Comment

                        Working...
                        X