I cannot find a way to do this, but thought there may be someone who can
help. I need to accept input from the cli for a script. Any insights
or ideas on how to accomplish this?
--
Butch Evans
702-537-0979
Network Support and Engineering
http://store.wispgear.net/
http://www.butchevans.com/
_
You can get things from a file. Can you treat the console as a file?
In full Linux, stdin or file 0.
I haven't looked, but would think that a place to start.
On 6/3/2013 8:26 PM, Butch Evans wrote:
I cannot find a way to do this, but thought there may be someone who
can help. I need to accep
Pretty sure stdin doesn't exist on the Mikrotik...
Josh Luthman
Office: 937-552-2340
Direct: 937-552-2343
1100 Wayne St
Suite 1337
Troy, OH 45373
On Mon, Jun 3, 2013 at 9:22 PM, Scott Reed wrote:
> You can get things from a file. Can you treat the console as a file? In
> full Linux, stdin or
On 06/03/2013 08:43 PM, Josh Luthman wrote:
Pretty sure stdin doesn't exist on the Mikrotik...
I am pretty sure that is correct. I was just hoping that there was a
way in the scripting engine to accept user input. In reading the wiki,
I could find no examples of this, nor does the scripting
Depending on the complexity of the input you are expecting, might it be enough
to expect the user to set some global variables first, sanity-check the
contents of those variables at the beginning of your script, and if they are
empty or invalid, print out some usage/directions to the console and
03:32
To: mikrotik@mail.butchevans.com
Subject: Re: [Mikrotik] RouterOS Scripting
On 06/03/2013 08:43 PM, Josh Luthman wrote:
> Pretty sure stdin doesn't exist on the Mikrotik...
I am pretty sure that is correct. I was just hoping that there was a way in
the scripting engine to accept us
On 06/04/2013 07:08 AM, Shayne Lebrun wrote:
Might be better to run the script on a different machine, and interact with
the Mikrotik via the API or ssh or something, maybe?
This is exactly what I am trying to avoid.
--
Butch Evans
702-537-0979
Network Support and Engineering
http://store.wisp
On 06/04/2013 04:32 AM, Nathan Anderson wrote:
Depending on the complexity of the input you are expecting, might
it be enough to expect the user to set some global variables first,
sanity-check the contents of those variables at the beginning of your
script, and if they are empty or invalid, pri
Is it just a matter of syntax from the CLI?
If you do
/system add source=
How far do you get?
Or am I misunderstanding?
Or is it that you need the script to accept input?
bp
On 6/3/2013 5:26 PM, Butch Evans wrote:
I cannot find a way to do this, but thought there may be someone who
can
On Tue, Jun 04, 2013 at 12:41:01PM -0500, Butch Evans wrote:
> On 06/04/2013 07:08 AM, Shayne Lebrun wrote:
> > Might be better to run the script on a different machine, and interact with
> > the Mikrotik via the API or ssh or something, maybe?
>
> This is exactly what I am trying to avoid.
MetaR
He wants the script to read the keyboard.
On 6/4/2013 1:45 PM, Bill Prince wrote:
Is it just a matter of syntax from the CLI?
If you do
/system add source=
How far do you get?
Or am I misunderstanding?
Or is it that you need the script to accept input?
bp
On 6/3/2013 5:26 PM, Butch Evan
Ya. Figured that out after it bounced around a couple of times.
bp
On 6/4/2013 3:32 PM, Scott Reed wrote:
He wants the script to read the keyboard.
___
Mikrotik mailing list
Mikrotik@mail.butchevans.com
http://mail.butchevans.com/mailman/listinfo/m
On 06/04/2013 01:44 PM, Scott Lambert wrote:
MetaROUTER?, if you're just trying to avoid another box. If you're
trying to increase the user-friendliness of something like the QOS
scripts, no ideas.
It is something like the QOS scripts...really it is just something I was
playing with for a cus
13 matches
Mail list logo