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 ...
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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