sshing and automatically calling command problem

From: hilbert (coridan.1_at_osu.edu)
Date: 09/25/03


Date: 25 Sep 2003 12:12:50 -0700

Hi--

I'm trying to ssh from a windows computer to a linux computer with a
command-line command like this:

ssh -l "user-name" "linux-machine-ip" "command"

where "command" = a single command that I would like to run on the
linux machine and then ssh is to exit. However, the command I would
like to run requires itself to run in a terminal (I have set this
command up so that it does what I want it to and exits w/o prompt or
user intervention). The form of the ssh call above works for simple
things like "cp", "mv", etc., but is there any way to trick these
commands into believing that they are being called from a terminal? I
don't really know how ssh does this, but if anyone can help me, that
would be great.

Thanks,

R



Relevant Pages

  • Re: Really need help on this one
    ... Is there a way to read the output of a particular command into ... Heres a better example using ssh. ... set timeout $timeout ... exec kill -9 $pid ...
    (comp.lang.tcl)
  • RE: midnight commander and ssh sftp
    ... midnight commander and ssh sftp ... which is displayed at the bottom of the MC panel. ... "Left file command options right" at the top of the MC ... MC SSH session with the remote host by hitting F10 key. ...
    (freebsd-questions)
  • Re: [Info-ingres] problems with ssh
    ... Check the SSHD log on the server for errors. ... ancient version of SSH, unfortunately. ... the command seems to have functioned - but just wont terminate and leaves a process hanging around. ... Duckman: You got anymore of those glues? ...
    (comp.databases.ingres)
  • Scripts using SSH and SSH_ASKPASS
    ... To test SSH scripts you better destroy the control TTY. ... The trick is to run YOUR script on YOUR local ... As for the password relaying command: this needs not be an X command. ... # we read one line from a temporary pipe. ...
    (comp.security.ssh)
  • Re: embedding sshd into a server
    ... Right now it listens on a ... Copy the normal ssh config files to a new "privatessh" config: ... A simple way to force a certain command is to change ...
    (comp.security.ssh)