Re: [Pharo-users] command line command from pharo image
2013/12/6 Sabine Knöfel sabine.knoe...@gmail.com Hi Torsten, Sean, http://smalltalkhub.com/#!/~OS/OS-Windows looks great. I have not found a solution yet to send a call to OS from pharo (I develop with mac since a few weeks now and deployment is currently windows) and I am thinking about moving to Pharo 3.0 for further development due to the OS call problem. Do you think, Pharo 3.0 is ready to use it for development or should I wait and look for another solution? Regards Sabine -- View this message in context: http://forum.world.st/command-line-command-from-pharo-image-tp4727751p4727902.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com. Hi, Pharo2 doesn't work for you? I tried both Pharo2 and 3. In Pharo2.0 Latest update: #20593 with latest stable OSProcess loaded form ConfigurationManager I can execute OSProcess command:'notepad.exe' without problems. But only as long as the command can be found otherwise ExternalWindowsOSProcess tries to write that error message to ExternalWindowsOSProcessinitialStdErr. And this does not work. (And it doesn't work in Pharo3) (bug StdErr not working on Windows https://pharo.fogbugz.com/default.asp?11615)
Re: [Pharo-users] command line command from pharo image
Nicolai, thank you very much for clarification. Indeed: there was a silly error in my command when copying it from Mac to windows (path) and the notepad test worked. So the problem is solved for me. I can call from Mac OS and from Windows and I am happy:-) Regards Sabine On Fri, Dec 6, 2013 at 1:43 PM, Nicolai Hess [via Smalltalk] ml-node+s1294792n4727984...@n4.nabble.com wrote: 2013/12/6 Sabine Knöfel [hidden email]http://user/SendEmail.jtp?type=nodenode=4727984i=0 Hi Torsten, Sean, http://smalltalkhub.com/#!/~OS/OS-Windows looks great. I have not found a solution yet to send a call to OS from pharo (I develop with mac since a few weeks now and deployment is currently windows) and I am thinking about moving to Pharo 3.0 for further development due to the OS call problem. Do you think, Pharo 3.0 is ready to use it for development or should I wait and look for another solution? Regards Sabine -- View this message in context: http://forum.world.st/command-line-command-from-pharo-image-tp4727751p4727902.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com. Hi, Pharo2 doesn't work for you? I tried both Pharo2 and 3. In Pharo2.0 Latest update: #20593 with latest stable OSProcess loaded form ConfigurationManager I can execute OSProcess command:'notepad.exe' without problems. But only as long as the command can be found otherwise ExternalWindowsOSProcess tries to write that error message to ExternalWindowsOSProcessinitialStdErr. And this does not work. (And it doesn't work in Pharo3) (bug StdErr not working on Windows https://pharo.fogbugz.com/default.asp?11615) -- If you reply to this email, your message will be added to the discussion below: http://forum.world.st/command-line-command-from-pharo-image-tp4727751p4727984.html To start a new topic under Pharo Smalltalk Users, email ml-node+s1294792n1310670...@n4.nabble.com To unsubscribe from command line command from pharo image, click herehttp://forum.world.st/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4727751code=c2FiaW5lLmtub2VmZWxAZ21haWwuY29tfDQ3Mjc3NTF8MTA0OTM5MTYx . NAMLhttp://forum.world.st/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml -- View this message in context: http://forum.world.st/command-line-command-from-pharo-image-tp4727751p4728032.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
Re: [Pharo-users] command line command from pharo image
Sabine Knöfel wrote Which is the Class and the message in NB then? not sure which class and on holidays with no computer :) the Mac message is #run: which wraps system in libc, and the Windows version, which I haven't committed yet is #winExec:show which wraps WinExec. HTH - Cheers, Sean -- View this message in context: http://forum.world.st/command-line-command-from-pharo-image-tp4727022p4727703.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
Re: [Pharo-users] command line command from pharo image
Torsten Bergmann wrote PLEASE NO WinExec, this is long deprecated Ha ha, yes Torsten. I couldn't get create process to work so I cheated ;) it works and takes only two parameters. This is exciting that you've already wrapped that stuff! I had no idea, there's probably so many great things out there. We could really use a PharoMap... I will take a look at your project. Maybe something could be integrated with NB core. Executing an external command on all the common platforms is a good demonstration of NB - Cheers, Sean -- View this message in context: http://forum.world.st/command-line-command-from-pharo-image-tp4727751p4727857.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
Re: [Pharo-users] command line command from pharo image
Hi Sean, thanks. I need it now, on Pharo 2.0 but I will change it when I move to 3.0. Which is the Class and the message in NB then? Sabine On Tue, Dec 3, 2013 at 5:40 PM, Sean P. DeNigris [via Smalltalk] ml-node+s1294792n4727098...@n4.nabble.com wrote: Sabine Knöfel wrote OSProcess thisOSProcess You can remove the send of #thisOSProcess and it will still work. Also, if you don't care about output, you can use NB without installing anything. In Pharo 3.0, it works on Windows, will work on Mac with Igor's latest changes... not sure about Linux... HTH Cheers, Sean -- If you reply to this email, your message will be added to the discussion below: http://forum.world.st/command-line-command-from-pharo-image-tp4727022p4727098.html To start a new topic under Pharo Smalltalk Users, email ml-node+s1294792n1310670...@n4.nabble.com To unsubscribe from command line command from pharo image, click herehttp://forum.world.st/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4727022code=c2FiaW5lLmtub2VmZWxAZ21haWwuY29tfDQ3MjcwMjJ8MTA0OTM5MTYx . NAMLhttp://forum.world.st/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml -- View this message in context: http://forum.world.st/command-line-command-from-pharo-image-tp4727022p4727311.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
[Pharo-users] command line command from pharo image
Hi, how can I perform a commandline command from within Pharo? Sabine -- View this message in context: http://forum.world.st/command-line-command-from-pharo-image-tp4727022.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
Re: [Pharo-users] command line command from pharo image
depends on the kind of command line :) the most easy way is to do something like: ./pharo Pharo.image eval 42 factorial Esteban On Tue, Dec 3, 2013 at 2:45 PM, Sabine Knöfel sabine.knoe...@gmail.comwrote: Hi, how can I perform a commandline command from within Pharo? Sabine -- View this message in context: http://forum.world.st/command-line-command-from-pharo-image-tp4727022.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
Re: [Pharo-users] command line command from pharo image
I think the question was how do you do that worm within Pharo. Not Pharo from command line Uko On 03 Dec 2013, at 14:48, Esteban Lorenzano esteba...@gmail.com wrote: depends on the kind of command line :) the most easy way is to do something like: ./pharo Pharo.image eval 42 factorial Esteban On Tue, Dec 3, 2013 at 2:45 PM, Sabine Knöfel sabine.knoe...@gmail.com wrote: Hi, how can I perform a commandline command from within Pharo? Sabine -- View this message in context: http://forum.world.st/command-line-command-from-pharo-image-tp4727022.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
Re: [Pharo-users] command line command from pharo image
Hi, Uko2 is right, I want to call an os command (esteban: mongodump) from within Pharo. Sabine On Tue, Dec 3, 2013 at 2:52 PM, Uko2 [via Smalltalk] ml-node+s1294792n4727029...@n4.nabble.com wrote: I think the question was how do you do that worm *within* Pharo. Not Pharo from command line Uko On 03 Dec 2013, at 14:48, Esteban Lorenzano [hidden email]http://user/SendEmail.jtp?type=nodenode=4727029i=0 wrote: depends on the kind of command line :) the most easy way is to do something like: ./pharo Pharo.image eval 42 factorial Esteban On Tue, Dec 3, 2013 at 2:45 PM, Sabine Knöfel [hidden email]http://user/SendEmail.jtp?type=nodenode=4727029i=1 wrote: Hi, how can I perform a commandline command from within Pharo? Sabine -- View this message in context: http://forum.world.st/command-line-command-from-pharo-image-tp4727022.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com. -- If you reply to this email, your message will be added to the discussion below: http://forum.world.st/command-line-command-from-pharo-image-tp4727022p4727029.html To start a new topic under Pharo Smalltalk Users, email ml-node+s1294792n1310670...@n4.nabble.com To unsubscribe from command line command from pharo image, click herehttp://forum.world.st/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4727022code=c2FiaW5lLmtub2VmZWxAZ21haWwuY29tfDQ3MjcwMjJ8MTA0OTM5MTYx . NAMLhttp://forum.world.st/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml -- View this message in context: http://forum.world.st/command-line-command-from-pharo-image-tp4727022p4727030.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
Re: [Pharo-users] command line command from pharo image
2013/12/3 Sabine Knöfel sabine.knoe...@gmail.com Hi, how can I perform a commandline command from within Pharo? Check OSProcess and CommandShell. Cheers, Sergi
Re: [Pharo-users] command line command from pharo image
Hi, the mailinglist is so helpful! Its really great! CommandShell is my solution. Thanks! Sabine On Tue, Dec 3, 2013 at 3:00 PM, Sergi Reyner [via Smalltalk] ml-node+s1294792n4727033...@n4.nabble.com wrote: 2013/12/3 Sabine Knöfel [hidden email]http://user/SendEmail.jtp?type=nodenode=4727033i=0 Hi, how can I perform a commandline command from within Pharo? Check OSProcess and CommandShell. Cheers, Sergi -- If you reply to this email, your message will be added to the discussion below: http://forum.world.st/command-line-command-from-pharo-image-tp4727022p4727033.html To start a new topic under Pharo Smalltalk Users, email ml-node+s1294792n1310670...@n4.nabble.com To unsubscribe from command line command from pharo image, click herehttp://forum.world.st/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4727022code=c2FiaW5lLmtub2VmZWxAZ21haWwuY29tfDQ3MjcwMjJ8MTA0OTM5MTYx . NAMLhttp://forum.world.st/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml -- View this message in context: http://forum.world.st/command-line-command-from-pharo-image-tp4727022p4727049.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
Re: [Pharo-users] command line command from pharo image
On 03 Dec 2013, at 15:26, Sabine Knöfel sabine.knoe...@gmail.com wrote: Hi, the mailinglist is so helpful! Its really great! But it’s not well indexable and does not provide quality information about data. That’s why I encourage people to use Stack Overflow CommandShell is my solution. Thanks! Sabine On Tue, Dec 3, 2013 at 3:00 PM, Sergi Reyner [via Smalltalk] [hidden email] wrote: 2013/12/3 Sabine Knöfel [hidden email] Hi, how can I perform a commandline command from within Pharo? Check OSProcess and CommandShell. Cheers, Sergi If you reply to this email, your message will be added to the discussion below: http://forum.world.st/command-line-command-from-pharo-image-tp4727022p4727033.html To start a new topic under Pharo Smalltalk Users, email [hidden email] To unsubscribe from command line command from pharo image, click here. NAML View this message in context: Re: command line command from pharo image Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
Re: [Pharo-users] command line command from pharo image
ah :) then you need OSProcess. and I do not remember exactly how it was, but something like this: OSProcess command: 'mycommand with parameters'. cheers, Esteban On Tue, Dec 3, 2013 at 3:29 PM, Yuriy Tymchuk yuriy.tymc...@me.com wrote: On 03 Dec 2013, at 15:26, Sabine Knöfel sabine.knoe...@gmail.com wrote: Hi, the mailinglist is so helpful! Its really great! But it’s not well indexable and does not provide quality information about data. That’s why I encourage people to use Stack Overflow CommandShell is my solution. Thanks! Sabine On Tue, Dec 3, 2013 at 3:00 PM, Sergi Reyner [via Smalltalk] [hidden email] wrote: 2013/12/3 Sabine Knöfel [hidden email]http://user/SendEmail.jtp?type=nodenode=4727033i=0 Hi, how can I perform a commandline command from within Pharo? Check OSProcess and CommandShell. Cheers, Sergi -- If you reply to this email, your message will be added to the discussion below: http://forum.world.st/command-line-command-from-pharo-image-tp4727022p4727033.html To start a new topic under Pharo Smalltalk Users, email [hidden email] To unsubscribe from command line command from pharo image, click here. NAMLhttp://forum.world.st/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml -- View this message in context: Re: command line command from pharo imagehttp://forum.world.st/command-line-command-from-pharo-image-tp4727022p4727049.html Sent from the Pharo Smalltalk Users mailing list archivehttp://forum.world.st/Pharo-Smalltalk-Users-f1310670.htmlat Nabble.com.
Re: [Pharo-users] command line command from pharo image
Hi Esteban, yes, like this: OSProcess thisOSProcess command: ('{1}mongodump --out {2}' format: { RKAConfiguration databaseUtilsPath. (RKAConfiguration databaseBackupPath )}). Cheers Sabine On Tue, Dec 3, 2013 at 4:28 PM, EstebanLM [via Smalltalk] ml-node+s1294792n4727066...@n4.nabble.com wrote: ah :) then you need OSProcess. and I do not remember exactly how it was, but something like this: OSProcess command: 'mycommand with parameters'. cheers, Esteban On Tue, Dec 3, 2013 at 3:29 PM, Yuriy Tymchuk [hidden email]http://user/SendEmail.jtp?type=nodenode=4727066i=0 wrote: On 03 Dec 2013, at 15:26, Sabine Knöfel [hidden email]http://user/SendEmail.jtp?type=nodenode=4727066i=1 wrote: Hi, the mailinglist is so helpful! Its really great! But it’s not well indexable and does not provide quality information about data. That’s why I encourage people to use Stack Overflow CommandShell is my solution. Thanks! Sabine On Tue, Dec 3, 2013 at 3:00 PM, Sergi Reyner [via Smalltalk] [hidden email] wrote: 2013/12/3 Sabine Knöfel [hidden email]http://user/SendEmail.jtp?type=nodenode=4727033i=0 Hi, how can I perform a commandline command from within Pharo? Check OSProcess and CommandShell. Cheers, Sergi -- If you reply to this email, your message will be added to the discussion below: http://forum.world.st/command-line-command-from-pharo-image-tp4727022p4727033.html To start a new topic under Pharo Smalltalk Users, email [hidden email] To unsubscribe from command line command from pharo image, click here. NAMLhttp://forum.world.st/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml -- View this message in context: Re: command line command from pharo imagehttp://forum.world.st/command-line-command-from-pharo-image-tp4727022p4727049.html Sent from the Pharo Smalltalk Users mailing list archivehttp://forum.world.st/Pharo-Smalltalk-Users-f1310670.htmlat Nabble.com. -- If you reply to this email, your message will be added to the discussion below: http://forum.world.st/command-line-command-from-pharo-image-tp4727022p4727066.html To start a new topic under Pharo Smalltalk Users, email ml-node+s1294792n1310670...@n4.nabble.com To unsubscribe from command line command from pharo image, click herehttp://forum.world.st/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4727022code=c2FiaW5lLmtub2VmZWxAZ21haWwuY29tfDQ3MjcwMjJ8MTA0OTM5MTYx . NAMLhttp://forum.world.st/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml -- View this message in context: http://forum.world.st/command-line-command-from-pharo-image-tp4727022p4727068.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
Re: [Pharo-users] command line command from pharo image
Sabine Knöfel wrote OSProcess thisOSProcess You can remove the send of #thisOSProcess and it will still work. Also, if you don't care about output, you can use NB without installing anything. In Pharo 3.0, it works on Windows, will work on Mac with Igor's latest changes... not sure about Linux... HTH - Cheers, Sean -- View this message in context: http://forum.world.st/command-line-command-from-pharo-image-tp4727022p4727098.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.