Link to home
Start Free TrialLog in
Avatar of lakshminair
lakshminair

asked on

ftp problem

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 ...
ASKER CERTIFIED SOLUTION
Avatar of Kim Ryan
Kim Ryan
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of inq123
inq123

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