Berkeley CSUA MOTD:Entry 16386
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2024/12/25 [General] UID:1000 Activity:popular
12/25   

1999/8/24-26 [Computer/SW/Languages/Perl] UID:16386 Activity:low
8/24    Is there a command in NT that works like "sleep" in UNIX?  Thx.
        \_ You want it for scripting?  There's a few ways.  4NT from jpsoft
           is a dos shell replacement that has a sleep function.  perl can
           do a sleep function.  you can write your own in C/whatever and
           compile it.  NT has an "AT" like function if you need a long term
           sleep.  There isn't a command line sleep that I know of.  If you
           detail what you're trying to do, it'd be easier to help you.
           \_ I just want to sleep in a loop in a batch file, like
                :again
                foo.exe
                sleep 60
                goto again
              I guess I'll write one in C.  Thanks.
                \_ A little C program is probably easiest.  You can download
                   one from many public archives.  If you're willing to switch
                   shells, try jpsoft's.  In many ways it's more powerful and
                   easier to use than tcsh but of course doesn't support true
                   backgrounding of jobs.  perl is ok if you don't mind pissing
                   away some cpu.
                   away some cpu and memory.
        \_ cygwin (<DEAD>sourceware.cygnus.com<DEAD> is a good thing.
        \_ perl -e 'sleep 60'  --  use NT perl!