Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Extra functionality FTP

Status
Not open for further replies.

Truusvlugindewind

Programmer
Jun 5, 2002
350
NL
Hi,

We an apllication on WinNT sending data (FTP) to a OpenVMS machine. That VMS machine is capable of starting a script, triggered by the simple fact that a FTP-client sends data. This script automaticly processes the data.
Now we need the same functionality on our AIX (4.3.3) machine. Can AIX also offer this functionality? A sort of ".profile" based upon a FTP logon instead of a TELNET logon?
 
Not really via ftp. You could using CA's Xcom, but that's pricey. What you could do is to set up a cron entry that checks for the presence of files in the target directory and act based on that. Man cron and crontab for details.
A sample cron entry and script could be:
0,5,10,15,20,25,30,35,40,45,50,55 * * * * /usr/local/bin/file_check.sh >>/tmp/file_check.err 2>&1
(the above is all one line).
This process executes /usr/local/bin/file_check.sh every 5 minutes of every day.

The text of /usr/local/bin/file_check would resemble:

if [ -f /dir/filename.ext ]
then
whatever actions you want to take (valid unix commands)
fi

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top