The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Setting environment variable on a remote solaris machine using shell script eamani_sun Shell Programming and Scripting 1 05-30-2008 10:05 PM
Execute command from terminal on remote machine Ranu Shell Programming and Scripting 0 10-09-2007 04:13 AM
execute remote script asynchronous leemjesse Shell Programming and Scripting 1 11-17-2006 04:12 PM
how to execute C code in linux machine rajan_ka1 Shell Programming and Scripting 3 06-29-2006 05:26 AM
Need Script to check whether user exists in the remote machine Srini75 SCO 1 09-07-2005 11:23 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-26-2006
balireddy_77 balireddy_77 is offline
Registered User
  
 

Join Date: Sep 2006
Posts: 31
how to execute a script on remote machine

hi unix guru's
i am new to unix shell programming.

i found a trouble in executing a script(bali.ksh) which is available on serverA with username xyza, this script contains sqlplus command to retrive the data from the database available on other serverC.

Now i need to run the above script from other unix serverB with other username xyzb.

plz let me know the method to solve above problem

thanks and regards
-Bali Reddy
  #2 (permalink)  
Old 09-27-2006
Andrek Andrek is offline
Registered User
  
 

Join Date: Aug 2006
Posts: 122
use "remseh", look at the man pages for full syntax.
if you have a security issues you may need to consider "ssh" Secure SHell
  #3 (permalink)  
Old 09-27-2006
balireddy_77 balireddy_77 is offline
Registered User
  
 

Join Date: Sep 2006
Posts: 31
Question may i know prerequisite to use ssh

Quote:
Originally Posted by Andrek
use "remseh", look at the man pages for full syntax.
if you have a security issues you may need to consider "ssh" Secure SHell


may i know prerequisite to use ssh
  #4 (permalink)  
Old 09-27-2006
srikanthus2002's Avatar
srikanthus2002 srikanthus2002 is offline
Registered User
  
 

Join Date: Sep 2006
Location: Can u guess...!
Posts: 160
to use rsh ,first you have to configure rsh on both the server

rsh hostname "/path/command_or_script"

but script has to be available on remote system.
  #5 (permalink)  
Old 09-27-2006
Andrek Andrek is offline
Registered User
  
 

Join Date: Aug 2006
Posts: 122
theres a web site www.openssh.com but I would start by looking at your vendors support web site to see what they offer as free down loads. At least you know the version of openssh you are about to use has come from a reliable source and you may get help with it directly from them.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:09 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0