Re: [opensuse] Re: Howto call and execute a remote script in bash? Is it rsh or nothing?



Linda Walsh wrote:
David C. Rankin wrote:
Can I modify the remote .bashrc and pass some ssh parameter to cause .bashrc to run the script? Am I stuck with rsh? As always any help or point to the right man page will be greatly appreciated.
---
Is there a reason why your local script can't use ssh to
run the remote command:

#!/bin/bash
# (local script....)
ssh [-n] Remotesys ['nohup' cmd] /path/remotescript [redirection]



Only one I could think of before your post was "lack of knowledge" ;-)

(Notes [command] at the end of man ssh "synopsis" -- kicks self for another forest-for-the-trees issue)

Thanks Linda


--
David C. Rankin, J.D., P.E.
Rankin Law Firm, PLLC
510 Ochiltree Street
Nacogdoches, Texas 75961
Telephone: (936) 715-9333
Facsimile: (936) 715-9339
www.rankinlawfirm.com
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx



Relevant Pages

  • [opensuse] Re: Howto call and execute a remote script in bash? Is it rsh or nothing?
    ... Am I stuck with rsh? ... Is there a reason why your local script can't use ssh to ... run the remote command: ...
    (SuSE)
  • SSH and remote commands
    ... I have a script to run tripwire remotely an several hosts. ... I need the tripwire remote command to finish before going on to the ... Client:OpenSSH_2.9p2, SSH protocols 1.5/2.0, OpenSSL 0x0090602f ...
    (comp.security.ssh)
  • Re: SSH and remote commands
    ... > out how to get the script to work correctly so here it goes anyway. ... > Once the ssh line is ran, the ssh session never closes completely so ... > I need the tripwire remote command to finish before going on to the ...
    (comp.security.ssh)
  • Re: Using Putty Command Line, -m option, problems...
    ... Heh - thanks. ... You'd never know that from the documentation: ... The -m option performs a similar function to the "Remote command" box ... or a whole shell script. ...
    (comp.security.ssh)
  • cluster monitorng
    ... Is there any tool that helps monitor cluster status ... with mail alerts? ... Or a remote command line to check status using a script? ...
    (microsoft.public.windows.server.clustering)