I am trying to write a script that allows me to check a directory for files that i will sftp to another server.
When the file is created it creates a .ready file that is supposed to signal a file is fully created and ready to sftp. for example a file named 10312014.13.07.40.27711113 would have trailing 10312014.13.07.40.27711113.ready file as well.
i dont know how to properly check for 10312014.13.07.40.27711113.ready and if it's there sftp 10312014.13.07.40.27711113.
below is what I have so far, it's just a shell of an idea, I'm stuck and any help would be greatly appreciated.
Hello ,
I am trying to make a shell script (Unix) for a ftp connection to another server and to get a file.
So I have no knowledge about ftp and my script must do automaticly the connection with the user and passwd.
Can you help us about that...
Christian... (2 Replies)
Novice here...
I need help with excuting a shell script on a flat file that I've transfered over from a Windows XP machine for manipulation through an auto FTP script...
so that after it is transfers it excutes the shell script and then returns it back to XP machine...
Any ideas... (2 Replies)
I have my ftp script as below..
This is logging the messages into ftp.log file ,
But I want the same output(what ever messages are going into ftp.log) to be printed on the console too for the user to show the status.. Tried with "tee" .. unable to get the solution..
Can some one help me... (3 Replies)
Hello,
A couple of times per week, i receive emails notifications when files are available for processing.
Currently i read these eamails with a java program and store the attachement on my C: drive and would now like to generate a PC script to send this file name up to UNIX-Solaris and... (3 Replies)
I have the following ftp script to get files from a remote location.
However, on running the script I find that I am not even able to connect to ftp server.
I am able to connect to ftp server using other GUI ftp tools like WS_FTP using the same IP.
IP used here is a dummy IP.
What can go... (3 Replies)
Hi,
I have a ftp script which first gets all the file names and echo's the latest file.
I'm using another ftp command sets to get the file name given by first ftp. The problem is the parameter is not accepted by second ftp. The error message i'm getting is
> Rename Temp File calloc:ICMP... (5 Replies)
Hi all,
I'm using the following script to automated ftp files to 1 ftp servers
host=192.168.0.1
/usr/bin/ftp -vi >> $bkplog 2>&1 <<ftp
open $host
bin
cd ${directory}
put $files
quit
ftp
and the .netrc file contain
machine 192.168.0.1
login abc... (4 Replies)
hello ,
I am working on a FTP script which navigates to specific directory and pulls the file
Issue which i am facing ::
----------------------------
i) When there is a file it pulls the file , but when there is not file in the directory it fails in the same statement and it is not... (3 Replies)
Hi,
I am new to shell scripting,and i was planning to write a script that will FTP files to destination folder.
I was planning that All configuration should be done through a properties files. and finally the output should be
Files are transferred
I have developed a properties file named... (4 Replies)
Discussion started by: rahul125
4 Replies
LEARN ABOUT DEBIAN
ftpwatch
FTPWATCH(8) System Manager's Manual FTPWATCH(8)NAME
ftpwatch - Notifies you of changes on remote ftp servers
SYNOPSIS
ftpwatch
DESCRIPTION
ftpwatch is a program intended to be run as a cron job. Every user who wants to use it should install it into his crontab file. That is add
something like:
47 5 * * 7 /usr/bin/ftpwatch
The user should then create a .ftpwatchrc file. If one is found the specifed files and directories in that file will be dired, and the
result is stored as separate files in a .ftpwatch directory i the home directory. diff(1) is invoked to find any changes since last run.
If any are found, the output of diff is mailed to the user.
OPTIONS
-d<opt> passes the options in <opt> to diff when invoked to generate the change-repport sent to the user.
-p run ftp in passive mode
CONFIGURATION FILES
Each user can place a .ftpwatchrc file in there home directories, listing the files or directories they are intrested in. The format is
simpel. Each line of the file is of the following type:
<Host>:<File>
Where <Host> is the hostname of the ftp server and <File> is the file or directory to watch. If you instead want to watch an entire direc-
tory structure recoursly you can add an R to the config line of the dir whoes subdirs you are intresed in, like this:
<Host>:R:<File>
AUTHOR
Hakan Ardo <hakan@debian.org>
7 Januari 1997 FTPWATCH(8)