Re: Windows shell craziness

2016-07-05 Thread Mike Bonner
Silly question, but.. you said the fping command is in the same folder as
the standalone, yet you're referencing it with c:\... IS the standalone
really in the root of c?
Also, start will open a new console window but you're hiding it. For test
purposes, don't hide the window, maybe you'll get more information so that
you can debug.


On Tue, Jul 5, 2016 at 4:18 PM, Dar Scott  wrote:

> Did your really want quotes around the IP address?  The space after -n?
> The...
>
> I guess Richard Gaskin's response is really the right one.
>
> > On Jul 5, 2016, at 3:22 PM, Skip Kimpel  wrote:
> >
> > Before I go crazy trying to format this properly, how can I format a
> shell
> > call to program with "options?"
> >
> > For instance I want to call fping.exe which is in the same folder as the
> > standalone.  However, the fping.exe command line should look like this:
> >
> > fping.exe 127.0.0.0 -l -n1
> >
> > This is what is NOTworking:
> >   put fld "URL" into myURL
> >   set the hideConsoleWindows to true
> >   put "start c:\fping.exe "&"' -l -n 1'"  into myShell
> >   replace "'" with quote in myShell
> >   get shell(myShell)
> >   answer it
> >
> > There is a need for quotes in order to make the switches work properly
> when
> > calling it this way from LiveCode.  It is something simple that I am
> > missing but it is driving me nuts!
> >
> > Of course, I need to report back the results
> >
> > As always, ANY help is greatly appreciated!
> >
> > SKIP
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Windows shell craziness

2016-07-05 Thread Dar Scott
Did your really want quotes around the IP address?  The space after -n?  The...

I guess Richard Gaskin's response is really the right one.

> On Jul 5, 2016, at 3:22 PM, Skip Kimpel  wrote:
> 
> Before I go crazy trying to format this properly, how can I format a shell
> call to program with "options?"
> 
> For instance I want to call fping.exe which is in the same folder as the
> standalone.  However, the fping.exe command line should look like this:
> 
> fping.exe 127.0.0.0 -l -n1
> 
> This is what is NOTworking:
>   put fld "URL" into myURL
>   set the hideConsoleWindows to true
>   put "start c:\fping.exe "&"' -l -n 1'"  into myShell
>   replace "'" with quote in myShell
>   get shell(myShell)
>   answer it
> 
> There is a need for quotes in order to make the switches work properly when
> calling it this way from LiveCode.  It is something simple that I am
> missing but it is driving me nuts!
> 
> Of course, I need to report back the results
> 
> As always, ANY help is greatly appreciated!
> 
> SKIP
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Windows shell craziness

2016-07-05 Thread Dar Scott
You have an extra single quote after the 1.

> On Jul 5, 2016, at 3:22 PM, Skip Kimpel  wrote:
> 
> Before I go crazy trying to format this properly, how can I format a shell
> call to program with "options?"
> 
> For instance I want to call fping.exe which is in the same folder as the
> standalone.  However, the fping.exe command line should look like this:
> 
> fping.exe 127.0.0.0 -l -n1
> 
> This is what is NOTworking:
>   put fld "URL" into myURL
>   set the hideConsoleWindows to true
>   put "start c:\fping.exe "&"' -l -n 1'"  into myShell
>   replace "'" with quote in myShell
>   get shell(myShell)
>   answer it
> 
> There is a need for quotes in order to make the switches work properly when
> calling it this way from LiveCode.  It is something simple that I am
> missing but it is driving me nuts!
> 
> Of course, I need to report back the results
> 
> As always, ANY help is greatly appreciated!
> 
> SKIP
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Windows shell craziness

2016-07-05 Thread Richard Gaskin

Skip Kimpel wrote:

> Before I go crazy trying to format this properly, how can I format a
> shell call to program with "options?"
>
> For instance I want to call fping.exe which is in the same folder as
> the standalone.  However, the fping.exe command line should look like
> this:
>
> fping.exe 127.0.0.0 -l -n1
>
> This is what is NOTworking:
>put fld "URL" into myURL
>set the hideConsoleWindows to true
>put "start c:\fping.exe "&"' -l -n 1'"  into myShell
>replace "'" with quote in myShell
>get shell(myShell)
>answer it
>
> There is a need for quotes in order to make the switches work
> properly when calling it this way from LiveCode.  It is something
> simple that I am missing but it is driving me nuts!

When in doubt about anything done with shell in LC, my first diagnostic 
step is to output the string being passed into shell and then copy it 
into Terminal to make sure it works there.  I've discovered a lot of 
syntax errors in my shell calls doing that. :)


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Windows shell craziness

2016-07-05 Thread Skip Kimpel
Before I go crazy trying to format this properly, how can I format a shell
call to program with "options?"

For instance I want to call fping.exe which is in the same folder as the
standalone.  However, the fping.exe command line should look like this:

fping.exe 127.0.0.0 -l -n1

This is what is NOTworking:
   put fld "URL" into myURL
   set the hideConsoleWindows to true
   put "start c:\fping.exe "&"' -l -n 1'"  into myShell
   replace "'" with quote in myShell
   get shell(myShell)
   answer it

There is a need for quotes in order to make the switches work properly when
calling it this way from LiveCode.  It is something simple that I am
missing but it is driving me nuts!

Of course, I need to report back the results

As always, ANY help is greatly appreciated!

SKIP
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode