I haven made a very simple script in Toucan:
void = sync "jobname"
If i run that script in toucan it works!
Now i make a .bat file with te following:
toucan.exe /s "scriptname"
then i get an error that said:
cannot run lua file [string "scriptname"]:1: '='expected near ''
What is wrong?
Are you supposed to use a dash+s ("-s") as the command line switch, not a forward slash?
yes
So was that the issue or was it just a typo in the original post?
you are supposed to use a forward slash. If you enter just toucan.exe -s in a dos prompt you will see a list of possible entries.
nope, you guys did not get it at all.
actually, i've also encountered this problem, and all you have to do is read closely the manual.
At the commande line chapter, it says :
Please note that the script command line parameter takes the same input as the input area in the user interface.
This means that if you wish to run a specic existing script you will need to use:
--script="dofile(getscript([[YOURSCRIPTNAME]]))"
this way it will work.
I read the manual.... I read the help function and on this moment, I don't understand the command-line.
An example : "c:\PortableApps\PortableApps\Toucan\App\Toucan\Toucan.exe" Sync "c:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\" "s:\Backup\PCWEK\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\" Copy checks = {true true false false} options = {true true false false false} rules=""
In this example I want to start een sync from local to server .....
With the manuals, I don't understand it, can anybody help me ?
Regards,
Werner
creating a new thread with exactly what you are trying to achieve and then I will try to help