Group Abstract Group Abstract

Message Boards Message Boards

2
|
19.4K Views
|
16 Replies
|
7 Total Likes
View groups...
Share
Share this post:

RunProcess issues

Posted 11 years ago

Hi all, I don't know if anyone has experienced that, but when I use RunProcess many times it suddenly stops to work, any process that I ask to run it delivers something like "command not find" error. It just starts to work again if I close Mathematica and launch it again. Do you guys have any idea what's going on? I'm using Mathematica 10.1 and my SO is Ubuntu 14.04.

Cheers, -T.C.

POSTED BY: Tiago Castro
16 Replies
Posted 10 years ago

What is the output of FileExistsQ["C:\Windows\system32\netstat.exe"] for your system? I expect it to return true if the file exists.

POSTED BY: Updating Name
In[2]:= FileExistsQ["C:\\windows\\system32\\netstat.exe"]
Out[2]= True

In[3]:= FileExistsQ[FileNameJoin[{"C:", "windows", "system32", "netstat.exe"}]]
Out[3]= True
POSTED BY: Udo Krause
POSTED BY: Udo Krause

Works, kind of, for me:

StringReplace[#, "\r\n" -> "\n"] &@
 ("StandardError" /. RunProcess[{"netstat", "-h"}])
POSTED BY: Rolf Mertig
POSTED BY: Udo Krause
Posted 11 years ago

Hi all, Can you help me? I need to call a FORTRAN program recursively to my notebook. Do you have any suggestions on how to do that aside RunProcess?

Cheers, -T.C.

POSTED BY: Tiago Castro
 RunProcess[{"ping","-c2","duckduckgo.com"}]

works fine on Linux.

RunProcess is a fun function!

POSTED BY: Rolf Mertig
Posted 11 years ago
POSTED BY: Jim Baldwin
Posted 11 years ago

www.google.com is an argument to ping so according to the online documentation you'd need the following:

RunProcess[{"ping", "www.google.com"}]
POSTED BY: Jim Baldwin

Thanks, Jim, this seems to be correct but runs forever with no stop. This is probably because pinging is a continues operation till stopped? Daniel any insights?

POSTED BY: Marina Shchitova
POSTED BY: Marina Shchitova
Posted 11 years ago

Thank you, let's see what they get. If working properly RunProcess is awesome.

POSTED BY: Tiago Castro
Posted 11 years ago
Attachments:
POSTED BY: Tiago Castro

Thank you. I have learned that the issue is under active investigation. I added a note to the bug report about testing with the notebook you sent.

POSTED BY: Daniel Lichtblau

Do you have a specific set of examples that will replicate the problem?

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