• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Issue SSH from Linux server to UNIX DB server

 
Ragupathirajan Venkatesan
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,

I need to write shell script in linux server under any folder, that should issue SSH to another unix based DB server to execute some DB script. After all I need to cpoy those log trace(db execution) to my linux server under some folder. Could some one can help me on this.

Thanks in advance
Ragu
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18212
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


This works best if you setup an SSH cert so that the command won't prompt for a password.

Note that I made the ssh invoke a server-side script. That's because you may have to issue multiple commands to get the job done. Also because it's easier to test if you can log in and run the script as a remote user instead of having to debug both the ssh connection and the commands at the same time.
 
Ragupathirajan Venkatesan
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Tim,

Thanks a lot your for kind reply.

Regards,
Ragupathirajan V
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic