Hello,
Can any one suggest a way to do a ftp connect within perl
without using any modules on a unix platform , it may be attained
using system commands also
I had a code similiar to this supplying
username ,password ,host name using shell script
#!/bin/ksh
# Path of ftp executable
ftp="/usr/bin/ftp"
# Give port or mention server name
IP="test.test.com"
#User ID to login into remote server
user="THU"
#Password to login in remote server
pass="BFR"
#ftp block starting - all will be written to log file
echo "---------------------------------------------------"
echo " Begin FTP Parameters "
echo "---------------------------------------------------"
echo "Destination Machine: $IP"
echo "User ID: $user"
echo "Password: ##############"
echo "---------------------------------------------------"
echo " End FTP Parameters "
echo "---------------------------------------------------"
echo " Begin FTP Session "
echo "---------------------------------------------------"
echo "open $IP
quote USER $user
quote PASS $pass
lcd
" |$ftp -n
echo "---------------------------------------------------"
echo " End FTP Session "
Thanks in advance
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.