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
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.