Ok, If I would have the program on the local machine I could call this from the command line
by a statment like

myprog myfile.dat

Unfortunately the program is on another machine installed. Between the two
machines there is an already successfully running SSH connection.

How do I call in this scenario the remote progr myprog and pass
the local file myfile.dat?

cu
Peter

Re: How to call a remote program through SSH tunnel and pass a local file as parameter? by S

S
Fri Feb 04 19:08:52 CST 2005

Run the command on the remote machine, then pull the output file; or send
the output to stdout, which you can redirect locally to a file.

--
Svyatoslav Pidgorny, MVP, MCSE
-= F1 is the key =-

"Peter Meister" <pmeister2@lycos.com> wrote in message
news:cu0qtu$eko$02$1@news.t-online.com...
> Ok, If I would have the program on the local machine I could call this
from the command line
> by a statment like
>
> myprog myfile.dat
>
> Unfortunately the program is on another machine installed. Between the two
> machines there is an already successfully running SSH connection.
>
> How do I call in this scenario the remote progr myprog and pass
> the local file myfile.dat?
>
> cu
> Peter
>