Automatic FTP

Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Automatic FTP
# 1  
Old 01-12-2002
Automatic FTP

We have a requirement to transfer(FTP) files created in a particular directory (In Solaris) to NT machine. Also this process neeeds to be automated.
I belive a command MAIL in UNIX could be used to find new files created in a directory, but this just sends the file list to the logged user.
Can anyone tell me how to accomplish this? Thanks.
# 2  
Old 01-12-2002
See this Thread
# 3  
Old 01-13-2002
Thanks shaik, I went thru the thread. My requirement is this.

An application writes files in a directory, when ever a new file is written it has to FTPed to an NT box. This process of transfering the file has to be automated.
# 4  
Old 01-14-2002
You can probably write a script which every 'x' secs checks for files in the directory. If there are any, you 'ftp' them. Ofcourse if ftp is to be automated, netrc is the solution, and the Thread pointed above can be referred for that.
# 5  
Old 01-16-2002
Is your NT box running an FTP server? If not, then you'll need a different way. One good way might be Samba. You can simply place files out on a share, and the NT box has them always available to it.

If so, expect (I think the website is ) may work as well... It stores the passwords in plain text, as does a .netrc file, but I've had luck with it...
# 6  
Old 01-17-2002
netrc seems to be a sol to FTP, but I didnt want to write a batch job to monitor the directory for addition of new files. I thought if its possible to trigger an event whenever a new files are added to the dir?

About the EXPECT, it seems to do a lot of things and just started to go thru the doc.

Thanks for the info Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

automatic FTP failed

I have automated ftp for different scripts. every script uses different login and passwords for different server. it reads the username and password from netrc. there is 1 particular script that is failing. this script is failing in FTP step. i have checked the logs it says login failed. but... (5 Replies)
Discussion started by: dazdseg
5 Replies

2. Shell Programming and Scripting

Automatic FTP-Download | not files older then x days

Hey Guys, i need to download files from a ftp-server that not older than $VAR (x) days eg for seven days ./script 7 or two weeks ./script 14 all files from the last 14 days will download but how i can explain "ftp" this? sorry for my strange english :/ (2 Replies)
Discussion started by: tetex
2 Replies

3. Shell Programming and Scripting

Automatic FTP

Hi I am looking for automatic FTP script from UNIX to UNIX servers. I have two problems that anyone may help: 1- The directory where the files have to be FTPed is varied, where it is identified by the date of today (YYYYMMDD) 2- the files come every 15 minutes and named by the time with form... (2 Replies)
Discussion started by: akhadoor
2 Replies

4. AIX

.netrc and Automatic ftp problem

Guy's We have two AIX servers Server1 and Server2 and we have created user1 in Server1 and Server2 ... and .netrc file was confiured under /home/user1 with the below line machine server2 login user1 password abc1234567 -rw------- 1 user1 staff 159 Sep 28 2004 .netrc ... (7 Replies)
Discussion started by: ITHelper
7 Replies

5. SCO

Automatic FTP script

We are using SCO OS 5.05 server and we are doing a manual ftp to another SCO OS 5.05 server to backup our database. We are using the Bourne shell. We would like to automate the ftp backup of our database instead of doing it manually. It would be nice to run a script. Also would there be anyway... (4 Replies)
Discussion started by: texastig
4 Replies

6. Shell Programming and Scripting

Automatic FTP Script from windows to unix machine

Hi i need to FTP files from windows to unix(sun) machine using script. what are the scripts commands i need to use to transfer files Thanks (2 Replies)
Discussion started by: bmkreddy
2 Replies

7. Shell Programming and Scripting

Is it possible..when ftp session disconnect and it can automatic run again?

Hi, Is is possible when ftp script disconnect by remote server and it can restart to tranfer (such as restart in 10 mins, etc)? Please help!!!! (1 Reply)
Discussion started by: happyv
1 Replies

8. Shell Programming and Scripting

Automatic ftp job

I'm slowly (very slowly) learning csh and the UNIX underpinnings of Mac OS X so please bear with me. I want to be able to ftp a file to my personal webspace at work. I can do this by manually going in and doing ftp user: password: cd /folder put myfile etc.. I'd like... (4 Replies)
Discussion started by: DumDum
4 Replies

9. UNIX for Advanced & Expert Users

Automatic boot up

Hi everyone, I was wondering if anyone out there knows how I can make my UNIX server (Using Solaris8) boot up to a prompt without needing me to login. I simply want to turn on my UNIX box and get to a prompt without needing to input login and password. Many thanks, Sid (1 Reply)
Discussion started by: snili
1 Replies

10. Shell Programming and Scripting

automatic su

Hi all, Suppose I have a script under user A, which calls a script under user B (this script should be run using user B). How can I change the user (along with supplying the password) automatically in the script (a command similar to su)? Thank you in advance Best Regards (1 Reply)
Discussion started by: omran
1 Replies
Login or Register to Ask a Question