I’m running unittest scripts and for test case setup I need to run shell command from time to time. As a result shell command is run around 50 times during unittest execution. It works ok on CentOS release 6.6 (Final) server but doesn’t work on Ubuntu 14.04.3 LTS. The problem is that after around …
Tag: linux
Create user on remote linux with Jenkins
I need to run a ssh script on a remote linux server to add a user but nothing I do quite works. I make up the username of 2 Parameters and then try to make the password of which the first part is a set string but the second part is also a Parameter. I am using the Jenkins SSH
iterating ssh-copy-id command to copy on multiple hosts
I am trying to copy public key to my multiple hosts in a file called “hostsfile”. I am writing a script that will allow me to do that as I am setting a dev environment and I may end up doing it over and over. Googling around I have been able to place insert the public key using ssh-copy-id command
Command to change tomcat server port
I’m using ubuntu, and I’m in a need of some command, using which I can change the server port configurations. Therefore, my question is… Is there any linux command, to update the Tomcat server connection port, as well as server shutdown port? Answer maksim_khokhlov answer looks promising if …
linux how to change a file name to the name of its folder?
I’m working in Linux, I have a folder that contains many sub-folders, in each sub-folder there is a file named Analyze.txt. I would like to move all these files (Analyze.txt) into one folder and change the name of the file Analyze.txt to the name of the sub-folder it originated from. Thanks, Raz Answer …
Segmentation fault (core dumped) in c using linux – special case
I am basically trying to create a log file which has date and time as its name. This is my code Without the step 1 every thing worked fine. It created a log file with the name I wanted in the same folder where my program is. But when I add step 1 into the mix it gives me this
How to get the first address of initialized data segment
my program is working on linux using gcc. Through the manual page, I find edata, which represent the first address past the end of the initialized data segment. But I want know the first address of initialized data segment How can I get it? I have tried treating etext as the first address of initialized data …
Loading ROMS to Emu OS
I recently downloaded Emu OS (a Linux distro) and installed it within virtual box. Everything works fine but I am unable to actually run the roms within an emulator. I tried a GBC rom that is in .zip format and I copied and pasted it into the GB and GBC folder, but the emulator itself isn;t able to recognize …
SSH login between servers still asking for password, why?
I have two servers identified as server-1 – 192.168.3.128 and server-2 – 192.168.3.130. I am setting up capifony for automatic deployment from server-1 to server-2 and this is what I have done so far: In both servers I have created a user deploy without password since that’s the user I will …
how to change JVM memory options in redhat linux
Can anyone help me in changing JVM options in Red Hat Linux, how can i know which default JVM options are being used. let me know the commands please. how to modify JVM options Answer The java version currently in use can be decided with $ java -version Selecting another installed java version : # /sbin/alter…