Re: Script to check filename continuously

2003-07-03 Thread Pete Finnigan
Hi Sami Try something like this in korn shell, i have typed it in from memory so please check the syntax...:-) #!/bin/ksh location="/tmp" filename="YOURFILENAME" done=false while [[ $done = false ]]; do if [[ ! -a $filename ]]; then echo "do something" cp $

RE: Script to check filename continuously

2003-07-03 Thread Pardee, Roy E
Script would be good for this kind of thing, I think. Dig how similar this windows scripting host script is to your pseudocode: ' Dim FSO Const WatchForFile = "c:\pretend.txt" Const CopyFileTo = "c:\copied.txt" Set FSO = CreateObject("Scripting.Fil

Re: Script to check filename continuously

2003-07-03 Thread Brian_P_MacLean
Here is a start for you. You can get the sleep command at any of these places http://www.weihenstephan.de/~syring/win32/UnxUtils.html http://www.cruzio.com/~jeffl/mrtg/docs/sleep.exe http://www.nextgeneration.dk/gnu/index.shtml @ECHO OFF set BASE_DIR=d:\oracle\oradata\sid\arc