Kamran Agayev's Oracle Blog

Oracle Certified Master

Archive for December, 2012

Oracle Enterprise Manager 12c Cloud Control – new book

Posted by Kamran Agayev A. on 24th December 2012

My friend and former ACE Director Porus Homi Havewala’s new book on Oracle Enterprise Manager 12c Cloud Control, is now available, this is the First published EM 12c Cloud Control book in the world.

If you are interested in learning about the capabilities of Enterprise Manager 12c, please have a look. Electronic copies are available too.

http://www.packtpub.com/oracle-enterprise-manager-12c-cloud-control/book

Oracle Enterprise Manager 12c Cloud Control: Managing Data Center Chaos

Posted in Administration | No Comments »

Using scp with nohup command without providing password

Posted by Kamran Agayev A. on 1st December 2012

It seems almost impossible for me to use scp from command line with nohup and without providing password. I didn’t want to share authentication keys between servers using ssh-keygen, which seemed to be the only solution to run scp command in the background

I tried:

nohup scp -P 223 /tmp/myfile.dat user:pass@server:/tmp & 

and failed. Using password in such way was incorrect syntax. Then I tried:

nohup scp -P 223 /tmp/myfile.dat user@server:/tmp & 

it asked me for the password:

oracle@server’s password:
oracle

[1]+  Stopped   nohup scp -P 223 /tmp/myfile.dat user@server:/tmp & 

and failed again…

 

After making a little research, I found the following blog post, where the author shows how scp can be used in the command line by providing  password and running the command in the background

http://bharatikunal.wordpress.com/2010/10/20/scp-as-a-background-process/

Posted in Oracle on Linux | 3 Comments »