02-09-2007
Hello Porter,
Not gibberish at all. We use ftp commands in Unix shell scripts for several outside vendors and have just the logon information in the .netrc file. Typically we deal with actual file names but this bank has established a macro of some sort that allows us to either get all the files in one batch or one file at a time using the ONEBATCH parameter. We never see actual filenames on their servers. Here is the command that I used that finally allowed me to successfully retrieve one file at a time:
get "\$$ ID=IL096869 BID='PGP LBX IMAGER ILFSLBX' ONEBATCH=Y" $FTPFILE
The \ was the missing link that literally told the command interpreter to ignore special treatment of the $.
The retrieval is accomplished using user ID and Batch ID arguments instead of actual filenames.
Works pretty slick.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello...
I have script that works perfect on solaris but on Reliant UNIX sometimes it does not work ...I send files to my Xp(from Reliant UNIX) but if I try to send it to my solaris machine file can not be send...
script is:
#!/bin/ksh
localFile=$1
remoteFile=$2
... (0 Replies)
Discussion started by: amon
0 Replies
2. UNIX for Dummies Questions & Answers
hi there,
i am a sap-programmer and i sent pdf-files via FTP from sap (on an iseries-machine) to a UNIX-server every day.
i am doing it via MPUT *.pdf
It works well until today. I got the ftp-message "Arguments too long"....i searched for it in the internet and here in the forum. it says... (9 Replies)
Discussion started by: smartin999
9 Replies
3. UNIX for Dummies Questions & Answers
my problem is like this
while ftping locally it works,
but when users from WAN try the ftp services it doesnt comes
the message it displays is as follows "connection closed by remote host "
please help
Thanks (5 Replies)
Discussion started by: Athos19
5 Replies
4. UNIX for Dummies Questions & Answers
Hi, I am new to this forum.
I have a problem and I ws hoping you guys can help me out here.
the problem: I have a batch job running on a Unix Server, and it transfers files from the unix server to another server. the series of commands are as follows:
> LS Listing the files
> Logging into... (4 Replies)
Discussion started by: Vanilmirth
4 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I have one file to FTP from Unix to mainframe. It has been successfully FTPied. But problem is my Unix file will be generated as file_name1.sh. But Mainframes side they need file in file.name1.sh. So they dont need underscore (_) in the file name. Please let me know if there is any solution... (1 Reply)
Discussion started by: manneni prakash
1 Replies
6. UNIX for Dummies Questions & Answers
Hello,I am trying to put something on the ftp server using the put command. Whenever I try, I get this error:
ftp> put SIMS.war
local: SIMS.war remote: SIMS.war
200 PORT command successful
553 Can't open that file: Permission denied
I have set rwx for all on that file and I still am... (3 Replies)
Discussion started by: mojoman
3 Replies
7. UNIX for Dummies Questions & Answers
hi All,
how can i make my own commamnds for unix shell scripts.
lets xmple..
1-i want to use "down arrow key" for previous runned unix commands.
then how to acheive it.
2-Generally TAB --- complete filename or command up to the point of uniqueness ..but here its not working ..
I m new to... (1 Reply)
Discussion started by: pradeepcarya
1 Replies
8. Shell Programming and Scripting
If i use ftp command under if statement it shows the error "Syntax error at line 19 : `<<' is not matched." But if i use ftp command outside if statement, then it is running fine. Can anyone please help me in this.
Code:
#!/bin/sh
echo "\nPress 1 for automated file dumping."
echo... (9 Replies)
Discussion started by: makauser
9 Replies
9. Shell Programming and Scripting
I am unable to use get or put command in a ftp session where remote system in Windows_NT.
ftp> put rowb1_cbp14_20111116.txt
local: rowb1_cbp14_20111116.txt remote: rowb1_cbp14_20111116.txt
227 Entering Passive Mode (10,130,6,29,14,245)
Pls suggest a way. (0 Replies)
Discussion started by: Naga06
0 Replies
10. Shell Programming and Scripting
I am unable to use get or put command in a ftp session where remote system in Windows_NT.
ftp> put rowb1_cbp14_20111116.txt
local: rowb1_cbp14_20111116.txt remote: rowb1_cbp14_20111116.txt
227 Entering Passive Mode (10,130,6,29,14,245) (3 Replies)
Discussion started by: Naga06
3 Replies
LEARN ABOUT OSX
ftp_geturl
ftp::geturl(n) ftp client ftp::geturl(n)
__________________________________________________________________________________________________________________________________________________
NAME
ftp::geturl - Uri handler for ftp urls
SYNOPSIS
package require Tcl 8.2
package require ftp::geturl ?0.2.1?
::ftp::geturl url
_________________________________________________________________
DESCRIPTION
This package provides a command which wraps around the client side of the ftp protocol provided by package ftp to allow the retrieval of
urls using the ftp schema.
API
::ftp::geturl url
This command can be used by the generic command ::uri::geturl (See package uri) to retrieve the contents of ftp urls. Internally it
uses the commands of the package ftp to fulfill the request.
The contents of a ftp url are defined as follows:
file The contents of the specified file itself.
directory
A listing of the contents of the directory in key value notation where the file name is the key and its attributes the asso-
ciated value.
link The attributes of the link, including the path it refers to.
BUGS, IDEAS, FEEDBACK
This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category ftp of
the Tcllib SF Trackers [http://sourceforge.net/tracker/?group_id=12883]. Please also report any ideas for enhancements you may have for
either package and/or documentation.
SEE ALSO
ftpd, mime, pop3, smtp
KEYWORDS
ftp, internet, net, rfc 959
CATEGORY
Networking
ftp 0.2.1 ftp::geturl(n)