Agent runs fine, but shell command in the agent doesn't work

I created server agents run on schedule. They runs on schedule and work fine except a shell command in it.

Shell kicks off a batch file and transfer a csv file to other server by ftp.

The batch file works fine manually.

And I set the runtime security ‘3’.

The code in the agent is below;


taskid% = Shell(“d:\lotus\domino\data\tmp\whorder.bat”)


The code in the batch file is below;


d:

ftp -i -s:d:\Lotus\domino\data\tmp\whorder.txt >>whod.log

exit


It seems log file isn’t created, so I think the batch file doesn’t work.

Please help…

Kasumi

Subject: It’s probably working fine…

Hi Kasumi

You don’t say where the log file is being written to, I think by default it will be c:\windows\system32 if Domino is running as a service and it may not be able to write the file to that folder. Try specifying the full path for the log file.

Also, do the commands get executed on the server, i.e is your CSV file transferred ?

regards

Simon

Subject: Thanks!

Hi Simon,Thank you so much. It worked fine!

Kasumi