kunal@localhost$
Home
About me
scp as a background process
October 20, 2010
tags: Linux, tips n tricks
by kunalbharati
To execute any linux command in background we use nohup as follows:
1 $ nohup SOME_COMMAND &
But the problem with scp command is that it prompts for the password (if password authentication is used). So to make scp execute as a background process do this:
1 $ nohup scp file_to_copy user@server:/path/to/copy/the/file > nohup.out 2>&1
Then press ctrl + z which will temporarily suspend the command, then enter the command:
1 $ bg
This will start executing the command in backgroud
Saturday, July 16, 2011
scp as a background process « Kunal Bharati
Monday, April 18, 2011
How to install Apache, PHP and MySQL on Linux: Part 2
How to install Apache, PHP and MySQL on Linux: Part 2 | laffers.net
Setup access privileges
Don’t forget to setup Apache access privileges to your www directories:
1 | chown -R apache2:www <em>/foo/path_to_your_www_documents_root</em> |
2 | chmod -R 750 <em>/foo/path_to_your_www_documents_root</em> |
“apache2″ and “www” are the user and user group I have previously created (see Prerequisites)
Start and stop apache server
After everything is set up, start Apache:
1 | /usr/local/apache2/bin/apachectl start |
Similarly, if you wish to stop Apache, type:
1 | /usr/local/apache2/bin/apachectl stop |
Automatic startup
It’s a good idea to let your Apache server start automatically after each system reboot. To setup Apache automatic startup, do:
1 | cp /usr/local/apache2/bin/apachectl /etc/init.d |
2 | chmod 755 /etc/init.d/apachectl |
3 | chkconfig --add apachectl |
4 | chkconfig --level 35 apachectl on |
Sunday, April 17, 2011
Subversion + Apache Installation and Repository Migration HOWTO - Matt Woodward's posterous
Subversion + Apache Installation and Repository Migration HOWTO - Matt Woodward's posterous
Create Basic HTTP Passwords
Next we'll create the SVN password file referenced in the dav_svn.conf file above.
Type the following to navigate to the /etc/apache2 directory and create the .passwd file and add the first user to it.
- cd /etc/apache2
- sudo htpasswd -cm dav_svn.passwd YOUR_USER_NAME
Installing a Subversion server on Leopard
LoadModule dav_svn_module libexec/apache2/mod_dav_svn.so LoadModule authz_svn_module libexec/apache2/mod_authz_svn.so <Location /repo> DAV svn SVNPath /usr/local/repo </Location>
Move a Subversion Repository from One Remote Server to Another
Using Subversion on Mac OS X for version control
Move a Subversion Repository from One Remote Server to Another | Minor Addition
Move a Subversion Repository from One Remote Server to Another | Minor Addition
Move a Subversion Repository from One Remote Server to Another
Saturday, April 16, 2011
Wednesday, April 6, 2011
Tophat, Cufflinks and SamTools - Bioinformatics in BioMed
Converter for vcf to bed format - SEQanswers
sed -e 's/chr//' file.vcf | awk '{OFS="\t"; if (!/^#/){print $1,$2-1,$2,$4"/"$5,"+"}}'