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.4k
    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.
    • LakshmanaL
      Lakshmana @scottalanmiller
      last edited by

      @scottalanmiller Ok.This work has to be carried by me within two days.I have run the script tommorrow

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

        @Lakshmana said:

        @scottalanmiller Ok.This work has to be carried by me within two days.I have run the script tommorrow

        these are questions that you need your manager to answer before even knowing what the script is supposed to do.

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

          @scottalanmiller Consider this "The mozilla version 31 is installed in the ubuntu machine but unfortunately in one criteria the version updated to 38.So now the script has to run automatically in the system and the version 38 has to rolled back to version 31 only.This is the script to be done for this situation

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

            @Lakshmana said:

            @scottalanmiller Consider this "The mozilla version 31 is installed in the ubuntu machine but unfortunately in one criteria the version updated to 38.So now the script has to run automatically in the system and the version 38 has to rolled back to version 31 only.This is the script to be done for this situation

            But what if there is 31 AND 38?

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

              @scottalanmiller How two versions can be present ??

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

                @Lakshmana said:

                @scottalanmiller How two versions can be present ??

                How can they not? Since "present" just means that it has been copied there, having two versions is no different than asking how can two files exist on the same computer. Yet tens of thousands of files exist on computers. Each is just a file. This is why I am saying that your description isn't enough to know what to do. You aren't even installing anything, just copying files, so all you are doing is checking for a file to exist, right?

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

                  @scottalanmiller said:

                  l you are doing is checking for a file to exist, right?

                  Ok When two version present means I need to specify the path of the innstalled firefox version.after that this confusion will be finished.

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

                    @Lakshmana said:

                    @scottalanmiller How two versions can be present ??

                    Pretty sure firefox on linux is really just "ran" not installed.. It might be the version in the default path but, you could have more versions.

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

                      @thecreativeone91 Ok.How to identify that?

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

                        @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.

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

                          @Lakshmana said:

                          @scottalanmiller said:

                          l you are doing is checking for a file to exist, right?

                          Ok When two version present means I need to specify the path of the innstalled firefox version.after that this confusion will be finished.

                          You are not installing anything, though, you are just copying files. You are bypassing the installation process creating a much more complicated situation. Since you are bypassing the installation system you can have numerous copies of Firefox, each a peer. One is not more installed than another.

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

                            @thecreativeone91 said:

                            @Lakshmana said:

                            @scottalanmiller How two versions can be present ??

                            Pretty sure firefox on linux is really just "ran" not installed.. It might be the version in the default path but, you could have more versions.

                            Exactly. It's just a file, not installed the way that he is doing it since the version available through the installer is not the one he can use.

                            1 Reply Last reply Reply Quote 0
                            • 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
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 2 / 4
                                            • First post
                                              Last post