Sponsored Content
Top Forums Shell Programming and Scripting FTP using script not working (for transfering file from a remote unix server to windows PC.) Post 302668157 by dll_fpga on Monday 9th of July 2012 12:28:56 AM
Old 07-09-2012
hi PKK,
i have used ur script as below,
mahesva and mahesva123 are username and password for this VNC server
Code:
#!/usr/bin/ksh
ftp -v -n "10.29.45.11" << cmd
USER "mahesva"
PASS "mahesva123"
get rtl.tar
quit
cmd


but im getting a error

+++++++++++++++++++++++++++++++++
Code:
Connected to 10.29.45.11.
220 (vsFTPd 2.0.1)
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
?Invalid command
?Invalid command
local: rtl.tar remote: rtl.tar
530 Please login with USER and PASS.
Passive mode refused. Turning off passive mode.
530 Please login with USER and PASS.
ftp: bind: Address already in use
221 Goodbye.

+++++++++++++++++++++++++
please help ,as im a beginner in this.


Quote:
Originally Posted by PikK45
May be you have issues here:

Code:
 #!/usr/bin/ksh
ftp -v -n "10.29.45.11" << cmd
user "mahesva" "mahesva123"
get rtl.tar
quit
cmd

Rather try using this, when FTPing from UNIX to Windows
Code:
 #!/usr/bin/ksh
ftp -v -n "10.29.45.11" << cmd
quote USER $USER
quote PASS $PASS
get rtl.tar
quit
cmd

I have a script and it works fine Smilie

Last edited by Franklin52; 07-11-2012 at 05:01 PM.. Reason: Code tags
 

8 More Discussions You Might Find Interesting

1. IP Networking

Transfering file from unix server to a windows pc

Is there a way to transfer files from unix server to windows directory,other than ftp? (1 Reply)
Discussion started by: Preet
1 Replies

2. UNIX for Dummies Questions & Answers

Remote Access to FTP server not working

I am trying to setup an FTP server in a Fedora Core 3 machine through the command line interface and not KDE. I think I am successful in getting the ftp service running, as when I do an ftp 127.0.0.1, I am able to log in using any one the user accounts I have created on this machine and browse... (8 Replies)
Discussion started by: cooljumbo2k8
8 Replies

3. Solaris

vsftp is not working only when i ftp from windows server

Hello Gurus, Naif is implemented for only for port 21 for few windows servers. I have made my linux 5.1 as my FTP server. After installing vsftpd i could ftp from other linux server. linux to linux (ftp server) But same when i ftp from other windows server which only port 21 is enabled.... (0 Replies)
Discussion started by: bullz26
0 Replies

4. Linux

vsftp is not working only when i ftp from windows server

Hello Gurus, Naif is implemented for only for port 21 for few windows servers. I have made my linux 5.1 as my FTP server. After installing vsftpd i could ftp from other linux server. linux to linux (ftp server) But same when i ftp from other windows server which only port 21 is enabled.... (2 Replies)
Discussion started by: bullz26
2 Replies

5. Shell Programming and Scripting

shell script to ftp the files from windows to unix server

Hi, I need to ftp some input files from windows to unix server.All the files will be saved in the C drive in my machine. Currently all these files are transferring manually to the unix server.I need to write a shell script which ftp the files from windows to unix box.When I searched in the... (10 Replies)
Discussion started by: kavithakuttyk
10 Replies

6. Shell Programming and Scripting

UNIX script to FTP file from UNIX server to windows

Hi, I am new to this subject.....Can someone please help me out with the script... unix usernm "sdhftst" unix pwd "chsd13" windows usernm "dfghtst" windows pwd "chsd13" path..../xxx/xxxxx/xxxxxx/xxxxxxx please can u get me a script...its only one file to get ftp. Thanks... (2 Replies)
Discussion started by: himakiran9
2 Replies

7. Shell Programming and Scripting

Need help for ftp a file from unix to windows server

I have a problem with ftp. i want to ftp a file "file.txt" from unix box to windows server. The destination folder is something like this: "\\windowsservername\apps\is\" FTPUSER=ftp1 FTPPASS=**** ftp -v -d -n > ftplog <<!EOF open windowsservername user $FTPUSER $FTPASS cd... (3 Replies)
Discussion started by: Diddy
3 Replies

8. Shell Programming and Scripting

FTP from windows to unix server using unix shell script

Hi, Is it possible to ftp a huge zip file from windows to unix server using unix shell scripting? If so what command i need to use. thanks in advance. (1 Reply)
Discussion started by: Shri123
1 Replies
vncpasswd(1)						     Virtual Network Computing						      vncpasswd(1)

NAME
vncpasswd - change the VNC password SYNOPSIS
vncpasswd [passwd-file] vncpasswd -f DESCRIPTION
vncpasswd allows you to set the password used to access VNC desktops. Its default behavior is to prompt for a VNC password and then store an obfuscated version of this password to passwd-file (or to $HOME/.vnc/passwd if no password file is specified.) The vncserver script runs vncpasswd the first time you start a VNC desktop, and it invokes Xvnc with the appropriate -rfbauth option. vncviewer can also be given a password file to use via the -passwd option. The password must be at least six characters long (unless the -f command-line option is used-- see below), and only the first eight charac- ters are significant. Note that the stored password is not encrypted securely - anyone who has access to this file can trivially find out the plain-text password, so vncpasswd always sets appropriate permissions (read and write only by the owner.) However, when accessing a VNC desktop, a challenge-response mechanism is used over the wire making it hard for anyone to crack the password simply by snooping on the network. OPTIONS
-f Filter mode. Read a plain-text password from stdin and write an encrypted version to stdout. Note that in filter mode, short or even empty passwords will be silently accepted. FILES
$HOME/.vnc/passwd Default location of the VNC password file. SEE ALSO
vncviewer(1), vncserver(1), Xvnc(1) vncconfig(1), http://www.tigervnc.org AUTHORS
Tristan Richardson, RealVNC Ltd. Antoine Martin D. R. Commander VNC was originally developed by the RealVNC team while at Olivetti Research Ltd / AT&T Laboratories Cambridge. TightVNC additions were implemented by Constantin Kaplinsky. Many other people participated in development, testing and support. TigerVNC 09 Jul 2010 vncpasswd(1)
All times are GMT -4. The time now is 08:29 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy