Link to home
Start Free TrialLog in
Avatar of mrsjbennett
mrsjbennett

asked on

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

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!

Avatar of prady_21
prady_21

>>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
ASKER CERTIFIED SOLUTION
Avatar of yuzh
yuzh

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