Lookout

cancel
Showing results for 
Search instead for 
Did you mean: 

Commands for RUN Object in Lookout

I would like to know all the DOS commands that can be executed by an RUN object in Lookout 5.1.Is there a document for the syntax of these commands?
0 Kudos
Message 1 of 8
(4,882 Views)


Hello 23r23,

Lookout's RUN object can only really execute files and programs with .EXE, .BAT, and .COM extensions. Additionally, we can pass paremeters (or arguments) to these files.

We can run the DOS commands because these DOS commands are really run in programs like cmd.exe and command.com. The paramaeters next to the cmd.exe in the RUN object, for instance, would be passed to the DOS window.

Technically, ALL DOS commands should work from the RUN object (because, again, we are really only launching the DOS window here and using it).

As mentioned in a previous post, for example we can move bunch of files with DOS' MOVE command using Lookout's run object. Quoting from that post:

"The following command for example moves the contents of c:\tem
p to the temp directory on the network machine \\hurricane:


"cmd /c move /y c:\temp\*.* \\hurricane\temp"


/c launches the cmd and then terminates when done,
/y suppress the "overwrite" warning if the files already exist."

Hope this helps. Please write back if I misunderstood your question.

Regards,

Khalid

ps: typing 'help' in the DOS window will give you list of all DOS commands, and typing '/?' after the command gives you help on that particular command. E.g., c:\temp>MKDIR /?



0 Kudos
Message 2 of 8
(4,885 Views)

I also have a question regarding the run object

I have a .bat that i want to run using a run object but i need to pass the .bat a file parameter, held in column A of a table object.

Question,

How do I pass the table.A.txt.1 to the command line of the run object, with the file name of the .bat file.

Second,

"cmd /c c:\test\run.bat filename.txt"

I have tried it with a default file name (hard coded into the command line of the run object, and it does run, but only when i

edit the run object in edit mode.  Is there something I need to specify that i want it run every time a radio button has been selected?

I have specified  Run when   = Radio1

 

Frank

0 Kudos
Message 3 of 8
(4,703 Views)

Ok i have things running sort of.

 

I have a datasocket that reads a local text file.

I have a Run object that gets a file from the network and copies it to the local hard drive (as the text file above)

The run command is linked to a Radio button array (of 10), so that when a radio button is clicked, the run command

executes.

The problem i am having is that after the file is transferred to the local hard drive, i now want to display the information in

the text file using the datasocket.

If i set the Connect & Update members of the datasocket object to the radio button object i get the run command but

not the display of the updated data from the text file.

I have added a pushbutton that can be pushed after the file transfer occurs which is linked to the Connect & Update members

of the datasocket object.  This works fine but i would really like to eliminate the need to click the pushbutton after the radio

button has been clicked. 

Is there some way that allows the display of the datasocket object using just the radio buttons?

Is there some way to build in a pause of the display to ensure that the data transfer has been completed?

Also, is there some way that the run command can be triggered by the radio buttons but also every minute if

no radio button has been clicked.  (the data on the server may have been updated for the selected radio button)

 

frank

0 Kudos
Message 4 of 8
(4,689 Views)
Looks like the problem is that when you click on the Radio button, the Run Object and the DataSocket both get executed simulatenously.  And since the file hasn't been transferred yet, nothig gets displayed. 
 
To verify if this is really the case, and to fix it, you may want to "AND" a DelayOn timer (along with the Radio button) for the DataSocket Connect and Update connection. 
 
And to execute the Run command every so-many minutes (in addition to the Radio button), you will want to "OR" it with a TimeOfMinute, or any other appropriate Timers. 
 
Hope this helps.
 
-Khalid
0 Kudos
Message 5 of 8
(4,678 Views)

Thanks for your help

 

I was able to use a timer to put in the delay and it works fine.

 

Frank

0 Kudos
Message 6 of 8
(4,667 Views)
Khalid,
 
I have a switch that I wish to reset (off) when the user enters into a text box.
I connect the text box to the reset member of the switch.  This works fine, any time the user updates the text box the switch will go off.
Switch1.reset = TextBox1
 
Now if I have a second text box and I wish to have the switch go off if either one of the text boxes has been changed would I not say:
Switch1.reset = TextBox1 or TextBox2   ?  
Once this statement has been made, changing either text box will not turn the switch off.
 
Any ideas?
 
frank
0 Kudos
Message 7 of 8
(4,651 Views)

I used a Junction object to fire the reset of the switch, works well

 

frank

0 Kudos
Message 8 of 8
(4,650 Views)