Shell Scripting to be done for verifying the software version and also not to update
-
@handsofqwerty I also need to compare the specific version and also stop auto update
-
I need to run only the mozilla 31 and java 1.7.0.65 in the ubuntu system and then if the version is higher or lower means the mozilla to be uninstalled and then installation of mozilla 31 to be done automatically and then the mozilla 31 to be runned in the system.How to do ??????
-
This is a reasonable logically approach. Basically you are scripting up what something like Chef or Puppet already do.
-
Now as you are not installing these things but just copying them into place this will be much harder as you have to figure out exactly how you want this to work. What if other versions are installed? What if other versions are copied? How do you determine if the right version is there? How do you determine if the wrong version is there? What actions to take depending on those things?
This is not nearly as simple as it might sound. There are many, many variables.
-
@scottalanmiller I need to run only mozilla version 31 and java 1.7.0_65 in ubuntu version 14.04 64 Bit OS.If the mozilla version is below 31 means or above 31 means there should be process done where the mozilla above or below version mozilla has to be uninstalled by automatically by running the script only.
-
@Lakshmana said:
@scottalanmiller I need to run only mozilla version 31 and java 1.7.0_65 in ubuntu version 14.04 64 Bit OS.If the mozilla version is below 31 means or above 31 means there should be process done where the mozilla above or below version mozilla has to be uninstalled by automatically by running the script only.
I understand that part. But it is much more complicated than that. You are stating something that is not enough to solve the problem.
-
For example "I need to only run Firefox Version 31" doesn't tell me enough. What if more versions are installed? What if other versions exist but are not installed? How do you determine the running version?
-
@scottalanmiller Ok.This work has to be carried by me within two days.I have run the script tommorrow
-
@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.
-
@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
-
@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?
-
@scottalanmiller How two versions can be present ??
-
@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?
-
@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.
-
@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.
-
@thecreativeone91 Ok.How to identify that?
-
@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.
-
@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.
-
@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.
-
@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.