ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Shell Scripting to be done for verifying the software version and also not to update

    IT Discussion
    shell scripting
    5
    72
    10.5k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • scottalanmillerS
      scottalanmiller @Lakshmana
      last edited by

      @Lakshmana said:

      @thecreativeone91 Ok.How to identify that?

      You know that this is the case because you are downloading a copy of Firefox and not running an installer.

      1 Reply Last reply Reply Quote 0
      • scottalanmillerS
        scottalanmiller @A Former User
        last edited by

        @thecreativeone91 said:

        @Lakshmana said:

        @thecreativeone91 Ok.How to identify that?

        You can't. you'd have to search ever folder for a firefox and then check the version, but then it could still be renamed and break the verification.

        Exactly again. Once you don't use a system installer the concept of "installed" because extremely murky.

        LakshmanaL 1 Reply Last reply Reply Quote 0
        • LakshmanaL
          Lakshmana @scottalanmiller
          last edited by Lakshmana

          @scottalanmiller Ok.How to uninstall the firefox version version automatically.I have used this command but the comaprision does not done

          #!/bin/bash
          clear
          echo "The script starts now"
          firefox -v
          echo

          echo "Verification of Firefox version"
          read Firefox version

          if [ "firefox -v" == "Mozilla Firefox 31.0" ]; then
          echo "The version is correct "
          else
          echo "Alert!The version is not correct"
          fi

          ? scottalanmillerS 3 Replies Last reply Reply Quote 0
          • ?
            A Former User @Lakshmana
            last edited by

            @Lakshmana said:

            @scottalanmiller Ok.How to uninstall the firefox version version automatically

            How did that come from his last comment?

            1 Reply Last reply Reply Quote 0
            • LakshmanaL
              Lakshmana
              last edited by Lakshmana

              I have given the command through which I try to compare the version of the firefox.Whether the command is correct or any correction needs to be done.

              scottalanmillerS 1 Reply Last reply Reply Quote 0
              • scottalanmillerS
                scottalanmiller @Lakshmana
                last edited by

                @Lakshmana said:

                @scottalanmiller Ok.How to uninstall the firefox version version automatically.I have used this command but the comaprision does not done

                #!/bin/bash
                clear
                echo "The script starts now"
                firefox -v

                This will tell you what version of Firefox you have in your path, nothing more. It doesn't tell you how many versions there are, what versions people are using, etc.

                1 Reply Last reply Reply Quote 0
                • scottalanmillerS
                  scottalanmiller @Lakshmana
                  last edited by

                  @Lakshmana said:

                  @scottalanmiller Ok.How to uninstall the firefox version version automatically.

                  So we've confirmed that you are not installing Firefox at all. Have you read what we've been telling you?

                  You always seem to skip the information that we say and ask the same questions over and over again after we've explained that the question can't be asked. I understand that it is tempting to just skip comments that you don't understand, but you can't do that. Figuring out what the installed means is pretty important here. You can't just ignore all that we have been telling you.

                  1 Reply Last reply Reply Quote 1
                  • scottalanmillerS
                    scottalanmiller @Lakshmana
                    last edited by

                    @Lakshmana said:

                    I have given the command through which I try to compare the version of the firefox.Whether the command is correct or any correction needs to be done.

                    You are not checking on what you were told to check. This is exactly what I've been telling you from the beginning. You have not been given instructions with enough information to know what to do. Either you need to get clarification or you need to make a judgement call.

                    1 Reply Last reply Reply Quote 0
                    • scottalanmillerS
                      scottalanmiller
                      last edited by

                      To delete Firefox, you delete it. It is that simple. You use "rm" like deleting any other file because when you copy, instead of installing, Firefox, it is just a file. So just remove it.

                      LakshmanaL 1 Reply Last reply Reply Quote 0
                      • LakshmanaL
                        Lakshmana @scottalanmiller
                        last edited by

                        @scottalanmiller First I am testing whether the above mentioned command works properly to compare the version of the firefox and after that i will check the status of the firefox in the system(ubuntu)

                        scottalanmillerS 1 Reply Last reply Reply Quote 0
                        • ?
                          A Former User
                          last edited by

                          You don't test a script without a proper use case of how it would work. For all intensive purposes you don't have a script at this point.

                          LakshmanaL 1 Reply Last reply Reply Quote 0
                          • LakshmanaL
                            Lakshmana @A Former User
                            last edited by

                            @thecreativeone91 Yes.Then how can I do now.Can you give any idea

                            scottalanmillerS 1 Reply Last reply Reply Quote 0
                            • scottalanmillerS
                              scottalanmiller @Lakshmana
                              last edited by

                              @Lakshmana said:

                              @scottalanmiller First I am testing whether the above mentioned command works properly to compare the version of the firefox and after that i will check the status of the firefox in the system(ubuntu)

                              And, like we've said since the beginning, no, it does not.

                              1 Reply Last reply Reply Quote 0
                              • scottalanmillerS
                                scottalanmiller @Lakshmana
                                last edited by

                                @Lakshmana said:

                                @thecreativeone91 Yes.Then how can I do now.Can you give any idea

                                We don't know. You must answer the questions that I stated at the beginning. Right now you haven't decided what the script is supposed to do. So since you haven't decided what it will do yet, how can we help you do something?

                                LakshmanaL 1 Reply Last reply Reply Quote 0
                                • LakshmanaL
                                  Lakshmana @scottalanmiller
                                  last edited by

                                  @scottalanmiller said:

                                  do. So since you haven't decided what it will do yet, how can we help you do something?

                                  Please wait?

                                  scottalanmillerS 1 Reply Last reply Reply Quote 0
                                  • scottalanmillerS
                                    scottalanmiller @Lakshmana
                                    last edited by

                                    @Lakshmana said:

                                    @scottalanmiller said:

                                    do. So since you haven't decided what it will do yet, how can we help you do something?

                                    Please wait?

                                    Sure, just sit down and figure out the goal. What do you want the script to do. We can help you once you know what the goal is.

                                    And whatever you do, stop using the word "installed" because we are not dealing with software installation here and this is throwing you off considerably.

                                    LakshmanaL 1 Reply Last reply Reply Quote 0
                                    • LakshmanaL
                                      Lakshmana @scottalanmiller
                                      last edited by

                                      @scottalanmiller Please read the information and if information is not relevant means please inform me.

                                      My overall goal is to write the script for the ubutu 14.04 LTS 64 Bit OS.

                                      The script has to check the version status of the firefox and java .

                                      The overall aim is that the firefox and java has to be present in the specific version at Ubuntu.

                                      The auto update will be stopped for firefox by GUI.

                                      If the firefox or java version updated after this means the script should be runned automatically to uninstall the newer version of firefox or java from the machine and then the specific version Firefox 31.0 and java 1.7.0_65 needs to be installed at the system in background without the user interference.

                                      scottalanmillerS 2 Replies Last reply Reply Quote 0
                                      • scottalanmillerS
                                        scottalanmiller @Lakshmana
                                        last edited by

                                        @Lakshmana said:

                                        The overall aim is that the firefox and java has to be present in the specific version at Ubuntu.

                                        So answer the original questions:

                                        • Are you looking to see only that the right version exists?
                                        • What do you want to do about other versions?
                                        • How do you want to define the right version being there?
                                        LakshmanaL 1 Reply Last reply Reply Quote 0
                                        • scottalanmillerS
                                          scottalanmiller @Lakshmana
                                          last edited by

                                          @Lakshmana said:

                                          If the firefox or java version updated after this means the script should be runned automatically to uninstall the newer version of firefox or java from the machine and then the specific version Firefox 31.0 and java 1.7.0_65 needs to be installed at the system in background without the user interference.

                                          You are back to using "install" again. You can't uninstall or install, you learned this over and over already. Why do you keep reverting to these terms when they don't apply here and are very much causing you to be confused?

                                          1 Reply Last reply Reply Quote 1
                                          • scottalanmillerS
                                            scottalanmiller
                                            last edited by

                                            If you want to remove a version that is not the correct one, you delete it. In Linux we delete with the rm command. It's that simple.

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 3 / 4
                                            • First post
                                              Last post