﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Ipswitch Forums / File Transfer / WS_FTP Professional  / LOG file opened and not declared in script / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>Ipswitch Forums</description><link>http://forums.ipswitch.com/</link><webMaster>forums@ipswitch.com</webMaster><lastBuildDate>Thu, 04 Dec 2008 15:11:44 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: LOG file opened and not declared in script</title><link>http://forums.ipswitch.com/Topic42946-6-1.aspx</link><description>I think our 2 problems are related (I posted mine earlier today) - I have some old scripts originally programmed to run under version 8.0 that do exactly what you are trying to do, but after upgrading to version 2007 I found that no matter what line you put the "Log filename.txt" command it starts the log from the beginning AND if you declare 2 separate log files the script creates both files but only uses the second name - so your issue is that version 2007 can only have 1 log command in the script.&lt;/P&gt;&lt;P&gt;Since all you are trying to do is have an easy way of seeing if there was an error you might be able to use a shell command to rename the log file to the required name:&lt;/P&gt;&lt;P&gt;Try changing your second log command to:&lt;/P&gt;&lt;P&gt;LABEL ERROR_CONNECT&lt;/P&gt;&lt;P&gt;SHELL copy \\load-06\e$\AL\02400\load_dirs\aul_push.log \\load-06\e$\al\02400\load_dirs\aul_push.log.error</description><pubDate>Thu, 24 Apr 2008 02:07:37 GMT</pubDate><dc:creator>DaveZ</dc:creator></item><item><title>LOG file opened and not declared in script</title><link>http://forums.ipswitch.com/Topic42946-6-1.aspx</link><description>&lt;FONT face=Arial&gt;Here's my script. I'm attempting to have an unsuccessful run logged to an error log and ok run logged to a .log file.&lt;/FONT&gt;&lt;P&gt;&lt;FONT face=Arial&gt;LOG &lt;/FONT&gt;&lt;A href="file://load-06/e$/al/02400/load_dirs/AUL_PUSH.LOG"&gt;&lt;FONT face=Arial&gt;\\load-06\e$\al\02400\load_dirs\AUL_PUSH.LOG&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;CONNECT "SHARED SITES!MHR!MHR_AUL"&lt;BR&gt;ONERROR GoTO ERROR_CONNECT&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;PUT &lt;/FONT&gt;&lt;A href="file://LOAD-06/E$/AL/02400/Upload/AUL/Prep/testfile.txt"&gt;&lt;FONT face=Arial&gt;\\LOAD-06\E$\AL\02400\Upload\AUL\Prep\testfile.txt&lt;/FONT&gt;&lt;/A&gt;&lt;BR&gt;&lt;FONT face=Arial&gt;DIR&lt;BR&gt;GOTO ENDIT&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;LABEL ERROR_CONNECT&lt;BR&gt;LOG &lt;/FONT&gt;&lt;A href="file://load-06/e$/al/02400/load_dirs/AUL_PUSH.LOG.ERROR"&gt;&lt;FONT face=Arial&gt;\\load-06\e$\al\02400\load_dirs\AUL_PUSH.LOG.ERROR&lt;/FONT&gt;&lt;/A&gt;&lt;BR&gt;&lt;FONT face=Arial&gt;LABEL ENDIT&lt;BR&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;It had created the LOG.ERROR at one time. However, it is running ok now and the log is still going to the LOG.ERROR file. Here's what's in the log. Notice that there is no mention of even executing the line that opens the .LOG.ERROR file. Hmmmmm. No ideas at this point. Matt.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;Processing Line 2 [LOG AUL_PUSH.LOG]&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;Processing Line 4 [CONNECT "SHARED SITES!MHR!MHR_AUL"]&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;Connecting to 00.00.00.000:21&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;Connected to 00.00.00.000:21 in 0.187566 seconds, Waiting for Server Response&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;Initializing SSL Session ...&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;220-FTP Server&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;220-Anyone experiencing problems should contact the IT department at 000-000-0000 ext. 458.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;220-&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;220-They can also be reached via email at &lt;/FONT&gt;&lt;A href="mailto:xxxxxxx@xxxxxx.com"&gt;&lt;FONT face=Arial&gt;xxxxxxx@xxxxxx.com&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;220-&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;220 Thank you.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;AUTH TLS&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;234 AUTH command OK. Initializing SSL connection.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;SSL session NOT set for reuse&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;SSL Session Started.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;Host type (1): Automatic Detect&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;USER UdaMan&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;331 User name okay, need password.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;PASS (hidden)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;230 User logged in, proceed.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;SYST&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;215 UNIX Type: L8&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;Host type (2): Unix (Standard)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;PBSZ 0&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;200 PBSZ command OK. Protection buffer size set to 0.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;PROT P&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;200 PROT command OK. Using private data connection.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;Sending "FEAT" command to determine what features this server supports.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;FEAT&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;211-Extension supported&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt; AUTH TLS&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt; SSCN&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt; PBSZ&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt; PROT&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt; CCC&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt; CLNT&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt; MDTM&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt; MDTM YYYYMMDDHHMMSS[+-TZ];filename&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt; SIZE&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt; SITE PSWD;EXEC;SET;INDEX;ZONE;CHMOD;MSG&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt; REST STREAM&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt; XCRC filename;start;end&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt; MODE Z&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt; MLST Type*;Size*;Create;Modify*;Win32.ea*;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;211 End&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;Finished interpreting "FEAT" response.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;Sending the FEAT command is optional.  You can disable it in the site options of the profile.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;PWD&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;257 "/" is current directory.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;Processing Line 5 [ONERROR GoTO ERROR_CONNECT]&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;Set [ONERROR] action to [GoTO ERROR_CONNECT]&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;Processing Line 9 [PUT testfile.txt]&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;No destination folder. The current directoy '/' is used.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;TYPE A&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;200 Type set to A.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;PASV&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;227 Entering Passive Mode (00,00,00,000,000,0)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;connecting data channel to 00.00.00.000:000,0(32000)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;data channel connected to 00.00.00.000:000,0(32000)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;LIST&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;150 Opening ASCII mode data connection for /xxx/xx.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;# transferred 852 bytes in &amp;lt; 0.001 seconds, 6656.250 Kbps ( 832.031 Kbps), transfer succeeded.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;226 Transfer complete.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;Starting request&lt;BR&gt;Transfer request completed with status: Finished&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR&gt;&lt;FONT face=Arial&gt;Processing Line 10 [DIR]&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;TYPE A&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;200 Type set to A.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;PASV&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;227 Entering Passive Mode (00,00,00,000,000,2)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;connecting data channel to 00.00.00.000:000,2(32002)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;data channel connected to 00.00.00.000:000,2(32002)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;LIST&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;150 Opening ASCII mode data connection for /bin/ls.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;# transferred 852 bytes in 0.016 seconds, 425.850 Kbps ( 53.231 Kbps), transfer succeeded.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;226 Transfer complete.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;  Directory of /&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;10/25/2007           9:37:00 AM           &amp;lt;DIR&amp;gt;               0 2007-09        &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;10/25/2007           9:31:00 AM           &amp;lt;DIR&amp;gt;               0 2007-10        &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;12/11/2007           4:54:00 PM           &amp;lt;DIR&amp;gt;               0 2007-11        &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;4/2/2008             11:28:00 AM          &amp;lt;DIR&amp;gt;               0 2007-12        &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;4/2/2008             11:28:00 AM          &amp;lt;DIR&amp;gt;               0 2007-12 audit  &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;4/2/2008             11:28:00 AM          &amp;lt;DIR&amp;gt;               0 2008-01        &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;4/9/2008             9:43:00 AM           &amp;lt;DIR&amp;gt;               0 2008-02        &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;4/16/2008            7:10:00 AM           &amp;lt;DIR&amp;gt;               0 2008-03        &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;4/9/2008             8:02:00 AM           &amp;lt;DIR&amp;gt;               0 2008-04        &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;4/15/2008            1:19:00 PM                          13,682 xxxxxxxxxx.csv&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;4/17/2008            6:12:00 PM                               0 testfile.txt   &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;  9 Dirs  2 Files  13,682 Bytes&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;Processing Line 13 [GOTO ENDIT]&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;Jump to command [LABEL ENDIT] at line 19&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;Processing Line 19 [LABEL ENDIT]&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;QUIT&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;221-Anyone experiencing problems should contact the IT department at 000-000-0000 ext. .&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;221-&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;221-They can also be reached via email at &lt;/FONT&gt;&lt;A href="mailto:xxxxxxx@xxxxxx.com"&gt;&lt;FONT face=Arial&gt;xxxxxxx@xxxxxx.com&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;221-&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;221 Thank you.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;Connection closed.  Ready for next connection.&lt;/FONT&gt;</description><pubDate>Thu, 17 Apr 2008 18:28:22 GMT</pubDate><dc:creator>mattmer</dc:creator></item></channel></rss>