[SunHELP] Script Help

Randy Linton sunhelp at sunhelp.org
Mon Aug 13 21:04:38 CDT 2001


 Shain,

You could try a "while true do" loop and place an "if" statement inside it to keep checking for the file to process.

Something like...

#!/bin/ksh

while true
do

[ -s <your file to process> ] && <process command> <your file to process>

sleep <X seconds>

done

This could be an rc script that gets started at boot time.

Hope this helps...

Randy Linton
--

On Mon, 13 Aug 2001 17:09:11  
 Shain Miley wrote:
>Hi,
>I need to take account info from a file on a VMS system ( reachable via
>FTP or NFS) and verify that the data in the file matches account info on
>a Solaris system .  I think that the process should be as real time as
>possible.  What I am looking for is a way to wait for a file to be
>available and when it is process it then.  I don't want to use a cron
>job that runs every ten minutes or anything like that as it would be too
>long between the availability of the file and the processing.  Can I do
>this with a Perl or Bash script or am I better off looking at a
>different approach?  Thanks in advance.
>
>Shain
>_______________________________________________
>SunHELP maillist  -  SunHELP at sunhelp.org
>http://www.sunhelp.org/mailman/listinfo/sunhelp
>


Get 250 color business cards for FREE!
http://businesscards.lycos.com/vp/fastpath/



More information about the SunHELP mailing list