Re: scheduleing a DOS program by Pegasus
Pegasus
Thu May 08 00:49:17 CDT 2008
"light_wt" <lightwt@discussions.microsoft.com> wrote in message
news:867DD21C-8FA5-425F-9048-A11AD9C8DF9A@microsoft.com...
> Hi,
>
> I like to schedule a DOS program to be executed and during the executing
> time, it will take a predefined input and direct the output to a file.
>
> basically, the DOS program is SQLIO, downloadable from Microsoft. I
> following its document to do the series of ios
> sqlio -kW -s10 -frandom -o8 -b8 -LS -Fparam.txt
> timeout /T 60 > c:\out.log
> sqlio -kW -s360 -frandom -o8 -b64 -LS -Fparam.txt
> timeout /T 60
>>> c:\out.log
>
> but, it won't complete. the c:\out.log was created. there is nothing in
> there. neither was it seemed executing sqlio at all.
>
> is there special command to DOS program in general to redirect output to a
> file?
>
> thanks.
DOS is a legacy operating system that was first released some
30 years ago. It is now only rarely used. You were probably
executing your command in a Command Prompt under Windows XP
or perhaps Vista. There is no DOS under WinXP or Vista.
Before you redirect the output from your command to a file, you
should run it without redirection so that you can see what
happens, e.g. like so:
@echo off
sqlio -kW -s10 -frandom -o8 -b8 -LS -Fparam.txt timeout /T 60
sqlio -kW -s360 -frandom -o8 -b64 -LS -Fparam.txt timeout /T 60
If you do see some output then perhaps the author of sqlio.exe
made a mistake and generated only "error" output. You could then
try this:
@echo off
sqlio -kW -s10 -frandom -o8 -b8 -LS -Fparam.txt timeout /T 60 2> c:\out.log
sqlio -kW -s360 -frandom -o8 -b64 -LS -Fparam.txt timeout /T 60 2>>
c:\out.log