The file ftphosts is read into the $g variable. The problem is echoing ftp and anonymous at the name and password prompt. The here section between ++EOT++ and ++EOT++ should echo
username and password, then turn hash on, bell and binary before pulling down all the files into
c:\investigate. How do I get the user and password to be passed to the FTP servers?
Thank you in advance.
Gregg Dotoli
Last edited by Franklin52; 04-20-2013 at 11:09 AM..
Reason: Please use code tags
Hi all
has anyone got a code snippet of how i can ftp a file automatically by running a simple bash script. I have 4 things
IP address xx.xxx.xx.xx
username=satnam
domain = app.sample.ftp
password= satnam_password
Im not sure how to pull these all together to ftp a file?
any ideas? (1 Reply)
An outside vendor has staged 2 batch files for us and I've tried to retrieve the files using the commands that they've indicated I could use to retrieve one file at a time. I've tried using this command in a shell script after a successful connection to their server:
get "$$ ID=IL096869 BID='PGP... (2 Replies)
Running the following shell script,
#!/usr/bin/ksh
set -x
swdofile=/opt/SWDO_IN1V01P001_1.csv
USER='myusername'
PASSWD='mypassword'
HOST='myhostname'
ftp -n $HOST << SCRIPT
quote USER $USER
quote PASS $PASSWD
su - BRA -c put $swdofile
quit
SCRIPT
exit 0
but not managing to get the... (1 Reply)
I'm trying to write a small utility for syntax checking. I've tried using Flex/Bison, but these seem too advanced for my task. A simpler tool would be appreciated. (1 Reply)
Hello,
I have searched the forums and may not be putting in the right keywords, but hopefully someone will be kind enough to help...
It's been awhile since I've ftp'd to a Windows server, but no matter how I try to connect, it will not let me, although I have no issues setting up a connection... (1 Reply)
Hello all!
This is my first post and I'm very new to programming. I would like help creating a simple perl or bash script that I will be using in my work as a junior bioinformatician.
Essentially, I would like to take a tab-delimted or .csv text with 3 columns and write them to a "3D" matrix:
... (16 Replies)
Hi, I found info on the internet to backup a partition to ftp.
But I am unable to properly format the syntax to restore the partition.
This is being done from a ssh logged in session to a server booted with a liveCD.
backup:
dd if=/dev/sda5 bs=2048 conv=noerror,sync | lftp -u user,passwd... (7 Replies)
Hi All,
Please hav a look at the below peice of script and let me know if there are any syntax errors.
i found that the below peice of Script is causing issue. when i use SFTP its working fine, but there is a demand to use FTP only. please find below code and explain if anything is wrong... (1 Reply)
I am in the process of writing a script. A very preliminary version is giving a syntax error. The script is
#!/bin/bash
#file1='./data/heu/hout1'
exec 10<&0
exec < './data/heu/hout1'
#file1='./data/heu/hout1-
i=1
j=0
while read file1
do
echo $file1
echo $i
if then... (3 Replies)
Discussion started by: ngabrani
3 Replies
LEARN ABOUT SUSE
ftpusers
FTPUSERS(5) Linux Programmer's Manual FTPUSERS(5)NAME
ftpusers - list of users that may not log in via the FTP daemon
DESCRIPTION
The text file ftpusers contains a list of users that may not log in using the File Transfer Protocol (FTP) server daemon. This file is
used not merely for system administration purposes but for improving security within a TCP/IP networked environment. It will typically
contain a list of the users that either have no business using ftp or have too many privileges to be allowed to log in through the FTP
server daemon. Such users usually include root, daemon, bin, uucp, and news. If your FTP server daemon doesn't use ftpusers then it is
suggested that you read its documentation to find out how to block access for certain users. Washington University FTP server Daemon
(wuftpd) and Professional FTP Daemon (proftpd) are known to make use of ftpusers.
Format
The format of ftpusers is very simple. There is one account name (or username) per line. Lines starting with a # are ignored.
FILES
/etc/ftpusers
SEE ALSO passwd(5), proftpd(8), wuftpd(8)COLOPHON
This page is part of release 3.25 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
Linux 2000-08-27 FTPUSERS(5)