05-11-2001
#!/bin/bash
#autoftp.sh
# use "\n" to seperate entry
# and use binary instead ascii if you think
FTPCommand="cd FTPdirectory\nascii\nput $1.backup.file\nbye"
echo -e $FTPCommand | ftp machine
echo "$1 Ftp'd to machinename"
and run this script to ftp "today.backup.file"
# ./autoftp today
Be sure to include full path if "today.backup.file" file is not in the directoy from where you execute the script.
HTH
[Edited by mib on 05-11-2001 at 07:29 AM]
9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
My requiremnet is to write a FTP script which will ftp a file to a specified ftp url.
How can I automate the process usnig the unix cron. (11 Replies)
Discussion started by: shauche
11 Replies
2. UNIX for Dummies Questions & Answers
How can an automated script be setup to run at a later time in the day. cron runs recurring tasks. I am interested in a one time process.
I want to back up a number of files whenever I make changes to an application and ftp for backup purposes. The script to automate the zipping of files has... (1 Reply)
Discussion started by: msmkeml
1 Replies
3. IP Networking
I have seen the script posted yesterday for automated ftp
Can we do some thing like ftp ing multiple files in one script
Example input.txt has all files names to be ftped
input.txt ------
a.tar
b.ccp
c.perl
i need to ftp all the files present in input.txt
i tried something like... (0 Replies)
Discussion started by: pbsrinivas
0 Replies
4. Shell Programming and Scripting
Hi
I am trying to delete some specific files ( files other than created today) from the server on a cron basis. I wrote a small script, but I am stuck up in how to delete only specific files.
#!/usr/bin/expect -f
set IP
set timeout -1
spawn ftp $IP
expect ):
send "username\n"... (10 Replies)
Discussion started by: sangfroid
10 Replies
5. Shell Programming and Scripting
Automated FTP.
hint : use 'atd' to schedule to run a specific script.
An Env Variable should be created,say CONF_DIR which points to some dir.
@ some time, create a TAR file of this and FTP it to some server. (3 Replies)
Discussion started by: vishalzone2002
3 Replies
6. Shell Programming and Scripting
I want to do Automated FTP from linux client to LINUX server using a shell script after every one hour. And copies last most updated file from Linux server.
OR
You can say that whenever files get modified on LINUX server so it also copies on my LINUX client.
Linux SERVER path=... (4 Replies)
Discussion started by: wakhan
4 Replies
7. IP Networking
Every day i ftp tar.gz a file from the production server to a back up machine.. This task creates way to much traffic on the network at the end of the day and puts and undo load on the production machine during operation hours. i would like to create a script that would automatically fire off the... (36 Replies)
Discussion started by: LowOrderBit
36 Replies
8. Shell Programming and Scripting
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)
Discussion started by: varu0612
4 Replies
9. Shell Programming and Scripting
Hello,I just know the basics of scripting & I need a script to automate ftp since I use it quite often.
I use ftp to transfer different kind of files and everytime the source & the destination directories are different for transferring files, so can anyone help me out on this urgently.. (2 Replies)
Discussion started by: mohit_02mar
2 Replies
LEARN ABOUT NETBSD
virecover
VIRECOVER(8) BSD System Manager's Manual VIRECOVER(8)
NAME
virecover -- report recovered vi edit sessions
SYNOPSIS
/usr/libexec/virecover
DESCRIPTION
The virecover utility sends emails to users who have vi(1) recovery files.
This email gives the name of the file that was saved for recovery and instructions for recovering most, if not all, of the changes to the
file. This is done by using the -r option with vi(1). See the -r option in vi(1) for details.
If the backup files have the execute bit set or are zero length, then they have not been modified, so virecover deletes them to clean up.
virecover also removes recovery files that are corrupted, zero length, or do not have a corresponding backup file.
virecover is normally run automatically at boot time using /etc/rc.d/virecover.
FILES
/var/tmp/vi.recover/recover.* vi(1) recovery files
/var/tmp/vi.recover/vi.* vi(1) editor backup files
SEE ALSO
vi(1), rc.conf(5)
HISTORY
This script, previously known as recover.script, is from nvi and was added to NetBSD in 1996. It was renamed in 2001.
AUTHORS
This man page was written by Jeremy C. Reed <reed@reedmedia.net>.
BSD
October 9, 2006 BSD