Solved

using a unix shell script, copy a file from an nt server to a unix server, without ftp

Posted on 2003-11-17
4
4,467 Views
Last Modified: 2013-12-26
I'm sure someone has asked this question before but I couldn't find it.

I need to automatically copy a file from an NT Server group drive folder to a folder on a unix box. Can I do it using a unix shell script without FTP? (I have a user name and password for a group drive on the NT Server.)

Bascially, using a shell script, can I log in to access the NT group drive and copy/paste the file to a specific folder on my unix box?

I have a short turnaround time as this is one of those "firedrill" types of situations.

If it's not possible without ftp, any specifics would be greatly appreciated.

Thanks!

0
Comment
Question by:mrsjbennett
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 3

Expert Comment

by:prady_21
ID: 9768149
>>Bascially, using a shell script, can I log in to access the NT group drive and copy/paste the file to a >>specific folder on my unix box?
as long as i know the above is not possible

>>If it's not possible without ftp, any specifics would be greatly appreciated.
http://us1.samba.org/samba/samba.html
0
 
LVL 38

Accepted Solution

by:
yuzh earned 250 total points
ID: 9768186
I log in to access the NT group drive and copy/paste the file to a >>specific folder on my unix box?

Impossible !!!

If you don't what to use ftp, you can using rsync to transfer the files:
http://rsync.samba.org/
0
 
LVL 1

Expert Comment

by:mbekker
ID: 9769769
I wouldn't say it's impossible, but tricky...

Another solution is could be installing a rshd service on the windows server. There are various commercial daemons available, maybe also free ones. Just look on the internet, for example, here you can find a free evaluation version:

http://www.denicomp.com/rshdnt.htm

Good luck!
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 9800014
It's possible *and* tricky ;-)
 1. rsync
 2. samba (smbclient)
 3. rshsvc (from NT ResKit)
 4. ssh (sshd from openssh or cygwin)

1. to 3. have already been sugested, I'd use 4.
If you don't have admin access to NT, 2. is the way to go
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to know only "File created" with EventLog 3 35
Best tools for Backup and restore of Wordpress site 6 58
maven archtype selection in eclipse 1 59
noX challenge 17 144
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
In this post we will learn different types of Android Layout and some basics of an Android App.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question