- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: file from windows folder to unix box other tha...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-19-2010 07:17 AM
тАО04-19-2010 07:17 AM
file from windows folder to unix box other that FTP?
I am trying to transfer a file from windows floder(say "D:\test\file1.txt") to UNIX box (Say IP:"xxx"& path "$Home\test").
So i need a perl script to move the file from the window to unix.
Thanks in advance!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-19-2010 08:00 AM
тАО04-19-2010 08:00 AM
Re: file from windows folder to unix box other that FTP?
All recent versions of windows have Samba/CIFS built in.
Set up a windows share with the windows GUI first.
Install CIFS/9000 Client from http://software.hp.com on the HP-UX box.
This will require a reboot to install kernel modules.
At this point you will be able to use cifs tools to connect to the windows share enabling file transfer by perl script, shell script or many other means.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Tags:
- samba
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-19-2010 08:27 AM
тАО04-19-2010 08:27 AM
Re: file from windows folder to unix box other that FTP?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-19-2010 08:27 AM
тАО04-19-2010 08:27 AM
Re: file from windows folder to unix box other that FTP?
> file from windows folder to unix box other that FTP?
I'd use SFTP (which is far superior in many respects.
> So i need a perl script to move the file from the window to unix.
Using perl, you could cobble a script which uses the 'Net::SFTP::Foreign' perl module.
Of course, you could do even less work by installing something like 'winscp' on your Windows box:
http://winscp.net/eng/index.php
Regards!
...JRF...
- Tags:
- sftp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-19-2010 09:46 AM
тАО04-19-2010 09:46 AM
Re: file from windows folder to unix box other that FTP?
Why "other tha[n?] FTP"?
> So i need a perl script to move the file
> from the window to unix.
Why perl, specifically?
On which system were you planning to run this
perl script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-19-2010 10:01 AM
тАО04-19-2010 10:01 AM
Re: file from windows folder to unix box other that FTP?
Other then FTP you can download 3rd party utility like SFTP, WFTP.
install into your desktop and transfer file to your Unix box.
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-20-2010 05:17 AM
тАО04-20-2010 05:17 AM
Re: file from windows folder to unix box other that FTP?
You have several options here:
- winscp
- ftp
- cifs/mount
The easiest is the winscp just install on your windows machine and then connect to the unix box by ftp sftp or scp.
If you need any more information reply.
Please assign some points.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2010 10:30 PM
тАО04-30-2010 10:30 PM
Re: file from windows folder to unix box other that FTP?
use Net::FTP;
my $host = "UNIX Server Name";
my $user = "username";
my $credential = "pwed";
my $f = Net::FTP->new($host) or die "Can't open $host\n";
$f->login($user, $credential) or die "Can't log $user in\n";
$f->ascii(); #$f->binary();
$f->cwd("/usr/myFolder")or die "Cannot change working directory ", $f->message;
$f->put("C:\\myFolder\\mySample.txt");
print "File has been transfered successfullly...\n";
$f->quit();