Hi Donna and Tony :)
Please remember to consider security of the process (passwords in the
job?) , the data being FTP'ed and so on :)
Art "you thot I wouldn't mention security? hehehe" Bahrs
=======================================================
Art Bahrs, CISSP Information Security The Regence Group
(503) 225-4992 FAX (503) 220-3806
"donna
garverick"
<donna_garveri To
[log in to unmask]> [log in to unmask]
Sent by: cc
"HP-3000
Systems Subject
Discussion" Re: [HP3000-L] FW: Automating FTP
<HP3000-L@RAVE transfers
N.UTC.EDU>
01/18/2006
01:40 PM
Please respond
to
i_hate_spam@ya
hoo.com
|------------|
| [ ] Secure |
| E-mail |
|------------|
--- Tony Summers <[log in to unmask]> wrote:
> Just posted to HP9000-L
saw it...and it's a subset of the crowd that hangs out here :-)
> My question is .... how do I do this on HP-UX ? I think the
> same piping process can be used, but I think I'm not getting
> the contents of the ftpin file correct.
there are some things you can do -- like routing stderr 2&> out to a
file and examine it after the ftp is done.
with a bit of googling, i found this:
result=`ftp -v <<**
open $MACHINE
put file.txt $DESTINATION/filename.dat
bye
**`
value=`echo "$result" |grep "226 Transfer complete" |wc -l`
if [ $value = 1 ]
then
echo "\nFTP Success"
else
echo "\nFTP Failure"
fi
it's kinda clever and would certainly need some work but it's a start.
- d
Donna Garverick, HP-CSA Sr. System Programmer
dgarverick -at- longs -dot- com
925-210-6631 Longs Drug Stores
Come, my friends, 'Tis not too late to seek a newer world.
Tho' much is taken, much abides; and tho'
We are not now that strength which in old days
Moved earth and heaven, that which we are, we are.
"Ulysses", A. Tennyson
>>>MY opinions, not Longs Drug Stores'<<<
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
=============================================================================
IMPORTANT NOTICE: This communication, including any attachment, contains information that may be confidential or privileged, and is intended solely for the entity or individual to whom it is addressed. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message is strictly prohibited. Nothing in this email, including any attachment, is intended to be a legally binding signature.
=============================================================================
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|