SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
write cmd batch log file

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
write cmd batch log file
Author Message
Jason



Joined: 29 May 2001
Posts: 27

Post write cmd batch log file Reply with quote

I am trying to run a batch file that does an FTP when I have to specify the recl, cyclinders, etc... I want to write the FTP process out to a log file. This works from a command prompt but it writes the contents of the batch file when run using the RUN JAL command.

This works:
c:\d:\ftp.bat > d:\ftp.log

Thanks

Jason

Wed Jan 26, 2005 2:49 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7963

Post Re: write cmd batch log file Reply with quote

Try

cmd /C d:\ftp.bat > d:\ftp.log

This is basically the same question as in http://www.softtreetech.com/cgi_bin/config.cgi?read=6095
Output redirection is performed by the DOS command processor so you got to run them together.

: I am trying to run a batch file that does an FTP when I have to specify the
: recl, cyclinders, etc... I want to write the FTP process out to a log
: file. This works from a command prompt but it writes the contents of the
: batch file when run using the RUN JAL command.

: This works: c:\d:\ftp.bat > d:\ftp.log

: Thanks

: Jason

Wed Jan 26, 2005 4:41 pm View user's profile Send private message
Jason



Joined: 29 May 2001
Posts: 27

Post Re: write cmd batch log file Reply with quote

I tried this and I still only log the contents of the bat file. I also tried running this same command as a program. I had found the article below earlier but I am not sure what I am doing differently now than what you described.

RUN ("cmd /C d:\ftp.bat > d:\ftp.log","",Process)

: Try

: cmd /C d:\ftp.bat > d:\ftp.log

: This is basically the same question as in
: http://www.softtreetech.com/cgi_bin/config.cgi?read=6095
: Output redirection is performed by the DOS command processor so you got to
: run them together.

Thu Jan 27, 2005 8:59 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7963

Post Re: write cmd batch log file Reply with quote

In the batch file you can change the FTP line to something like

ftp [-s: parameter.file] > d:\ftp_log.log

: I tried this and I still only log the contents of the bat file. I also tried
: running this same command as a program. I had found the article below
: earlier but I am not sure what I am doing differently now than what you
: described.

: RUN ("cmd /C d:\ftp.bat > d:\ftp.log","",Process)

Thu Jan 27, 2005 11:28 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7963

Post Re: write cmd batch log file Reply with quote

Make sure you don't use -v switch with the command line FTP. This switch suppresses display of remote server responses.

I usually use ftp -n -s:script.ftp [host] as the most simply method and then in the script.ftp file
user
pwd
and the rest goes here

: In the batch file you can change the FTP line to something like

: ftp [-s: parameter.file] > d:\ftp_log.log

Thu Jan 27, 2005 11:33 am View user's profile Send private message
mohd



Joined: 28 Sep 2005
Posts: 1

Post Re: write cmd batch log file Reply with quote

-v Suppresses display of remote server responses.
-n Suppresses auto-login upon initial connection.
-i Turns off interactive prompting during multiple file

transfers.
-d Enables debugging.
-g Disables filename globbing (see GLOB command).
-s:filename Specifies a text file containing FTP commands; the

commands will automatically run after FTP starts.
-a Use any local interface when binding data connection
-A login as anonymous.
-w:buffersize Overrides the default transfer buffer size of 4096.
host Specifies the host name or IP address of the remote

host to connect to.

tes:
- mget and mput commands take y/n/q for yes/no/quit.
- Use Control-C to abort commands.
please heelp me

Wed Sep 28, 2005 10:57 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.