Use pscp to push chosen file to a linux server
Posted: 31 May 2018 18:15
Something I have to do many times per day is move python files to a linux machine to run.
if $FILE is the chosen file the command I use for this is
doing this does require me to enter a password at the command line
Can I set this up as a catalog item for drag and drop? Or alternately as a right-click option?
I tried this as a script for the catalog:
But it doesn't work and when I try running it as a raw script I get "Overflow 0/0"
I think there's something fundamental I am misunderstanding. Can I use the catalog items to run a command line?
if $FILE is the chosen file the command I use for this is
Code: Select all
pscp $FILE username@192.168.1.101:directoryname
Can I set this up as a catalog item for drag and drop? Or alternately as a right-click option?
I tried this as a script for the catalog:
Code: Select all
C:\Program Files\PuTTY\pscp.exe <curname> username@192.168.1.101:directoryname
I think there's something fundamental I am misunderstanding. Can I use the catalog items to run a command line?