Find the answer to your Linux question:
Results 1 to 1 of 1
hi I am new to linux and I am using following SHELL script to execute commands on many Machines. Attached: Parameters : $1 is the Number of PCs AND $2 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2010
    Posts
    1

    Commands on many Machines


    hi

    I am new to linux and I am using following SHELL script to execute commands on many Machines.

    Attached:

    Parameters : $1 is the Number of PCs AND $2 is the command (E.g scp)

    =============

    I have a java code that need to be run on every machine however there is a parameter change based on each machine.

    e.g. I will be running 2 JVMs on one linux machine and the java command would look like this

    Code:
    java <class File1> <Para 1> <Para 2> &
    java <class File1> <Para 1+1> <Para 2+1> &
    How do I do this?

    Tks
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •