my dog learned polymorphism
The moose likes Linux / UNIX and the fly likes remote commands for LINUX Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "remote commands for LINUX" Watch "remote commands for LINUX" New topic

remote commands for LINUX

Dilanka Muthukumarana

Joined: Mar 28, 2009
Posts: 11
In WINDOWS Operating system has much more remote commands like [b]psexce.exe[/b]. those all commads we can get fron pstools.
so I want commands like this for LINUX Operating system.

If you all can help me..pleaseee...

I want to send files and execute several LINUX machine simultaneously.

Joe Ess

Joined: Oct 29, 2001
Posts: 9189

PsTools is just a collection of command-line tools. It has nothing to do with "remote" other than the fact that it is easy to execute from a shell.
Unix-like operating systems are much easier to manage from the command line than Windows. The window system is optional in Unix, so it is imperative that Unix programs provide a useful command-line interface. For a list of system commands, you can start with the Linux Man (Manual) pages. The command line itself is much more flexible than the Windows cmd. You can learn more with the Advanced Scripting Guide.
As for sending files, how do you propose to do that? FTP? SFTP? HTTP upload? Network share?

[How To Ask Questions On JavaRanch]
Maurizio Nagni
Ranch Hand

Joined: May 29, 2004
Posts: 75
If can add my 10 cents..... In Linux is quite straight to execute any command to a remote machine. The "secret" tool is called SSH.
As explained in the ssh man pages "ssh (SSH client) is a program for logging into a remote machine and for executing commands on a remote machine."

For example

Obviously the problem is if you want to executes all the commands as batch file: in this case how solve the SSH login prompt? Your smart solution would be to use an automatic logging throught "key authentication". You can find info about this last point here.

At this point, if you really want to do more magic things, you can just use SCP to copy a batch file into the remote machine and call it through SSH whenever you need.

ok... that were my 10 cents
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17410

In Linux, EVERY command is a "remote command". Even the GUI apps. It's why you don't need Citrix for Linux.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: remote commands for LINUX
jQuery in Action, 3rd edition