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...
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