You are here

Advice on scripting

2 posts / 0 new
Last post
crishog
Offline
Last seen: 9 years 10 months ago
Joined: 2007-10-08 10:43
Advice on scripting

Given the current suspension of development work and the problem with running concurrent Toucan jobs, I've amalgamated a lot of jobs into scripts.

These currently just call sync & backup jobs and solve a few of my scheduling issues which have been leading to Toucan hanging.

I'm trying now to add a simple parameter

working = "mydir"

or

working = [[mydir]]

both simply give "5 unexpected symbol near ','"

Also expand( [[@drive@]]) gives the same error

Does anyone have an example of a working script I can follow?

crishog
Offline
Last seen: 9 years 10 months ago
Joined: 2007-10-08 10:43
OK,I' ll answer my own post.

The correct format for variable expansion is

t=expand([[@drive@]])

The error message was nothing to do with this line, but caused by an error in the following one, where I had something like:

move (t ..[[PortableApps\WinSCPPortable\Data\settings\winscp.log]] ), (t ..[[Logs\WinscpFTP.log]])

Two sets of parentheses rather than one as in:

move (t ..[[PortableApps\WinSCPPortable\Data\settings\winscp.log]], t ..[[Logs\WinscpFTP.log]])

Now the script works.

Log in or register to post comments