- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- script to ftp the file from local drive to hp unix...
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
Forums
Discussions
Discussions
Discussions
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
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
03-07-2006 05:21 AM
03-07-2006 05:21 AM
Is there any way to write a dos bat command to ftp a text file from my local drive to hp server? The files stay in my c drive, I need to run those files in unix server. So the script should run automatically, the user doesn't need to key in the username and password.
thanks a lot
Leah
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2006 05:45 AM
03-07-2006 05:45 AM
Solution- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2006 06:02 AM
03-07-2006 06:02 AM
Re: script to ftp the file from local drive to hp unix drive
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2006 06:56 AM
03-07-2006 06:56 AM
Re: script to ftp the file from local drive to hp unix drive
the scirpt you provide me should run under window or hp sever? As soon as i typed : ftpput.pl -u, the script itself will pop-up.
Sorry, i know nothing about Perl, I downloaded the Activeperl for windows, and installed on my c drive.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2006 06:56 AM
03-07-2006 06:56 AM
Re: script to ftp the file from local drive to hp unix drive
the scirpt you provide me should run under window or hp sever? As soon as i typed : ftpput.pl -u, the script itself will pop-up.
Sorry, i know nothing about Perl, I downloaded the Activeperl for windows, and installed on my c drive.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2006 07:08 AM
03-07-2006 07:08 AM
Re: script to ftp the file from local drive to hp unix drive
Let's suppose that you want to transfer the file "myfile.txt" located in your CWD on your windows box to directory /xxx/yyy on your HP-UX box.
Your Windows command could look like this:
perl ftpput.pl -l cstephen -p topsecret -A -d /xxx/yyy myfile.txt
If you have configured your Windows box to recognize the ".pl" extension then the "perl" part of the command is not needed.
We just told the command to login as user "cstephen"; password "topsecret"; -A (ASCII mode; you said textfile); cd to /xxx/yyy and finally put the file myfile.txt.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2006 08:42 AM
03-07-2006 08:42 AM
Re: script to ftp the file from local drive to hp unix drive
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2006 02:53 AM
03-08-2006 02:53 AM
Re: script to ftp the file from local drive to hp unix drive
pscp localfile user@remotehost:/path/to/remotefile
It also uses the more secure ssh protocol rather than cleartext, unauthenticated ftp.
You would also need HP-UX Secure Shell installed on your HP-UX machine (comes with the latest OEs or you can download it from software.hp.com)
Hope that helps
-Keith
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2006 03:07 AM
03-08-2006 03:07 AM
Re: script to ftp the file from local drive to hp unix drive
here is a DOS solution:
echo user USERID PASSWORD > a.lis
echo ls >> a.lis
echo bye >> a.lis
ftp -n -d -s:a.lis IPADDRESS
del a.lis
where variable to be coded are in UPPERCASE
e.g IPADDRESS 123.234.123.234
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2006 05:00 AM
03-08-2006 05:00 AM
Re: script to ftp the file from local drive to hp unix drive
Leah