AIX listeners?


 
Thread Tools Search this Thread
Operating Systems AIX AIX listeners?
# 1  
Old 10-17-2007
AIX listeners?

I have a file directory which I want to monitor - when a new file arrives I want to start a script. Are there any utilities which can do this (aside from DB2, Oracle, Websphere, etc).

I just want a "simple" listener which will invoke a script.
# 2  
Old 10-18-2007
hi edi,

i am sorry but i don't have time 2 write the script for you , but i guess i can give u the logic

1. write a "while" loop always true
2. capture filename inside a folder using ls and maintain a list
3. when the number of filenames increase , compare new list and old list
4. within the script start a new shell to launch ur other script.
5. run the main script "listener" in the background using "&"

i guess this works
# 3  
Old 10-18-2007
add a sleep to the loop to it so it doesn't thrash the box,

run it through nice so real work takes priority
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. AIX

Samba 3.6 on AIX 7.1 - Windows 10 Access to AIX file shares using Active Directory authentication

I am running AIX 7.1 and currently we have samba 3.6.25 installed on the server. As it stands some AIX folders are shared that can be accessed by certain Windows users. The problem is that since Windows 10 the guest feature no longer works so users have to manually type in their Windows login/pwd... (14 Replies)
Discussion started by: linuxsnake
14 Replies

2. AIX

Will it affect my AIX LPAR security, when i set up email alerts on AIX server.

Hello, I've set up email alerts on AIX Servers. so that i can get email notifications (via mail relay server) when ever there is abnormal behavior. for example 1) my script monitors CPU/disk/memory etc... when it reaches high water ark, it will send an email alert. 2) disk usage alerts 3)... (5 Replies)
Discussion started by: System Admin 77
5 Replies

3. AIX

Nim on AIX 7.1 used to migrate AIX 5.3 to AIX 6.1...is possible?

Using nimadm: nimadm -j nimadmvg -c sap024 -s spot_6100 -l lpp_6100 -d "hdisk1" -Y Initializing the NIM master. Initializing NIM client sap024. 0505-205 nimadm: The level of bos.alt_disk_install.rte installed in SPOT spot_6100 (6.1.3.4) does not match the NIM master's level (7.1.1.2).... (2 Replies)
Discussion started by: sciacca75
2 Replies

4. Shell Programming and Scripting

I need your help about port listeners

Hi guys, Im new on unix. but I need your help. I have a windows program that is querying data from unix computer through winsock, this unix computer is bought from Japan in 1995. All the guys who are in charge of this have already resigned. The problem is this winodws program is developed... (1 Reply)
Discussion started by: fif14344
1 Replies

5. Shell Programming and Scripting

2 listeners in a port

Hi, Is it possible to have 2 programs to listen in 1 port? the only job of that other program is to record or monitor down any request it recieves to that specific port. Is that possible? Won't it cause any conflicts? (4 Replies)
Discussion started by: fif14344
4 Replies

6. AIX

IY17981 fix required for aix 4.3.3 to aix 5L migration but not found

Hi, redbook documentation is telling that IY17981 fix is required for aix 4.3.3 to aix 5L migration. But there is no mention about that fix in any ML installation packages. - My system is ML11 : oslevel –r 4330-11 - But xlC.rte is on wrong version : lslpp -L xlC.rte xlC.rte ... (3 Replies)
Discussion started by: astjen
3 Replies

7. AIX

How to apply aix 5.3 TL8 properly on ML5 aix system ?

Is it necessary to put system into single user mode for applying aix 5.3 TL8 on a aix 5.3.5.0 system ? Is the TL8 installation not totally safe ? thank you. (6 Replies)
Discussion started by: astjen
6 Replies

8. Solaris

Enabling MQ Listeners

Hi I've been trying to change the services for MQ listeners using inetaconv and inetadm. The MQ was already installed and Im trying to change the QManager name. Ive creted the appropriate files (MQSeries-tcp.xml) and am now trying to enable MQSeries and then refresh the service: inetadm... (2 Replies)
Discussion started by: billy_mega
2 Replies

9. IP Networking

RIP listeners

Hi! I have to find out if RIP listeners are enabled on some of UNIX servers. They are all running Tru64. Tnx! (1 Reply)
Discussion started by: veccinho
1 Replies
Login or Register to Ask a Question