Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
unix trigger
Name: Jernand Date: November 30, 2004 at 15:38:15 Pacific OS: hp-ux CPU/Ram: 320
Comment:
Hi,
I wud like a unix script to execute on a trigger..the trigger wud be when a ftp is done(upon file arrival0-any file on a directory. thanks for ur help.
Name: Jim Boothe Date: December 1, 2004 at 06:32:09 Pacific
Reply:
Search this forum for plenty of other examples.
This code will wake up each 60 seconds and process each regular file in mydir.
while true do for fname in $(ls mydir) do if test -f $fname ; then echo "Processing $fname ..." # < your code here > fi done sleep 60 done
0
Response Number 2
Name: frank dolivka Date: December 1, 2004 at 06:40:48 Pacific
Reply:
while : do count=`ls /DownloadDir/ | wc -l ` old_count=`cat /tmp/Trigger.count |wc -l` if [ $old_count -ne $count ] then do what you want ls /DownloadDir/ > /tmp/Trigger.count fi done
Summary: Here's a puzzle that I've been trying to solve. I guess its not too difficult for those in the know! I need to find a mechanism for Unix (Solaris) to display a pop-up message on a client PC(Win 95). T...
Summary: Any idea how is the function key F8 being map in unix script using Ksh Shell? For example: enter key is recognize as ^M, so what is the control key for Tab and F8. Actually I have an interactive progr...