0
I need to run some ssh commands on my linux server, from a windows machine via cmd.
For this I am using Plink.exe
Commando:
plink -ssh [email protected] -pw 12345 -m script
Script:
pg_dump -U master dados -v -Fc -f /sistema/dados/dados.bak
This command works normally when using native commands in the script, such as cp
, mv
, etc..
For commands like pg_dump
, pg_restore
, createdb
, he says the command was not found.
PS.: The same happens using Putty.exe by windows cmd.