1.

Solve : Copying Files into a Unix enviroment with login?

Answer»

I am trying to figure out how to read a list of files to COPY and go through the directory and move those files into a Unix environment which has a login.

I know how to read the list and know how to copy files. I also do know the login information but would like it to prompt you to input the password for security reasons. My biggest issue is traversing to the unix environment. I tried a simple copy doing:

Code: [Select]copy test.txt <Unix Server>/<folder>
and as I expected it said "Incorrect syntax"

I appreciate your hlp.http://www.unix.com/unix-dummies-questions-answers/31386-copy-text-file-vi-editor-windows-clipboard.html

"From windows use command prompt and do telnet to the unix system.
your system."


C:\>telnet /?

telnet [-a][-e escape char][-f log file][-l user][-t term][host [port]]
-a Attempt automatic logon. Same as -l option except uses
the currently logged on user's name.
-e Escape character to enter telnet client prompt.
-f File name for client side logging
-l Specifies the user name to log in with on the remote system.
Requires that the remote system support the TELNET ENVIRON option.
-t Specifies terminal type.
Supported term types are vt100, vt52, ansi and vtnt only.
host Specifies the hostname or IP address of the remote computer
to connect to.
port Specifies a port number or service name.

C:\>@bill, the telnet protocol is not meant for "transfer" or "copy" of files automatically. Also, Windows telnet client isn't capable for scripting either.
@OP, Use FTP, or the more secure SCP (part of SSH protocol). OR you can connect through samba and copy your files. Search the internet for these information.Yeah, I heard back from someone at WORK about it and they advised to use FTP. I haven't gotten a chance to try anything as I'm bogged down with work, however once I write them I'll update.Quote from: ghostdog74 on January 15, 2010, 10:26:56 AM

@bill, the telnet protocol is not meant for "transfer" or "copy" of files automatically. Also, Windows telnet client isn't capable for scripting either.
@OP, Use FTP, or the more secure SCP (part of SSH protocol). OR you can connect through samba and copy your files. Search the internet for these information.
[/color]


@ghostdog74:

The was no automatic condition by the Original Poster(OP),Grimbear13:

Grimbear13 wrote:
"I know how to read the list and know how to copy files.
I also do know the login information but would like it
to prompt you to input the password for security reasons."

Grimbear13 would like a prompt for the password. When we prompt a user and wait for a response, there is no automatic transfer at 3AM.

Ghostdog74 information might not work?
@OP, if you want to do basic file transfer, then it should be alright to use the windows FTP client. Turn on FTP daemon on your Unix machine and then transfer your files from windows. Of course you have to set your FTP configuration properly for security. Also, nowadays, SCP/SSH is used instead of FTP because its more secure. Set up passwordless SSH/SCP using key authentication. Then you WONT have to key in password everytime. Read the SCP/SSH documentation on how to set up key authentication. The last method, using samba, is another alternative. Its sort of like sharing Unix folders to the Windows world. (File sharing.) See the samba documentation for more. Its fairly easy to set up and once set up, you can use normal windows copy to copy your files to Unix. These are 3 methods i can think of, definitely not Telnet.


Discussion

No Comment Found