Search found 31 matches
- 03 Feb 2015 09:59
- Forum: DOS Batch Forum
- Topic: FTP a file:Get return code if ftp is unsucessful.
- Replies: 47
- Views: 27242
Re: FTP a file:Get return code if ftp is unsucessful.
Hi Squashman and foxidrive - I tried using the way you mentioned, it worked but using -n and -i options i am not able to see logs at all. I can only see below in log file: open 10.1.1.1 user global123 bin myfile.txt myfilenew.txt quit So even if file was ftp'd but no logs are generated at all. So y...
- 03 Feb 2015 07:31
- Forum: DOS Batch Forum
- Topic: FTP a file:Get return code if ftp is unsucessful.
- Replies: 47
- Views: 27242
Re: FTP a file:Get return code if ftp is unsucessful.
OK. I will tell you the exact process.However i can not mention server name, user id and password due to copyright issues. I hope you understand that. This is what i am trying to do: There is a tool called IBM WTX, basically a application which does some other processing apart from executing this ba...
- 02 Feb 2015 07:33
- Forum: DOS Batch Forum
- Topic: FTP a file:Get return code if ftp is unsucessful.
- Replies: 47
- Views: 27242
Re: FTP a file:Get return code if ftp is unsucessful.
I have no idea what could be wrong with your system. I literally generate hundreds of FTP logs every day with the automation I do. I have never seen the log file not come out correctly Thanks Squashman for being patient and suggesting so many solutions! I will have to look for some other approach t...
- 02 Feb 2015 02:26
- Forum: DOS Batch Forum
- Topic: FTP a file:Get return code if ftp is unsucessful.
- Replies: 47
- Views: 27242
Re: FTP a file:Get return code if ftp is unsucessful.
Hi Squashman and foxidrive - I tried using the way you mentioned, it worked but using -n and -i options i am not able to see logs at all. I can only see below in log file:
open 10.1.1.1
user global123
bin
myfile.txt myfilenew.txt
quit
So even if file was ftp'd but no logs are generated at all.
open 10.1.1.1
user global123
bin
myfile.txt myfilenew.txt
quit
So even if file was ftp'd but no logs are generated at all.
- 30 Jan 2015 11:17
- Forum: DOS Batch Forum
- Topic: FTP a file:Get return code if ftp is unsucessful.
- Replies: 47
- Views: 27242
Re: FTP a file:Get return code if ftp is unsucessful.
Try this in your script file. I have seen several FTP servers that don't like it when you don't specify the USER command. As you can see in my examples I always use it. I am not sure if that is why you are seeing INVALID COMMAND errors. open 10.1.1.1 USER global123 globnew bin put myfile.txt myfile...
- 30 Jan 2015 10:49
- Forum: DOS Batch Forum
- Topic: FTP a file:Get return code if ftp is unsucessful.
- Replies: 47
- Views: 27242
Re: FTP a file:Get return code if ftp is unsucessful.
Batch File:demo.bat ftp -i -n -s:"D:\New\temp.txt" >"D:\New\logs.txt" Contents of temp.txt open 10.1.1.1 global123 globnew bin put myfile.txt myfilenew.txt quit When demo.bat is executed then logs.txt consist of: Invalid command. Invalid command. open 10.1.1.1 global123 globnew b...
- 30 Jan 2015 10:28
- Forum: DOS Batch Forum
- Topic: FTP a file:Get return code if ftp is unsucessful.
- Replies: 47
- Views: 27242
Re: FTP a file:Get return code if ftp is unsucessful.
Squashman wrote:Try it without the -I option.
ftp -n -s:"C:\ftpscript.txt"
Then try it without the -I and -N option.
ftp -s:"C:\ftpscript.txt"
I did that already.1) is not working..2) It works but logs details are not sufficient.
- 30 Jan 2015 10:20
- Forum: DOS Batch Forum
- Topic: FTP a file:Get return code if ftp is unsucessful.
- Replies: 47
- Views: 27242
Re: FTP a file:Get return code if ftp is unsucessful.
Thanks Squashman for being patient! I dont know why its not working for me
I think in my case file is posted to server via firewall. So that might be the reason -n -i options are not recognizable. Not sure though...I am still thinking how i can figure out if file is ftp'd or not from the logs..
![Crying or Very sad :cry:](./images/smilies/icon_cry.gif)
- 30 Jan 2015 09:47
- Forum: DOS Batch Forum
- Topic: FTP a file:Get return code if ftp is unsucessful.
- Replies: 47
- Views: 27242
Re: FTP a file:Get return code if ftp is unsucessful.
YES It didnt work! i renamed my file to demo.bat and using below command: ftp -i -n -s:"C:\temp.txt" >"C:\logs.txt" When demo.bat is executed then i could see below in my logs.txt file: Invalid command. Invalid command. open 10.1.1.1 user password bin Please login with USER and ...
- 30 Jan 2015 09:10
- Forum: DOS Batch Forum
- Topic: FTP a file:Get return code if ftp is unsucessful.
- Replies: 47
- Views: 27242
Re: FTP a file:Get return code if ftp is unsucessful.
Is it a problem? I dont think so because in that case it would not have worked with ftp -d option as well. ftp -i -n -s:"C:\temp.txt" >logs.txt Your batch file doesn't know the difference between FTP.EXE and FTP.BAT because you are not specifying a file extension. If a batch file needs to...
- 30 Jan 2015 08:07
- Forum: DOS Batch Forum
- Topic: FTP a file:Get return code if ftp is unsucessful.
- Replies: 47
- Views: 27242
Re: FTP a file:Get return code if ftp is unsucessful.
Squashman wrote:sam14189 wrote:ftp.bat
And Bingo was his name oh!!!!!!
Is it a problem? I dont think so because in that case it would not have worked with ftp -d option as well.
- 30 Jan 2015 07:54
- Forum: DOS Batch Forum
- Topic: FTP a file:Get return code if ftp is unsucessful.
- Replies: 47
- Views: 27242
Re: FTP a file:Get return code if ftp is unsucessful.
Squashman wrote:Are you running that from the Command Prompt or a Batch file?
If you are running it from a batch file what is the name of the batch file.
I am running it from a batch file. The name of batch file is ftp.bat
- 30 Jan 2015 07:26
- Forum: DOS Batch Forum
- Topic: SFTP a file instead of ftp
- Replies: 4
- Views: 3504
Re: SFTP a file instead of ftp
1) Windows does not have a native SFTP client. 2) Doesn't matter if it is a FTP or SFTP command line client. You would log them the same way. Thanks! I thought SFTP is secure and that's why i thought of using it. Using the native ftp client i am not able to get "Transfer completed" messag...
- 30 Jan 2015 06:22
- Forum: DOS Batch Forum
- Topic: FTP a file:Get return code if ftp is unsucessful.
- Replies: 47
- Views: 27242
Re: FTP a file:Get return code if ftp is unsucessful.
All my FTP commands are launched from batch files like this. ftp -n -i -s:"E:\PathtoBatchFiles\ClientNameFTPscript.scr" >"E:\PathtoLogFiles\ClientNameFTPscript.txt" I tried using this command but it says invalid parameter. I am not sure why -n is not working Paste in the exact c...
- 30 Jan 2015 06:17
- Forum: DOS Batch Forum
- Topic: SFTP a file instead of ftp
- Replies: 4
- Views: 3504
Re: SFTP a file instead of ftp
In your last thread somebody asked you for information, and you chose to ignore it. You still want a log file - and this seems to be the primary goal according your your last thread . http://www.dostips.com/forum/viewtopic.php?f=3&t=6211 See here: http://www.dostips.com/forum/viewtopic.php?f=3&...