2

Mathematica newbie here. I'm looking to execute a remote python script from Mathematica. Is this possible? I've tried using "Run" but I get numerical outputs that don't make sense (like 65280 for the input Run[ssh IP "local path"]. Is this syntax right or is that my issue?

2
  • Run returns the exit code, with non zero indicating some error. Try RunProcess, and note you reall do need to provide the arguments as a list as should be pretty clear in the docs. Commented Jul 15, 2016 at 10:42
  • See the answers here, noting especially the dates because the best option has changed as new features have been added to Mathematica. Relevant documentation is here, here, and here. Also be on the look out for this issue. Commented Jun 30, 2018 at 14:02

1 Answer 1

1
Run["ssh IP \"local path\""]

or, for example

Run["ssh IP \"C:\\temp directory\\local\""]
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.