Executing my.exe with command line arguments

For general discussion related FlowStone
Post Reply
Lauma
Posts: 3
Joined: Wed Mar 13, 2013 8:14 pm

Executing my.exe with command line arguments

Post 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?
User avatar
trogluddite
Posts: 1730
Joined: Fri Oct 22, 2010 12:46 am
Location: Yorkshire, UK

Re: Executing my.exe with command line arguments

Post 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.
All schematics/modules I post are free for all to use - but a credit is always polite!
Don't stagnate, mutate to create!
Lauma
Posts: 3
Joined: Wed Mar 13, 2013 8:14 pm

Re: Executing my.exe with command line arguments

Post 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).
sal
Posts: 42
Joined: Thu Aug 19, 2010 4:56 pm

Re: Executing my.exe with command line arguments

Post 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.
Lauma
Posts: 3
Joined: Wed Mar 13, 2013 8:14 pm

Re: Executing my.exe with command line arguments

Post by Lauma »

Thanks "Contributer", good idea, I'll try it ! ;)
Post Reply