Avatar of KathysFriend
KathysFriend
Flag for Canada asked on

unix aix job

I need to create a Unix job that will be receiving files that are pushed from another application.
The only way that I know to do it - is to have the job start up every five minutes or so and test for the presence of the files.  Is there a more efficient way of doing this?
Unix OSShell Scripting

Avatar of undefined
Last Comment
Tomunique

8/22/2022 - Mon
Carl Dula

Typically you have a process listening on a socket for the connection. What is going to "push" the files? Is this an XML file?
dfke

If you want to set your job/script up as a service with a port you can define a new service in /etc/services: vi /etc/services.  Define a name and port number  tcp and or udp there.
Then define the service in /etc/inetd.conf and refresh inetd with: refresh -s inetd. Check if the port is in a listening state with netstat -an | grep <port number>.

Issuing a telnet session to the defined port number will run your job/script using inetd.
ASKER CERTIFIED SOLUTION
Tomunique

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Your help has saved me hundreds of hours of internet surfing.
fblack61