Linux / UNIX Tech Support Forum
This is a discussion on Execute commands via ssh within the CentOS / RHEL / Fedora forums, part of the Linux Distribution category; Team, Could anyone tell me how to issue a command (ex: who) via ssh and put the out put back ...
|
|||||||
| CentOS / RHEL / Fedora Discussion about Redhat Enterprise Linux or CentOS or Fedora Linux related problems. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Team,
Could anyone tell me how to issue a command (ex: who) via ssh and put the out put back on the same computer where you issues the original command? Thanks bunch! |
| Sponsored Links | ||
|
|
|
||||
|
Have you tried it as follows:
Code:
ssh user@server.com who > output.txt
__________________
Vivek Gite Linux Evangelist |
|
|||
|
Hi Vivek,
Thanks for the response. Actually I already tried it and it works perfectly fine. What I am trying to achieve over here is bit complicated. The scenario would be let say you have two boxes (A and B). Box “B” has Nmap installed and you want to execute Namp command on box “B” via SSH from the box “A” and SCP the Nmap output to the box “A”. I want to achieve this with one command. Is it possible? |
|
|||
|
visite the following url. This will help you.
System Administration Toolkit: Distributed administration using SSH |
![]() |
| Tags |
| command line , files , linux , ssh |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Execute UNIX Command / Shell Script Once In The Future | permalac | Shell scripting | 2 | 27-08-2008 08:13 PM |
| How to monitor RSH commands | mformit | Solaris/OpenSolaris | 0 | 11-04-2008 09:44 PM |
| If file modified execute a script | karabaja | Shell scripting | 3 | 23-11-2006 02:39 AM |
| using shell commands in C | steve | Coding in General | 2 | 14-10-2005 09:25 AM |
| #why following cannot be execute? | ryan | Shell scripting | 7 | 16-03-2005 06:50 PM |