?
Solved

ftp problem

Posted on 2002-06-19
2
Medium Priority
?
151 Views
Last Modified: 2010-08-05
hi all,

pls take a look at the code below.

$putfiles = "en.tar";
$socksftp="/usr/bin/ftp ";
$hostname = 'www.abc.com';
$user='xxx';
$passwd='yyy';
$directory = '/base/reports/';
`$socksftp -ni $hostname   <<!
user $user $passwd
cd $directory
bin
mput $putfiles
--------------------------
once i put my file in abc m/c, i need to untar the $putfiles file something like "tar xvf en.tar" - how do i do that?
----------------------------
quit
!`
;

Please help - urgent request ...
0
Comment
Question by:lakshminair
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 19

Accepted Solution

by:
Kim Ryan earned 400 total points
ID: 7094579
If you use the Net::Telnet command, you can issue commands through a terminal seesion. You will of course need permision to untar the files remotely. You may also want to use the Net::FTP module for a cleaner interface to FTP operations.
0
 
LVL 8

Expert Comment

by:inq123
ID: 9512545
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Accept a comment by teraplane

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

inq123
EE Cleanup Volunteer
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

On Microsoft Windows, if  when you click or type the name of a .pl file, you get an error "is not recognized as an internal or external command, operable program or batch file", then this means you do not have the .pl file extension associated with …
I have been pestered over the years to produce and distribute regular data extracts, and often the request have explicitly requested the data be emailed as an Excel attachement; specifically Excel, as it appears: CSV files confuse (no Red or Green h…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Six Sigma Control Plans
Suggested Courses

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question