Page 1 of 1
Executing my.exe with command line arguments
Posted: Wed Mar 13, 2013 8:30 pm
by Lauma
Hi all !!!
Can somebody tell me if it is possible to pass parameters from the command line in the program (EXE) created in FlowStone-3 ?
And if so, how it can be implemented?
Re: Executing my.exe with command line arguments
Posted: Wed Mar 13, 2013 11:30 pm
by trogluddite
Hi there, Lauma, welcome to the forum.
No, I don't think that is possible at the moment. Ruby has an 'ARGV' constant for getting at command line arguments, but when I tested, it seems that the FlowStone engine just swallows them without passing them in to the Ruby interpreter.
That would be a nice feature to have though - I could see FS being pretty handy for knocking together complex batch scripts etc., and it could be used to enable debugging modes etc.
Re: Executing my.exe with command line arguments
Posted: Thu Mar 14, 2013 9:39 pm
by Lauma
Thanks Trogluddite
It would be cool (with parameters from command-line) , because that I can use my EXE on the server side via CRON or other task scheduler, or even via PHP (shell_exec).
Re: Executing my.exe with command line arguments
Posted: Fri Mar 15, 2013 12:48 am
by sal
your flowstone app can read commands from plain text files, so if from command line you write something as "mycommand > commands.txt" then your app triggers that file and does something.
This is independent from your exe, but is a workaround.
Re: Executing my.exe with command line arguments
Posted: Mon Mar 18, 2013 11:33 pm
by Lauma
Thanks "Contributer", good idea, I'll try it !
