Message Boards Message Boards

ExternalEvaluate Shell: usage examples

Posted 2 years ago
2 Replies
Posted 5 hours ago

Nice! thanks for the examples. Great help

I still have one problem: i have an ExternalEvaluate that does not return/keeps running. i want to ssh into a server, parse a logfile there and get de resulting values into mma:

data = Flatten@    ImportString@
     Block[{Print}, 
      ExternalEvaluate["Shell" -> "StandardOutput", 
       "ssh user@someserver some-commands-that-outputs-a-long-list-of-numbers"]];

this keep "running" forever. (running the same ssh outside mma does complete nicely)

even this does keep running forever:

ExternalEvaluate["Shell", "ssh user@someserver some-commands-that-outputs-a-list-of-numbers tmpfile"];

the tmpfile is created (with the data)

anyone any idea?

thanks
Frank

POSTED BY: Frank Boddeke

enter image description here -- you have earned Featured Contributor Badge enter image description here Your exceptional post has been selected for our editorial column Staff Picks http://wolfr.am/StaffPicks and Your Profile is now distinguished by a Featured Contributor Badge and is displayed on the Featured Contributor Board. Thank you!

POSTED BY: EDITORIAL BOARD
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract