Automated FTP task


 
Thread Tools Search this Thread
Special Forums IP Networking Automated FTP task
# 1  
Old 10-19-2007
Bug Hard to understand

Quote:
exec 4>&1
ftp -nv >&4 2>&4 | &
didn't get what it does.

please explain.

thanks

Last edited by rakeshou; 10-19-2007 at 12:14 PM..
# 2  
Old 10-20-2007
Quote:
Originally Posted by rakeshou
didn't get what it does.

please explain.

thanks
I wrote the script using some functions from posts on these forums, that bit was something that Perderabo came up with I think... It is a bit confusing, thats why I added an explanation for it at the top of the script. It think thats a good explanation and I wouldn't know how to explain it any differently.
Tornado
# 3  
Old 08-29-2001
Ftp

thanks for all of the help.. i guess i should have mentioned that i am running sco openserver.. i dont know if it matters or not, but the more information the better.... anyway, it looks like the best way to do this is to set up a script and use crontab..
manually, i was using the get command from the back up machine, but if its all the same, put from the production machine will work fine.
now, its time to get down to the creation of the script and setting up cron to run it...
my unix background is about three weeks, but i have been an (i apologize in advanced) NT admin for over a year, so please forgive my ignorance.
anyway, if any of you would like to assist me in setting this up i would be very gratefull... This website, Unix: the complete reference, and sco unix in a nutshell are the only resources i have so far, so i am relying on you all a little...

thanks again...

e0--
# 4  
Old 08-29-2001
Vi

anyone else remember using Vi for the first time??? is this our only option???

e0-

Vi hater
# 5  
Old 08-29-2001
vi

Well... I first started using it 17 years ago
and all I can remember is that it was 1000 times
better than "ed" Smilie

You do have emacs as another option but I
don't think you'll like that much better.

If you have X, you should be able to find
a X text editor (perhaps pretty basic).

The thing about vi is that you can pretty much
find it on any **IX system. Anything else and
all bets are off.

I'm sure you could find a substitute on the net
somwhere but I've never looked for one myself.

Sorry about that Smilie
# 6  
Old 08-30-2001

If you're using Linux, or have pine installed, look for pico. In any case, I too would recommend vi. Again, if you on a Linux system, and vim is installed (Vi IMproved), try the command vimtutor.

HTH
# 7  
Old 08-30-2001
First off, thanks for explaining that Perderabo! I thought that was all dealing with fds, but I wasn't sure. I love this forum...

As far as editors, vi is probably the most powerful, but one of the hardest to get used to... I myself used to be a vi hater...

But there are several text editors available... kwrite (kde), pico, joe... the possibilties are endless. Several of them will color code scripts as you write them too. It's really quite fun! ... hmm... does that make me a nerd?

Anyways, don't forget crontab -e to edit your crontab. It will use whatever you have the $EDITOR set to.

In case you didn't know, here's the syntax for crontab:

MIN HOUR DAY MONTH DAYOFWEEK COMMAND

ie. 5 2 * * * /home/username/bin/script

That will run your script every day, at 5 after 2 in the morning.

Good luck and don't be afraid to ask questions.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Automated FTP

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

2. Shell Programming and Scripting

Automated FTP script using .netrc to multiple FTP servers

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

3. Shell Programming and Scripting

Automated FTP

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

4. Shell Programming and Scripting

how to devlop automated FTP in UNIX

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

5. Shell Programming and Scripting

automated ftp.

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

6. IP Networking

Automated ftp for Multiple files

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

7. UNIX for Dummies Questions & Answers

one time automated ftp session

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

8. UNIX for Advanced & Expert Users

Automated FTP

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

9. UNIX for Dummies Questions & Answers

FTP automated?

If I wanted a machine to put a specific file onto another OS far across the internet via FTP - and I wanted to do it automatically not user intervented, how would I do that? Use the PUT command? The file name and position never changes, it gets overwritten and the system on the other end... (6 Replies)
Discussion started by: n9ninchd
6 Replies
Login or Register to Ask a Question