Re: [Pharo-users] command line command from pharo image

2013-12-06 Thread Sabine Knöfel
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

Re: [Pharo-users] command line command from pharo image

2013-12-06 Thread Nicolai Hess
2013/12/6 Sabine Knöfel > 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

Re: [Pharo-users] command line command from pharo image

2013-12-06 Thread Sabine Knöfel
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

Re: [Pharo-users] command line command from pharo image

2013-12-05 Thread Sean P. DeNigris
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 t

Re: [Pharo-users] command line command from pharo image

2013-12-05 Thread Sean P. DeNigris
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

Re: [Pharo-users] command line command from pharo image

2013-12-04 Thread Sabine Knöfel
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

Re: [Pharo-users] command line command from pharo image

2013-12-03 Thread Sean P. DeNigris
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.

Re: [Pharo-users] command line command from pharo image

2013-12-03 Thread Sabine Knöfel
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

Re: [Pharo-users] command line command from pharo image

2013-12-03 Thread Esteban Lorenzano
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 wrote: > > On 03 Dec 2013, at 15:26, Sabine Knöfel wrote: > > Hi, > > the mailing

Re: [Pharo-users] command line command from pharo image

2013-12-03 Thread Yuriy Tymchuk
On 03 Dec 2013, at 15:26, Sabine Knöfel 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! > Sabi

Re: [Pharo-users] command line command from pharo image

2013-12-03 Thread Sabine Knöfel
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]

Re: [Pharo-users] command line command from pharo image

2013-12-03 Thread Sergi Reyner
2013/12/3 Sabine Knöfel > 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

2013-12-03 Thread Sabine Knöfel
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 li

Re: [Pharo-users] command line command from pharo image

2013-12-03 Thread Ryan Bell
In that case, wouldn't you find the corrent CommandLineHandler class and call >>activate on it? /Ryan On Tue, Dec 3, 2013 at 8:51 AM, Yuriy Tymchuk 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, Es

Re: [Pharo-users] command line command from pharo image

2013-12-03 Thread Yuriy Tymchuk
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 wrote: > depends on the kind of command line :) > > the most easy way is to do something like: > > ./pharo Pharo.image eval "42 factorial" > > Esteban

Re: [Pharo-users] command line command from pharo image

2013-12-03 Thread Esteban Lorenzano
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 wrote: > Hi, > > how can I perform a commandline command from within Pharo? > > Sabine > > > > -- > View this message