Vi command to copy paragraph
rajeshkumar created the topic: vi command to copy paragraph vi command to copy paragraph “ty} copy text from cursor to end of paragraph into buffer “t” Regards, Rajesh Kumar Twitt me @ twitter.com/RajeshKumarIn
rajeshkumar created the topic: vi command to copy paragraph vi command to copy paragraph “ty} copy text from cursor to end of paragraph into buffer “t” Regards, Rajesh Kumar Twitt me @ twitter.com/RajeshKumarIn
scmjobs created the topic: Write script to print given number in reverse order, for eg. If no is Write script to print given number in reverse order, for eg. If no is 123 it must print as 321. kd09714 replied the topic: Re: Write script to print given number in reverse order, for eg. If…
tpatil created the topic: ShellScript to monitor available disk space on AIX #!/bin/ksh # This script monitors available disk space. # This script emails an alert when a locally mounted partition crosses a given threshold. # Set your threshold percentage (do not include the % sign), email address, and excluded mount points, then add to…
rajeshkumar created the topic: FTP commands for Linux / Unix How to Login – ftp rajesh-servers Basic Commands help or ? Displays a list of all FTP commands. quit Quits the program. ! [command] Executes a shell command from within the FTP program. Directory Commands cd [directory] Changes to the specified directory on the remote…
rajeshkumar created the topic: df command usage Filesystems using more than 90% capacity df -hP | awk ‘{x=$5;sub (“%”,””,x)}x>75’ df -h | awk ‘{if(NF==1){x=$0;getline;if(int($4)>90)print x,$0}else if(int($5)>90) print}’ ssh -q rajesh ‘df -hP’ | awk ‘{x=$5;sub (“%”,””,x)}x> 30’ ssh -q rajesh ‘df -h’ | awk ‘{if(NF==1){x=$0;getline;if(int($4)>60)print x,$0}else if(int($5)>60) print}’ Error: df: unknown option: P Usage: df…
rajeshkumar created the topic: Frequently Used Shell Script Shell scripts to convert file names to lower case and upper case To convert to lower case: #!/bin/sh for i in * do j=`echo $i | tr ‘[A-Z]’ ‘[a-z]’` mv $i $j done To convert to upper case: #!/bin/sh for i in * do j=`echo $i |…
rajeshkumar created the topic: Various Commands to send an email in Linux Sending mail To send a message to one or more people, mailx can be invoked with arguments which are the names of people to whom the mail will be sent. The user is then expected to type in his message, followed by an…
rajeshkumar created the topic: Setting the tab in Vim Setting the tab in Vim $ sudo vim /etc/vim/vimrc Then add the following line: set tabstop=4 Next, save, exit and execute the script Regards, Rajesh Kumar Twitt me @ twitter.com/RajeshKumarIn
rajeshkumar created the topic: Recovering a Recently opended deleted files Recovering a Recently opended deleted files By using lsof, you can recover a deleted file that was opened already. This comes very handy when attacker gain access to the systems and has executed commands or has done some configuration changes, and then removes the log…
rajeshkumar created the topic: Securing a directory Securing a directory Here is a tip that uses the sticky bit feature of Linux to secure a directory. A sticky but ensures that no user other than the owner and the super can delete files in the directory. When a sticky bit is applied to a directory,…
rajeshkumar created the topic: Changing port of ftp and ssh Changing port of ftp and ssh To Change the port of ssh, edit the file /etc/ssh/sshd_config and add the following line: port 222 Restart the services of ssh to make the changes effective. Now you need to specify the port number using option ‘-p’ whenever…
rajeshkumar created the topic: Make your pendrive bootable Make your pendrive bootable if you can not boot from the DVD/CD-ROM drive, but can boot using USB device such as a USB pen drive, the following alternative method can be used to boot Linux. 1. Check the name of your pen drive by issuing the following…
rajeshkumar created the topic: How to check ssh is working with public key / private key Code – ssh serverhostname -o ‘BatchMode=yes’ -o ‘ConnectionAttempts=1’ true Every time a ssh attempt fails, it rights a string “Failed” to the /var/log/secure. Maybe you can just count that number, and if it goes above a threshold you can…
rajeshkumar created the topic: Must have collection of shell script for any SCM admin Hello Guys, In a busy schedule of SCM jobs, everyone must have a collection of shell scripts which can be easily modifiable and make use in our daily tasks to save out time. There are few script everyone must have such…
rajeshkumar created the topic: How to check ssh is working with public key / private key Code – ssh serverhostname -o ‘BatchMode=yes’ -o ‘ConnectionAttempts=1’ true Every time a ssh attempt fails, it rights a string “Failed” to the /var/log/secure. Maybe you can just count that number, and if it goes above a threshold you can…
rajeshkumar created the topic: Must have collection of shell script for any SCM admin Hello Guys, In a busy schedule of SCM jobs, everyone must have a collection of shell scripts which can be easily modifiable and make use in our daily tasks to save out time. There are few script everyone must have such…
rajeshkumar created the topic: Create a script haven’t been accessed for a week, then delete them Create a script for a cronjob that checks a special directory for files with the extension .tmp that haven’t been accessed for a week, then delete them. Also remove all empty directories. #!/bin/bash usage() { echo “Usage: $0 [-d…
rajeshkumar created the topic: Questions to test your linux shell Script www.scmgalaxy.com/index.php?option=com_k…34&id=427&Itemid=442 www.scmgalaxy.com/index.php?option=com_k…34&id=426&Itemid=442 www.scmgalaxy.com/index.php?option=com_k…34&id=425&Itemid=442 www.scmgalaxy.com/index.php?option=com_k…34&id=424&Itemid=442 www.scmgalaxy.com/index.php?option=com_k…34&id=423&Itemid=442 www.scmgalaxy.com/index.php?option=com_k…34&id=422&Itemid=442 www.scmgalaxy.com/index.php?option=com_k…34&id=419&Itemid=442 www.scmgalaxy.com/index.php?option=com_k…34&id=421&Itemid=442 www.scmgalaxy.com/index.php?option=com_k…34&id=420&Itemid=442 www.scmgalaxy.com/index.php?option=com_k…34&id=418&Itemid=442 www.scmgalaxy.com/index.php?option=com_k…34&id=431&Itemid=442 www.scmgalaxy.com/index.php?option=com_k…34&id=430&Itemid=442 www.scmgalaxy.com/index.php?option=com_k…34&id=428&Itemid=442 Regards, Rajesh Kumar Twitt me @ twitter.com/RajeshKumarIn sribhavani_u replied the topic: Questions to test your linux shell Script #assignment question1 #You have a number of C programs that certain comment lines…
scmuser created the topic: New Setup issues of CruseControl Connectforu Config Tab Issues Hi, I have cruise contriol and when i navigated to Connectforu and click in Config Tab, i got following issues, plz guide me. HTTP ERROR: 500 javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: epc-rajesh-wxp.chordiant-epc.com; nested exception is: java.net.ConnectException: Connection refused:…
scmuser created the topic: Unregister Issues in JMX Interface Hi, I am just learning Cruise Control. I access http://localhost:8000/ link and click on un-register and then this Page is disappeared. Can you guide me how to reset this back to earlier state? scmuser replied the topic: Re:Unregister Issues in JMX Interface Hi I got this…
scmuser created the topic: msbuild slower than devenv Hi, I’m experiencing performance inconsistencies with regards to build duration when building a VS2008 solution file with either devenv or msbuild from command line. My solution contains both C# and C++ projects, and I have these results: devenv.exe (either command line or within the ide): 7 minutes…
sgoldstein created the topic: Build Archive Policy I wanted to get some input from the SCM community regarding build archiving. When using either a CI or nightly build approach, a number of builds are generated during a release. How do people generally define a retention policy for retaining builds on disk? Once the retention policy…
rambabu1683 created the topic: MSBuild Tool Hi guys, i am new to this forum. can anyone help me about MSBUILD tool with small examples? Warm Regards, Rambabu.M rajeshkumar replied the topic: MSBuild Tool These quicks urls might help you… www.scmgalaxy.com/189-msbuild/229-introduction-to-msbuild.html www.scmgalaxy.com/189-msbuild/161-runnin…ous-integration.html Regards, Rajesh Kumar Twitt me @ twitter.com/RajeshKumarIn
scmuser created the topic: Windows: “OpenSCManager failed – Access is denied. (0x5)” errors when Problem: Windows: “OpenSCManager failed – Access is denied. (0x5)” errors when starting Nexus Solution: You need to run the command prompt as an Administrator to avoid the problem. For example: 1. click on start 2. click “All Programs” 3. click on…
scmuser created the topic: The nexus-webapp service is not installed – The specified service does While installing Sonatype nexus in Windows 7, I get following error.. wrapper | The nexus-webapp service is not installed – The specified service does not exist as an installed service. (0x424) I checked java version but no help.. C:\tools\nexus\nexus-2.7.0-04\bin>java -version…
scmuser created the topic: Fatal error: Unable to find local grunt. I am getting following error… grunt lite grunt-cli: The grunt command line interface. (v0.1.9) Fatal error: Unable to find local grunt. If you’re seeing this message, either a Gruntfile wasn’t found or grunt hasn’t been installed locally to your project. For more information about…
rajeshkumar created the topic: Error: Cannot find module ‘graceful-fs’ Error – Error: Cannot find module ‘graceful-fs’ at Function.Module._resolveFilename (module.js:331:15) at Function.Module._load (module.js:273:25) at Module.require (module.js:357:17) at require (module.js:373:17) at Object. (/usr/share/npm/lib/utils/ini.js:32:10) at Module._compile (module.js:449:26) at Object.Module._extensions..js (module.js:467:10) at Module.load (module.js:349:32) at Function.Module._load (module.js:305:12) at Module.require (module.js:357:17) root@mtv-ubld-39:~/node/npm/scripts# export NODE_PATH=/usr/lib/nodejs/graceful-fs.js root@mtv-ubld-39:~/node/npm/scripts# echo $NODE_PATH /usr/lib/nodejs/graceful-fs.js root@mtv-ubld-39:~/node/npm/scripts# echo…
rajeshkumar created the topic: aapt.exe has encountered a problem and needs to close aapt.exe has encountered a problem and needs to close I am getting following error as below with my maven build… [ERROR] Failed to execute goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.6.0:apklib (default-apklib) on project QBConnect: MojoExecutionException: ANDROID-040-001: Could not execute: Command = cmd.exe /X /C “C:\Android\android-sdk\build-tools\android-4.4\aapt.exe package…
rajeshkumar created the topic: TeamCity EC2 Integration via ISA Server I have a TeamCity server which is actually installed on SBS 2003 Premium with ISA Server (firewall/proxy) installed. My ADSL connection has multiple IP addresses, which all resolve directly to my SBS external NIC. The NIC is therefore multi-homed and I have allocated one of…
rajeshkumar created the topic: Spring integration tests with Team city: OutOfMemo Spring integration tests with Team city: OutOfMemoryError Hello all, On our project we wanted to start having integration tests with JUnit and Spring’s helper classes for integration testing. We used the same context files that we use for the application and added some context…