The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
To run scripts rollthecoin AIX 1 04-04-2008 11:16 AM
Calling expect scripts from other expect scripts seva Shell Programming and Scripting 0 04-03-2008 02:45 PM
FTP Scripts raghav1982 Shell Programming and Scripting 27 12-07-2007 06:38 AM
private network to private network gateway norsk hedensk IP Networking 2 12-05-2002 01:25 PM
using su in scripts uchachra UNIX for Dummies Questions & Answers 3 03-11-2002 01:24 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 02-15-2005
andyfaeglasgow andyfaeglasgow is offline
Registered User
  
 

Join Date: Feb 2005
Posts: 2
scripts across a network

Hi,

I'm trying to create a script that runs a series of commands on a number of machines accross a network and sends the output back to the machine from which the script is run.

I looked into using remsh to do something like this...


Code:
for machine in $network
do
  remsh $machine func_1 > func_1.out
  remsh $machine func_2 > func_2.out
done

Unfortunately, I don't think this will work because remsh requires that the functions be defined in the environment on the remote machine.

I'm sure network admins must come accross this type of problem all the time. Anyone know a good solution?

[EDIT] Sorry, I forgot to mention, I'm on an HP-UX [/EDIT]
  #2 (permalink)  
Old 02-15-2005
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,127
Use rcp to copy func_1 to the remote system in, say, /tmp. Use remsh to chmod it to 700. Now run it.
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 05:01 AM.


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