Visit Our UNIX and Linux User Community


How to transfer file from Local PC to UNIX Directory without FTP?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting How to transfer file from Local PC to UNIX Directory without FTP?
# 1  
Old 06-19-2013
How to transfer file from Local PC to UNIX Directory without FTP?

Dear All,
i am trying to get the file from windows location to unix location without using FTP and neither thru entering the user id and password. I have one unix form which is running on web application and user is entering the location and file name there now i know the file name and path. So i just need that file in my unix location for further processing.
Any help will be appreciated.
thanks in advance.
# 2  
Old 06-19-2013
Would this approach help?
Let me google that for you

Perhaps you should use an account that is specifically for this purpose and ensure the password does not change. You should be able to code this in /etc/fstab or whatever your system uses to mount filesystems at boot time.



Robin
Liverpool/Blackburn
UK
# 3  
Old 06-19-2013
Thnks robin but it wont help me as the client user can be many so we cannot hard coding the user id and password it wont help.
there is command sendunix i search for this, even this didn't worked
# 4  
Old 06-19-2013
Could you create a central place on windows that users could put their file, or perhaps link it together? If the user tries to write the file to c:\my_files_for_unix, you can redirect that to write to a LAN drive such as L:\my_files_for_unix. If this is actually mounted from \\main_server\all_user_files\my_user then you could mount the higher directory from unix and if the user name is part of the application's request, then you will know which sub-directory to look in.

So, if we consider user John, there is the user on Windows will need to map to \\main_server\all_user_files\John and be directed to write files there. On the unix side, if you mount main_server\all_user_files to /user_files, then when the application request from John comes in, the file you need to pick up should be in /user_files/John


Does that give you an option?



Robin
# 5  
Old 06-19-2013
thnx robin but i hv just manage to transfer file from user desktop (web application) to unix thru following command
Code:
sendunix -a -d ./ C:/temp/ file name

This User Gave Thanks to ripudaman.singh For This Post:
# 6  
Old 06-19-2013
Thanks for posting a solution in case anyone else has the same issue.



Robin
# 7  
Old 06-19-2013
Where did you get this 'sendunix' command? What protocol does it use? I can't find any information on it.

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Replicate remote directory to local directory with ftp

I have system that generate files every 1 hours , i only have ftp connection from my local server to remote . $ ls -al -rw-r--r-- 1 water None 0 Feb 7 18:09 a.0800 -rw-r--r-- 1 water None 0 Feb 7 18:09 a.0900 -rw-r--r-- 1 water None 0 Feb 7 18:09 a.1000 is there any perl / php... (3 Replies)
Discussion started by: before4
3 Replies

2. Shell Programming and Scripting

FTP files from different directory from remote server to one directory in local

Hi All, I want to search for .log files from folders and sub folders in remote server and FTP them to one particular folder in the local machine. I dont want to copy the entire directory tree structure, just have to take all the .log files from all the folders by doing a recursive search from the... (3 Replies)
Discussion started by: dassv
3 Replies

3. UNIX for Dummies Questions & Answers

How to transfer file from Local PC to Unix Directory without FTP!!!

Dear Friends, How to transfer files from my local PC to Unix directory without using FTP. Scenario: Transfer/Upload a file from PC to unix using web browser without using FTP technologies. I heard something like sendunix and sendpc used to transfer files from unix to Desktop and... (1 Reply)
Discussion started by: kk_c2il2
1 Replies

4. Shell Programming and Scripting

File transfer from one directory to another directory in unix

Hi, I have to transfer five files from one directory to another directory in unix with the help of shell scripts. This shell script calling the param file as input parameter. Every day one file will come and fall on my source directory. Remaining files will fall on any one of the day of the... (5 Replies)
Discussion started by: easterraj
5 Replies

5. Shell Programming and Scripting

how to FTP a file from the local folder to unix server

Hi All, please help me to write a shell that ftp a file which is in the local (C:\) drive to a Unix server. Where as i know the IP for the Unix server. i could do this process by using ftp command. pls help me to write as Shell script. Thanks in advance for all of your answers.:b::b: (3 Replies)
Discussion started by: little_wonder
3 Replies

6. Shell Programming and Scripting

file transfer from windows to unix using ftp

Hi all, I have a file in windows, example a.txt **** aaa bbb ccc <empty line> when i transfer this file to unix using ftp, and viewed the file # vi a.txt aaa bbb ccc # I dont get the empty line which i specified in that file in windows. Please help me, which in unix... (5 Replies)
Discussion started by: Nandagopal
5 Replies

7. Shell Programming and Scripting

How i ftp a unix file to my local window

Hello Sir/ Madam, i m new user in unix shell scripting.Please guide me to crack this problem. Thanking you. (1 Reply)
Discussion started by: Nirmal
1 Replies

8. Shell Programming and Scripting

Transfer file from local unix server to remote server

want to remove this thread. thanks (2 Replies)
Discussion started by: indira
2 Replies

9. HP-UX

Transfer file from local unix server to remote server

want to remove the thread thanks (2 Replies)
Discussion started by: indira
2 Replies

10. IP Networking

How to Transfer a whole Directory from unix to windows using FTP?

Hi I can transfer a single file and multiple file from unix to widows using get and mget command.But i dont know How to transfer a whole directory from unix to windows using command. pls help me Ramkumar (1 Reply)
Discussion started by: ramkumarm83
1 Replies

Featured Tech Videos