You have to design diff script where client provided filenames can be entered along with the server name/IP address with , or | seperated format (i assumed , here)
Write something like below (Its just basic one can be modified as per your need)
Your crontab entry to run script every Mon-Thur at 9AM (you can change it as per req.)
Hi quick question from a unix newbie
Working on a project to get me using unix, the point of this project is to find a printer on the network check for jobs in the printer if the printer has no jobs do nothing if the printer has jobs then check the status for errors and e-mail the user. This... (2 Replies)
I am trying to automate a process in one of two ways:
1) ftp .txt files from a unix server to a Windows 2000 server. I want to do this in a script. Can I supply the login and password to the Windows server inside the script?
2) I tried this and failed: sftp .txt files from the unix server to... (2 Replies)
One of our most frequent questions is how to automate ftp transfers. There are several approaches. Since I'm writing this post, we will start with my favorite technique. :)
In Automated FTP task I present a simple example of my ksh co-process technique. And note that later in this thread I... (0 Replies)
Good Morning,
I just would like to know what is wrong with my script. I am trying to use a for loop on my ftp command but the part that pipes the ftp information is reported in unix as error. Here's my script :
#!/bin/ksh
# other parts of the script here....
# get all ORD* files... (10 Replies)
Hello,
I'm sure this is an easy one for you UNIX pros. I would like to create and and automated an FTP process. The script should do this:
1. Log into a remote system
2. change to a specified directory
3. copy local files to the remote system
4. quit ftp
5. wait until the next schedule
... (7 Replies)
Hi guys,
I'm trying to create an ftp script that will read in a value from input, then search for files with the input value, and then ftp the files..
So far I've got my read answer set up, and it'll ls -lrt out my files with the value read answer var I given it...
My question is, what... (14 Replies)
Hi Everybody,
I have come across a problem while doing FTP using shell scripting. So I request any of you can give some idea of how to go about solving the problem but i request you not to give the solution please. Because i'm a java developer newly into Unix shell progrmming and am very enthu... (1 Reply)
Hi,
I'm trying to do an FTP script that will read from a list of files and send only the files in that list.
Would this work? Does anyone have anything simpler.
ftp -nv <<EOF
open server
user username password
get $(nawk -F_ -f bbb.awk Filelisting.txt)
EOF (5 Replies)
Hi Guys,
Good day ULF! I have a general "auto-ftp" code which looks something like this:
#!/bin/sh
cd $1
ftp -v -n $2 << EOF
user $3 $4
prompt
cd $5
bin
mput $6
quit
EOF
This works pretty well, but I'm thinking of how can I make a code by maybe including on this code, for... (5 Replies)
Discussion started by: rymnd_12345
5 Replies
LEARN ABOUT MOJAVE
mount_ftp
MOUNT_FTP(8) BSD System Manager's Manual MOUNT_FTP(8)NAME
mount_ftp -- mount a FTP filesystem
SYNOPSIS
mount_ftp [-i] [-o options] ftp://host[:port][/path] node
DESCRIPTION
The mount_ftp command mounts a FTP-enabled server directory at ftp://host[:port][/path] at the mount point indicated by node.
If the -i option is not used, all the required information to establish a login to the remote server must be available in the ftp URL,
including username & password if needed.
The user ID for all files and folders is set to the user's real user ID. The group ID for all files and directories is set to unknown, and
the permissions default to read and execute for user, group and other.
The options are:
-i Interactive mode, you are prompted for the username and password if you did not supply one in the url.
-o Options passed to mount(2) are specified with the -o option followed by a comma separated string of options. See the mount(8) man
page for possible options and their meanings. The rdonly option will be set even if it was not specified because mount_ftp does not
allow files to be opened with write access on servers.
ftp://host[:port][/path]
The FTP-enabled server directory to mount as a volume. If port is not specified, then port 21 is used. If path is not specified, then
the path "/" is used.
node Path to mount point.
EXAMPLES
The following example illustrates how to mount the FTP-enabled server directory ftp.apple.com/ at the mount point /Volumes/mntpnt/
mount_ftp ftp://ftp.apple.com/ /Volumes/mntpnt/
SEE ALSO mount(2), unmount(2), mount(8)HISTORY
The mount_ftp command first appeared Mac OS X Version 10.2.
RETURN VALUES
0 mount_ftp successfully mounted the server directory.
[ENOENT] The server directory could not be mounted by mount_ftp because the node path is invalid.
[ENODEV] The server directory could not be mounted by mount_ftp because it is not FTP-enabled or because it does not exist, or
because node does not have proper access.
[ECANCELED] The server directory could not be mounted by mount_ftp because the user did not provide proper authentication credentials.
BUGS
mount_ftp only supports mounting read-only.
Mac OS X June 6, 2003 Mac OS X