Can Unix access Windows' File through Command Prompt in Unix


 
Thread Tools Search this Thread
Special Forums UNIX Desktop Questions & Answers Can Unix access Windows' File through Command Prompt in Unix
# 1  
Old 10-28-2011
Can Unix access Windows' File through Command Prompt in Unix

Hi all,

I wish to know whether Unix can access window's file in Unix's terminal?
Apart from that, how to copy files or share files between Window and Unix? I get to know of secure copy, however, my company's Unix does not support the feature of secure copy? Any other method for me to share/ copy files via Unix's terminal?
Thanks.
# 2  
Old 10-28-2011
By the way your questions are redundant.
You need a telnet server on Windows side.
Configuring SAMBA Server or FTP server or even install Windows Services for UNIX will allows file sharing.

Quote:
my company's Unix does not support the feature of secure copy? Any other method for me to share/ copy files via Unix's terminal?
The easy answer is FTP
# 3  
Old 10-28-2011
you can install cygwin in the window machine and do the work .


Cygwin is:a collection of tools which provide a Linux look and feel environment for Windows.

Cygwin
# 4  
Old 10-29-2011
Hi H@foorsa.biz,
By default, my company is using Samba Server, I can manually access the files thorough Samba Server. However, my concern is I just want to access through files through command in Unix's terminal, example I want to access my Win files in Unix's terminal just by typing /c/jessy/filename.

Hi Amitranjansahu,
What do you mean by installing Cygwin and do the work? I have install Cygwin in my PC, so what can I do with it?

Thanks you guys.

---------- Post updated at 09:42 AM ---------- Previous update was at 09:14 AM ----------

Hi Amitranjansahu,

I had tried copying files from Unix to my Win successfully with Cygwin's Command Prompt. However, there is another question arises, may I know whehter Cygwin is running Win's command as there are a lot of Win command can't be executed via Cygwin's Command Prompt, for instance, start, color etc. Besides, I try to use vi, xterm via Cygwin's Command Prompt, these Unix command can't be executed via Cygiwn's command Prompt as well.
So, what does that mean?
Thanks.
# 5  
Old 12-22-2011
Actually, there is an easy way to do this without having to worry about SAMBA or FTP. Just mount the windows share within UNIX. Now, having said that...It may be O/S dependant (I've done it with AIX 5.3 & 6.1)
# 6  
Old 12-22-2011
Quote:
Originally Posted by jessy83
Hi H@foorsa.biz,
By default, my company is using Samba Server, I can manually access the files thorough Samba Server. However, my concern is I just want to access through files through command in Unix's terminal, example I want to access my Win files in Unix's terminal just by typing /c/jessy/filename.
Linux among others has this ability, though it's not the same everywhere.

In Linux you could do something like this:

Code:
mount -t cifs //192.168.0.173/share /share/ -o username=username,password="whatever",uid=1000,gid=100

...which would try to contact the computer at 192.168.0.173, and mount the share named 'share' onto the local folder /share/, providing windows the username of 'username' and password of 'whatever', and showing all the files as belonging to uid 1000 gid 100.

As an aside, exporting your entire C drive is probably a security no-no.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

UNIX command to copy files from Windows to UNIX box

Hi Folks, I have a file name abc.xml in my windows machine at the location c:\ytr\abc.xml which I want to place at the unix box machine inside cde directory.. at the following location that is /opt/app/cde/ now the credentials of unix box are abc345 -->(dummyid) ftyiu88--->(dummy passwd) ... (4 Replies)
Discussion started by: punpun66
4 Replies

2. UNIX for Dummies Questions & Answers

Access UNIX server based on windows

I want to look up log files on the unix server. My machine is windows 7 pro. I can view them from windows explorer but it is slow because huge amount logs files there. Is there a way or tools to quickly access it? Thanks. (7 Replies)
Discussion started by: zhshqzyc
7 Replies

3. Shell Programming and Scripting

Use Unix shell script to open Windows command prompt (cmd)

Hello, I work on Windows and I use Putty to access a remote UNIX server. I am trying to build a shell script that will have as main task to open the Windows command prompt (cmd) and run some Windows commands thereafter. The commands are actually file transfer commands that will download a file... (14 Replies)
Discussion started by: rookie2785
14 Replies

4. Shell Programming and Scripting

To access UNIX server from Tk application running on Windows

Hi, I am new to this forum and this is my first post. I want to know that if I make an application in Tk (version of Tcl to create GUI) in windows and want to run to UNIX server, is it possible ? In other words, can I access a UNIX server through a Tk application running on windows ? ... (1 Reply)
Discussion started by: ratneshnagori
1 Replies

5. Shell Programming and Scripting

How do I access the create date from Windows after the file has been FTP'd to UNIX ?

I run an application that creates a hostname_log.txt file on the c:\ of each windows workstation. At the end of each day, these log files are FTP'd to a directory on a UNIX box. When I run "ls -lrt", the timestamp that is displayed is the timestamp that the FTP occured, not the timestamp... (2 Replies)
Discussion started by: gavman99
2 Replies

6. Filesystems, Disks and Memory

Unix Sco Open Server, Windows Computers Problem Access Unix Shared Files Help!!!!!

Hello Moto I hope someone can help We's here at work, have a unix box with sco openserver 5 on it, so it has a nice gui interface.. and also a fair few windows computers.. a system admin guy b4 me, has set up a user called neil, which can, when u try to access the unix box using windows... (2 Replies)
Discussion started by: haggo
2 Replies

7. Shell Programming and Scripting

Access Windows NT files through Unix.

I would like to write a script running on UNIX to purge files on Windows NT. How can access directory structure on NT through Unix? I am new to UNIX world. Could someone help me with the code. Thanks! (4 Replies)
Discussion started by: mkarekar
4 Replies

8. Shell Programming and Scripting

executing *.bat file on windows from Unix box via ftp command

I have created get_list.bat file containing following line: dir /B /O-d >file_list.txt I am executing ftp command from Unix box and transferring get_list.bat file to windows server. In my next ftp command I am trying to execute this test.bat file by entering this line: get_list or by... (9 Replies)
Discussion started by: alx
9 Replies

9. UNIX for Dummies Questions & Answers

?Using Unix commands in Microsoft (Windows') DOS Prompt?

I ran a search for "Unix Dos" in the search field box and checked a few pages' results but did not find what I was looking for. I am trying to find out if there are choices of applications that would enable using Unix commands inside a Windows environment, particularly the DOS Prompt. The only... (2 Replies)
Discussion started by: HLee1981
2 Replies
Login or Register to Ask a Question