- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- sftp : changing windows directory from 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
05-26-2010 12:25 AM
05-26-2010 12:25 AM
sftp : changing windows directory from unix
How do I change the windows directory from unix while doing sftp in batch mode?
Here's the scenario :
I am running a unix sftp script in batchmode to mget files in a windows server. The challenge I'm facing is how do I change the windows directory to get the files? The files are residing in "f:\direcory1\directory2\" in the windows server.
The sample script as follows :
sftp -o "batchmode yes" -b batchfile
batchfile :
cd \directory1\directory2\
mget datafiles*
bye
Seems like unix doesn't know how to change windows directory.
Can someone advise?
Thanks in advance.
- Tags:
- sftp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2010 01:53 AM
05-26-2010 01:53 AM
Re: sftp : changing windows directory from unix
Gudluck
Prasanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2010 02:10 AM
05-26-2010 02:10 AM
Re: sftp : changing windows directory from unix
then you do cd /directory1/directory2
Gudluck
Prasanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2010 03:23 AM
05-26-2010 03:23 AM
Re: sftp : changing windows directory from unix
lcd f:\direcory1\directory2\
when you are in unix server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2010 04:39 PM
05-26-2010 04:39 PM
Re: sftp : changing windows directory from unix
Unfortunately, both your suggestion didn't work.
From unix, I am using the script to connect to the windows server to get the files. The issue here is that
the files residing in Windows is not in the default c: drive but f: drive.
How can I do a "cd" to f: drive to copy the files from windows to unix?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2010 05:00 PM
05-26-2010 05:00 PM
Re: sftp : changing windows directory from unix
Some updates :
After investigating, found that it was a mistake on my part, should not have "cd \directory1\directory2\" as it was already logged in to f: drive.
Using "cd directory1\directory2" solved it.
Thanks all for the help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2010 05:01 PM
05-26-2010 05:01 PM