ssh/execute command

Post Reply
Joerg Schober
Member
Posts: 30
Joined: Mon Mar 21, 2011 2:30 pm

ssh/execute command

Post by Joerg Schober »

Hi,

if i execute the following (simplified for testing) in the terminal (bash) (OS 10.7), it works:



ssh user@host "cp /path/to/inputfile /path/to/outputfile"



If i do the same with Switch, nothing happens:

Command or path: ssh

Arguments: user@host "cp /path/to/inputfile /path/to/outputfile"



Why?



Kind regards,

Jörg
jonasy
Member
Posts: 30
Joined: Tue Feb 01, 2011 11:50 am

ssh/execute command

Post by jonasy »

I don't have a mac with a passwordless account, so I can't try myself. However, I think the solution from the following thread might help:



http://www.crossroads-world.com/en/Home ... osts&t=509
Joerg Schober
Member
Posts: 30
Joined: Mon Mar 21, 2011 2:30 pm

ssh/execute command

Post by Joerg Schober »

Hi jonasy,

thanks for your reply an the link. I also tried these ways - without success.

If you want to make further tests i suggest you setup the "passwordless account" first:

http://www.laubenheimer.net/ssh-keys.shtml



br,

Jörg
User avatar
gabrielp
Advanced member
Posts: 645
Joined: Fri Aug 08, 2014 4:31 pm
Location: Boston
Contact:

ssh/execute command

Post by gabrielp »

Joerg Schober wrote: Hi jonasy,

thanks for your reply an the link. I also tried these ways - without success.

If you want to make further tests i suggest you setup the "passwordless account" first:

http://www.laubenheimer.net/ssh-keys.shtml



br,

Jörg
Hey Jörg,

I've never had much luck with the execute command configurator so I'm sure there is a way to get that working, just not sure what that is. What I've been doing with some success is, in a script, writing a temp .sh file and then using Process.execute() to execute the script within the script.
Free Switch scripts: open-automation @ GitHub
Free Switch apps: open-automation @ Enfocus appstore

Want to hire me? I'm looking for my next gig. Contact me on LinkedIn or via email.
Post Reply