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 then quit? Not the most elegant, sure, but perhaps better than nothing...
-- Nathan Anderson First Step Internet, LLC nath...@fsr.com On Jun 3, 2013, at 18:44, "Josh Luthman" <j...@imaginenetworksllc.com> wrote: > 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 <sr...@nwwnet.net> wrote: > >> 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 accept input from the cli for a script. Any insights or >>> ideas on how to accomplish this? >> -- >> Scott Reed >> Owner >> NewWays Networking, LLC >> Wireless Networking >> Network Design, Installation and Administration >> >> >> Mikrotik Advanced Certified >> www.nwwnet.net >> (765) 855-1060 >> (765) 439-4253 >> (855) 231-6239 >> >> >> >> ______________________________**_________________ >> Mikrotik mailing list >> Mikrotik@mail.butchevans.com >> http://mail.butchevans.com/**mailman/listinfo/mikrotik<http://mail.butchevans.com/mailman/listinfo/mikrotik> >> >> Visit http://blog.butchevans.com/ for tutorials related to Mikrotik >> RouterOS > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > <http://mail.butchevans.com/pipermail/mikrotik/attachments/20130603/91499450/attachment.html> > _______________________________________________ > Mikrotik mailing list > Mikrotik@mail.butchevans.com > http://mail.butchevans.com/mailman/listinfo/mikrotik > > Visit http://blog.butchevans.com/ for tutorials related to Mikrotik RouterOS _______________________________________________ Mikrotik mailing list Mikrotik@mail.butchevans.com http://mail.butchevans.com/mailman/listinfo/mikrotik Visit http://blog.butchevans.com/ for tutorials related to Mikrotik RouterOS